Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62054:ee108d35ae7f
Date: 2013-03-04 23:38 -0500
http://bitbucket.org/pypy/pypy/changeset/ee108d35ae7f/
Log: spelling in error message
diff --git a/lib_pypy/datetime.py b/lib_pypy/datetime.py
--- a/lib_pypy/datetime.py
+++ b/lib_pypy/datetime.py
@@ -845,7 +845,7 @@
def __format__(self, fmt):
if not isinstance(fmt, (str, unicode)):
- raise ValueError("__format__ excepts str or unicode, not %s" %
+ raise ValueError("__format__ expects str or unicode, not %s" %
fmt.__class__.__name__)
if len(fmt) != 0:
return self.strftime(fmt)
@@ -1337,7 +1337,7 @@
def __format__(self, fmt):
if not isinstance(fmt, (str, unicode)):
- raise ValueError("__format__ excepts str or unicode, not %s" %
+ raise ValueError("__format__ expects str or unicode, not %s" %
fmt.__class__.__name__)
if len(fmt) != 0:
return self.strftime(fmt)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit