[Pkg-bazaar-commits] ./bzr/unstable r997: - better error from format_date()

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:42 UTC 2009


------------------------------------------------------------
revno: 997
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-07-29 10:16:51 -0300
message:
  - better error from format_date()
modified:
  bzrlib/osutils.py
-------------- next part --------------
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py	2005-07-25 21:54:01 +0000
+++ b/bzrlib/osutils.py	2005-07-29 13:16:51 +0000
@@ -367,8 +367,8 @@
         tt = time.localtime(t)
         offset = local_time_offset(t)
     else:
-        raise BzrError("unsupported timezone format %r",
-                ['options are "utc", "original", "local"'])
+        raise BzrError("unsupported timezone format %r" % timezone,
+                       ['options are "utc", "original", "local"'])
 
     return (time.strftime("%a %Y-%m-%d %H:%M:%S", tt)
             + ' %+03d%02d' % (offset / 3600, (offset / 60) % 60))



More information about the Pkg-bazaar-commits mailing list