diff options
-rw-r--r-- | patchtracker/Patch.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/patchtracker/Patch.py b/patchtracker/Patch.py index 16bcaa6..670f389 100644 --- a/patchtracker/Patch.py +++ b/patchtracker/Patch.py @@ -26,11 +26,7 @@ class Diffstat: class Patch: def __init__(self, fh, level=1): - lines = fh.readlines() - try: - self.p = unicode(lines) - except UnicodeDecodeError: - self.p = unicode(lines, 'latin-1') + self.p = fh.readlines() self.lvl = level def __str__(self): |