Replace backticks with repr() or "%r"

From SF patch #852334.
This commit is contained in:
Walter Dörwald 2004-02-12 17:35:32 +00:00
parent ecfeb7f095
commit 70a6b49821
246 changed files with 926 additions and 962 deletions

View file

@ -62,11 +62,11 @@ class Module:
self.starimports = {}
def __repr__(self):
s = "Module(%s" % `self.__name__`
s = "Module(%r" % % (self.__name__,)
if self.__file__ is not None:
s = s + ", %s" % `self.__file__`
s = s + ", %r" % (self.__file__,)
if self.__path__ is not None:
s = s + ", %s" % `self.__path__`
s = s + ", %r" % (self.__path__,)
s = s + ")"
return s
@ -564,7 +564,7 @@ def test():
if debug > 1:
print "path:"
for item in path:
print " ", `item`
print " ", repr(item)
# Create the module finder and turn its crank
mf = ModuleFinder(path, debug, exclude)