[Pypi-checkins] r765 - trunk/pypi/tools

martin.von.loewis python-checkins at python.org
Sun Jul 4 20:36:29 CEST 2010


Author: martin.von.loewis
Date: Sun Jul  4 20:36:28 2010
New Revision: 765

Modified:
   trunk/pypi/tools/apache_stats.py
Log:
Integrate change from pep381client: use two-digits months
and days.


Modified: trunk/pypi/tools/apache_stats.py
==============================================================================
--- trunk/pypi/tools/apache_stats.py	(original)
+++ trunk/pypi/tools/apache_stats.py	Sun Jul  4 20:36:28 2010
@@ -112,7 +112,7 @@
 
     def build_local_stats(self, year, month, day, logfile, directory=None):
         """builds local stats with default values"""
-        filename = '%d-%d-%d.bz2' % (year, month, day)
+        filename = '%d-%.2d-%.2d.bz2' % (year, month, day)
         if directory is not None:
             filename = os.path.join(directory, filename)
 


More information about the Pypi-checkins mailing list