From 60bc48b1e9270d52967c82ac3417d4ada763c04e Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sun, 6 Sep 2009 22:24:55 +0200 Subject: Revert "try both utf8 and latin-1 for contents in Patch constructor" This reverts commit ee7e7301434b1cf8b3baa4d839fdbf2f05617e91. --- patchtracker/Patch.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'patchtracker/Patch.py') 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): -- cgit v1.2.3