diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-09-14 22:57:13 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-09-14 22:57:13 +0200 |
commit | 3082b398fd2074a9fe9d5ba49964cbf0353df081 (patch) | |
tree | 137672686259adece2c7d04c2ae4281af8be9f4b /pyasn1/compat | |
parent | 154c55b30e335482a074ac76ad4e5abdc41ccc8b (diff) | |
download | pyasn1-git-3082b398fd2074a9fe9d5ba49964cbf0353df081.tar.gz |
minor PEP8 edits
Diffstat (limited to 'pyasn1/compat')
-rw-r--r-- | pyasn1/compat/calling.py | 3 | ||||
-rw-r--r-- | pyasn1/compat/integer.py | 1 | ||||
-rw-r--r-- | pyasn1/compat/string.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pyasn1/compat/calling.py b/pyasn1/compat/calling.py index 0b2c464..fde25d8 100644 --- a/pyasn1/compat/calling.py +++ b/pyasn1/compat/calling.py @@ -12,7 +12,8 @@ __all__ = ['callable'] if (2, 7) < version_info[:2] < (3, 2): import collections - callable = lambda x: isinstance(x, collections.Callable) + def callable(x): + return isinstance(x, collections.Callable) else: diff --git a/pyasn1/compat/integer.py b/pyasn1/compat/integer.py index 11992c3..0c426a2 100644 --- a/pyasn1/compat/integer.py +++ b/pyasn1/compat/integer.py @@ -106,4 +106,3 @@ else: def bitLength(number): return int(number).bit_length() - diff --git a/pyasn1/compat/string.py b/pyasn1/compat/string.py index 058eb48..24e64b6 100644 --- a/pyasn1/compat/string.py +++ b/pyasn1/compat/string.py @@ -23,4 +23,4 @@ if version_info[:2] <= (2, 5): else: def partition(string, sep): - return string.partition(sep)
\ No newline at end of file + return string.partition(sep) |