Author: Brian Kearns <[email protected]>
Branch: fix-tpname
Changeset: r71192:a503f5354eb5
Date: 2014-05-02 02:34 -0400
http://bitbucket.org/pypy/pypy/changeset/a503f5354eb5/
Log: fix translation
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -479,7 +479,7 @@
return self.getdictvalue(space, '__module__')
else:
dot = self.name.find('.')
- if dot != -1:
+ if dot >= 0:
mod = self.name[:dot]
else:
mod = "__builtin__"
@@ -490,7 +490,7 @@
return self.name
else:
dot = self.name.find('.')
- if dot != -1:
+ if dot >= 0:
return self.name[dot+1:]
else:
return self.name
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit