[yum-cvs] yum output.py,1.58,1.59
Seth Vidal
skvidal at login.linux.duke.edu
Fri Jun 3 21:21:10 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv28836
Modified Files:
output.py
Log Message:
check in terje rosten's patch for making timestamp in log be consistently C
locale.
Index: output.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/output.py,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- output.py 29 May 2005 06:14:36 -0000 1.58
+++ output.py 3 Jun 2005 21:21:08 -0000 1.59
@@ -21,6 +21,7 @@
import os.path
import sys
import time
+import locale
from i18n import _
from urlgrabber.progress import TextMeter
@@ -35,7 +36,10 @@
class YumOutput:
def printtime(self):
- return time.strftime('%b %d %H:%M:%S ', time.localtime(time.time()))
+ locale.setlocale(locale.LC_TIME, 'C')
+ ret = time.strftime('%b %d %H:%M:%S ', time.localtime(time.time()))
+ locale.resetlocale(locale.LC_TIME)
+ return ret
def failureReport(self, errobj):
More information about the Yum-cvs-commits
mailing list