summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2009-09-06 22:24:55 +0200
committerSean Finney <seanius@debian.org>2009-09-06 22:24:55 +0200
commit60bc48b1e9270d52967c82ac3417d4ada763c04e (patch)
tree34db49dab1955967433e9f8f791262415fa6759b
parent81bdb47c442d9d1fe343e4ff69272e3fc7953151 (diff)
downloadpatch-tracker-60bc48b1e9270d52967c82ac3417d4ada763c04e.tar.gz
Revert "try both utf8 and latin-1 for contents in Patch constructor"
This reverts commit ee7e7301434b1cf8b3baa4d839fdbf2f05617e91.
-rw-r--r--patchtracker/Patch.py6
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):