[pypy-commit] pypy py3k: fix this exception to match c datetime
bdkearns
noreply at buildbot.pypy.org
Fri Mar 8 23:51:56 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch: py3k
Changeset: r62253:7022298605ca
Date: 2013-03-08 17:22 -0500
http://bitbucket.org/pypy/pypy/changeset/7022298605ca/
Log: fix this exception to match c datetime
diff --git a/lib-python/3/datetime.py b/lib-python/3/datetime.py
--- a/lib-python/3/datetime.py
+++ b/lib-python/3/datetime.py
@@ -1307,7 +1307,7 @@
if tzinfo is None or isinstance(tzinfo, _tzinfo_class):
self._tzinfo = tzinfo
else:
- raise TypeError("bad tzinfo state arg %r" % tzinfo)
+ raise TypeError("bad tzinfo state arg")
def __reduce__(self):
return (time, self._getstate())
@@ -1783,7 +1783,7 @@
if tzinfo is None or isinstance(tzinfo, _tzinfo_class):
self._tzinfo = tzinfo
else:
- raise TypeError("bad tzinfo state arg %r" % tzinfo)
+ raise TypeError("bad tzinfo state arg")
def __reduce__(self):
return (self.__class__, self._getstate())
More information about the pypy-commit
mailing list