[Zope3-checkins] SVN: Zope3/trunk/src/ClientCookie/_Util.py Fixed a few indentation errors (patch also has been sent to the maintainer)

Dmitry Vasiliev dima at hlabs.spb.ru
Sun Apr 30 17:12:50 EDT 2006


Log message for revision 67772:
  Fixed a few indentation errors (patch also has been sent to the maintainer)
  

Changed:
  U   Zope3/trunk/src/ClientCookie/_Util.py

-=-
Modified: Zope3/trunk/src/ClientCookie/_Util.py
===================================================================
--- Zope3/trunk/src/ClientCookie/_Util.py	2006-04-30 16:30:23 UTC (rev 67771)
+++ Zope3/trunk/src/ClientCookie/_Util.py	2006-04-30 21:12:50 UTC (rev 67772)
@@ -98,12 +98,12 @@
 
     # Return 1 for leap years, 0 for non-leap years
     def isleap(year):
-	return year % 4 == 0 and (year % 100 <> 0 or year % 400 == 0)
+        return year % 4 == 0 and (year % 100 <> 0 or year % 400 == 0)
 
     # Return number of leap years in range [y1, y2)
     # Assume y1 <= y2 and no funny (non-leap century) years
     def leapdays(y1, y2):
-	return (y2+3)/4 - (y1+3)/4
+        return (y2+3)/4 - (y1+3)/4
 
     EPOCH = 1970
     def timegm(tuple):
@@ -220,12 +220,12 @@
     sec = int(sec)
 
     if yr < 1000:
-	# find "obvious" year
-	cur_yr = time.localtime(time.time())[0]
-	m = cur_yr % 100
-	tmp = yr
-	yr = yr + cur_yr - m
-	m = m - tmp
+        # find "obvious" year
+        cur_yr = time.localtime(time.time())[0]
+        m = cur_yr % 100
+        tmp = yr
+        yr = yr + cur_yr - m
+        m = m - tmp
         if abs(m) > 50:
             if m > 0: yr = yr + 100
             else: yr = yr - 100
@@ -257,7 +257,7 @@
         (?:\s+|[-\/])
     (\d+)              # year
     (?:
-	  (?:\s+|:)    # separator before clock
+       (?:\s+|:)    # separator before clock
        (\d\d?):(\d\d)  # hour:min
        (?::(\d\d))?    # optional seconds
     )?                 # optional clock



More information about the Zope3-Checkins mailing list