[Python-checkins] python/nondist/sandbox/datetime US.py,1.1,1.2 datetime.py,1.124,1.125 picklesize.py,1.1,1.2 test_datetime.py,1.81,1.82

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Wed, 25 Dec 2002 11:52:27 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv29494

Modified Files:
	US.py datetime.py picklesize.py test_datetime.py 
Log Message:
Whitespace normalization.


Index: US.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/US.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** US.py	24 Dec 2002 21:43:03 -0000	1.1
--- US.py	25 Dec 2002 19:52:25 -0000	1.2
***************
*** 75,77 ****
  printstuff(d)
  d += timedelta(seconds=1)
! printstuff(d)
\ No newline at end of file
--- 75,77 ----
  printstuff(d)
  d += timedelta(seconds=1)
! printstuff(d)

Index: datetime.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.py,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** datetime.py	25 Dec 2002 06:49:28 -0000	1.124
--- datetime.py	25 Dec 2002 19:52:25 -0000	1.125
***************
*** 1759,1763 ****
  # what the C code had to do, so that pickles produced by the Python
  # implementation can be read by the C implementation, and vice versa.
!  
  def _date_pickler(date):
      state = date.__getstate__()
--- 1759,1763 ----
  # what the C code had to do, so that pickles produced by the Python
  # implementation can be read by the C implementation, and vice versa.
! 
  def _date_pickler(date):
      state = date.__getstate__()

Index: picklesize.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/picklesize.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** picklesize.py	3 Dec 2002 17:50:09 -0000	1.1
--- picklesize.py	25 Dec 2002 19:52:25 -0000	1.2
***************
*** 20,24 ****
  for typename in typenames:
      for i in range(1, 11):
!          for mod, way in cases:
              ctor = getattr(mod, typename)
              objs = [ctor(j+1, 3, 4) for j in range(i**2)]
--- 20,24 ----
  for typename in typenames:
      for i in range(1, 11):
!         for mod, way in cases:
              ctor = getattr(mod, typename)
              objs = [ctor(j+1, 3, 4) for j in range(i**2)]

Index: test_datetime.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/test_datetime.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** test_datetime.py	25 Dec 2002 06:49:29 -0000	1.81
--- test_datetime.py	25 Dec 2002 19:52:25 -0000	1.82
***************
*** 2286,2290 ****
          datestr = '0001-02-03'
          for ofs in None, zero, plus, minus, unknown:
!              for us in 0, 987001:
                  d = cls(1, 2, 3, 4, 5, 59, us, tzinfo=ofs)
                  timestr = '04:05:59' + (us and '.987001' or '')
--- 2286,2290 ----
          datestr = '0001-02-03'
          for ofs in None, zero, plus, minus, unknown:
!             for us in 0, 987001:
                  d = cls(1, 2, 3, 4, 5, 59, us, tzinfo=ofs)
                  timestr = '04:05:59' + (us and '.987001' or '')