diff options
-rwxr-xr-x | namegen.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -96,7 +96,6 @@ class Stats: """Calculate stats from a list of names in a file-like object.""" for name in fp.readlines(): - name = name.decode('utf-8') for i in range(min(self.context, len(name))): self._increment_stats(name[0:i], name[i]) for i in range(self.context, len(name)): @@ -189,7 +188,7 @@ def main(): fp.close() try: - fp = open(opt.save_stats, 'wb') + fp = open(opt.save_stats, 'w') except TypeError: pass except IOError: |