|
Added
Link Here
|
| 1 |
--- ./src/lib/svnmailer/notifier/_base.py.orig 2006-04-17 06:29:06.000000000 -0400 |
| 2 |
+++ ./src/lib/svnmailer/notifier/_base.py 2007-10-03 23:39:56.000000000 -0400 |
| 3 |
@@ -345,7 +345,6 @@ |
| 4 |
@return: The two encodings |
| 5 |
@rtype: C{tuple} of C{str} |
| 6 |
""" |
| 7 |
- from encodings import exceptions |
| 8 |
|
| 9 |
enc1 = enc2 = default |
| 10 |
if not change.wasAdded() or change.wasCopied(): |
| 11 |
@@ -353,7 +352,7 @@ |
| 12 |
enc1 = self._getContentEncoding( |
| 13 |
change.getBasePath(), change.getBaseRevision() |
| 14 |
) |
| 15 |
- except exceptions.LookupError: |
| 16 |
+ except LookupError: |
| 17 |
# fall back |
| 18 |
pass |
| 19 |
|
| 20 |
@@ -364,7 +363,7 @@ |
| 21 |
enc2 = self._getContentEncoding( |
| 22 |
change.path, change.revision |
| 23 |
) |
| 24 |
- except exceptions.LookupError: |
| 25 |
+ except LookupError: |
| 26 |
# fall back |
| 27 |
pass |
| 28 |
|
| 29 |
@@ -389,7 +388,6 @@ |
| 30 |
@exception encodings.exception.LookupError: The specified encoding |
| 31 |
is not implemented or no encoding was specified |
| 32 |
""" |
| 33 |
- from encodings import exceptions |
| 34 |
|
| 35 |
# first try the svn:mime-type |
| 36 |
enc = self.getEncodingFromMimeType(path, revision) |
| 37 |
@@ -427,7 +425,7 @@ |
| 38 |
codecs.lookup(enc) |
| 39 |
return enc |
| 40 |
|
| 41 |
- raise exceptions.LookupError("No Encoding configured") |
| 42 |
+ raise LookupError("No Encoding configured") |
| 43 |
|
| 44 |
|
| 45 |
def getEncodingFromMimeType(self, path, revision): |