[Python-checkins] python/dist/src/Lib calendar.py,1.28,1.29

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sun, 20 Oct 2002 20:08:22 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3372

Modified Files:
	calendar.py 
Log Message:
Eliminate unused instance variable

Index: calendar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/calendar.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** calendar.py	20 Jun 2002 03:38:12 -0000	1.28
--- calendar.py	21 Oct 2002 03:08:20 -0000	1.29
***************
*** 36,43 ****
  
      def __getitem__(self, i):
!         self.data = [strftime(self.format, (2001, j, 1, 12, 0, 0, 1, 1, 0))
                       for j in range(1, 13)]
!         self.data.insert(0, "")
!         return self.data[i]
  
      def __len__(self):
--- 36,43 ----
  
      def __getitem__(self, i):
!         data = [strftime(self.format, (2001, j, 1, 12, 0, 0, 1, 1, 0))
                       for j in range(1, 13)]
!         data.insert(0, "")
!         return data[i]
  
      def __len__(self):
***************
*** 50,56 ****
      def __getitem__(self, i):
          # January 1, 2001, was a Monday.
!         self.data = [strftime(self.format, (2001, 1, j+1, 12, 0, 0, j, j+1, 0))
                       for j in range(7)]
!         return self.data[i]
  
      def __len__(self_):
--- 50,56 ----
      def __getitem__(self, i):
          # January 1, 2001, was a Monday.
!         data = [strftime(self.format, (2001, 1, j+1, 12, 0, 0, j, j+1, 0))
                       for j in range(7)]
!         return data[i]
  
      def __len__(self_):