Kaydet (Commit) 3a70e3f9 authored tarafından Jack Jansen's avatar Jack Jansen

Get rid of non-ascii characters.

üst 82a9b60b
"""codefragments.py -- wrapper to modify code fragments.""" """codefragments.py -- wrapper to modify code fragments."""
# 1998, Just van Rossum, Letterror # (c) 1998, Just van Rossum, Letterror
__version__ = "0.8b3" __version__ = "0.8b3"
__author__ = "jvr" __author__ = "jvr"
...@@ -70,7 +70,7 @@ class CfrgResource: ...@@ -70,7 +70,7 @@ class CfrgResource:
try: try:
data = Res.Get1Resource('cfrg', 0).data data = Res.Get1Resource('cfrg', 0).data
except Res.Error: except Res.Error:
raise Res.Error, "no cfrg resource found", sys.exc_traceback raise Res.Error, "no 'cfrg' resource found", sys.exc_traceback
finally: finally:
Res.CloseResFile(resref) Res.CloseResFile(resref)
Res.UseResFile(currentresref) Res.UseResFile(currentresref)
...@@ -146,7 +146,7 @@ class FragmentDescriptor: ...@@ -146,7 +146,7 @@ class FragmentDescriptor:
def getfragment(self): def getfragment(self):
if self.where <> 1: if self.where <> 1:
raise error, "cant read fragment, unsupported location" raise error, "can't read fragment, unsupported location"
f = open(self.path, "rb") f = open(self.path, "rb")
f.seek(self.offset) f.seek(self.offset)
if self.length: if self.length:
...@@ -158,7 +158,7 @@ class FragmentDescriptor: ...@@ -158,7 +158,7 @@ class FragmentDescriptor:
def copydata(self, outfile): def copydata(self, outfile):
if self.where <> 1: if self.where <> 1:
raise error, "cant read fragment, unsupported location" raise error, "can't read fragment, unsupported location"
infile = open(self.path, "rb") infile = open(self.path, "rb")
if self.length == 0: if self.length == 0:
infile.seek(0, 2) infile.seek(0, 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment