codekingpro/portable-devtools
114k
1import sys2import inspect3from itertools import zip_longest4 5 6text_type = str7string_type = str8 9 10def with_str_method(cls):11 # In python3, we don't need to do anything, we return a str type.12 return cls13 14def with_repr_method(cls):15 return cls16 17def get_methods(cls):18 for name, method in inspect.getmembers(cls, predicate=inspect.isfunction):19 yield name, method20 