]> arthur.barton.de Git - bup.git/commitdiff
Stop using '%s' formatter in strftime.
authorJoe Beda <joe@bedafamily.com>
Tue, 11 May 2010 08:51:42 +0000 (01:51 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 11 May 2010 15:35:19 +0000 (11:35 -0400)
This isn't supported on all platforms (OpenSolaris specifically).

Signed-off-by: Joe Beda <joe@bedafamily.com>
lib/bup/git.py

index 8835d690d84f249f708fca06d28f0b0220d7aaaa..f900d63e9a3ad468f1a22e3a545b61e248ddf4a6 100644 (file)
@@ -495,7 +495,7 @@ class PackWriter:
 
 
 def _git_date(date):
-    return time.strftime('%s %z', time.localtime(date))
+    return '%d %s' % (date, time.strftime('%z', time.localtime(date)))
 
 
 def _gitenv():