Skip to content

Commit 8ee34f3

Browse files
authored
fixed pep8
1 parent 2dbe3a8 commit 8ee34f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

kaitaistruct.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@ def __init__(self, stream):
2727
def __enter__(self):
2828
return self
2929

30-
def _reprGeneratorForAllProps(self):
31-
"""Generator to use in own __repr__ functions"""
32-
return (str(k)+"="+repr(v) for k, v in self.__dict__.items() if k[0]!="_")
33-
3430
def __repr__(self):
35-
return "".join((self.__class__.__name__, "(", ", ".join(self._reprGeneratorForAllProps(self)), ")"))
31+
reprGeneratorForAllProps = (str(k)+"="+repr(v) for k, v in self.__dict__.items() if k[0]!="_")
32+
return "".join((self.__class__.__name__, "(", ", ".join(reprGeneratorForAllProps), ")"))
3633

3734
def __exit__(self, *args, **kwargs):
3835
self.close()

0 commit comments

Comments
 (0)