diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-17 12:45:13 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-17 12:45:13 (GMT) |
commit | 6f84ed5afc0d1d43e01f2728207b6fb2cdafc5b5 (patch) | |
tree | 68fa306974cc05de44d5c5c07ba62a739db3aa72 /Mac/Lib/cfmfile.py | |
parent | dfebe90c4c04a7a36e4542907118ddce97085868 (diff) | |
download | cpython-6f84ed5afc0d1d43e01f2728207b6fb2cdafc5b5.zip cpython-6f84ed5afc0d1d43e01f2728207b6fb2cdafc5b5.tar.gz cpython-6f84ed5afc0d1d43e01f2728207b6fb2cdafc5b5.tar.bz2 |
Fixed macroman<->latin1 conversion. Some chars don't
exist in latin1, but at least the roundtrip results in the
same macroman characters.
Diffstat (limited to 'Mac/Lib/cfmfile.py')
-rw-r--r-- | Mac/Lib/cfmfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Lib/cfmfile.py b/Mac/Lib/cfmfile.py index cef28fe..9c449e0 100644 --- a/Mac/Lib/cfmfile.py +++ b/Mac/Lib/cfmfile.py @@ -70,7 +70,7 @@ class CfrgResource: try: data = Res.Get1Resource('cfrg', 0).data except Res.Error: - raise Res.Error, "no Œcfrg¹ resource found", sys.exc_traceback + raise Res.Error, "no •cfrgÕ resource found", sys.exc_traceback finally: Res.CloseResFile(resref) Res.UseResFile(currentresref) @@ -146,7 +146,7 @@ class FragmentDescriptor: def getfragment(self): if self.where <> 1: - raise error, "can¹t read fragment, unsupported location" + raise error, "canÕt read fragment, unsupported location" f = open(self.path, "rb") f.seek(self.offset) if self.length: @@ -158,7 +158,7 @@ class FragmentDescriptor: def copydata(self, outfile): if self.where <> 1: - raise error, "can¹t read fragment, unsupported location" + raise error, "canÕt read fragment, unsupported location" infile = open(self.path, "rb") if self.length == 0: infile.seek(0, 2) |