[Python-checkins] python/dist/src/Lib pickle.py,1.108,1.109

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 28 Jan 2003 08:23:36 -0800


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

Modified Files:
	pickle.py 
Log Message:
Got rid of the _quotes global.  Used only once, and is trivial.


Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.108
retrieving revision 1.109
diff -C2 -d -r1.108 -r1.109
*** pickle.py	28 Jan 2003 15:19:53 -0000	1.108
--- pickle.py	28 Jan 2003 16:23:33 -0000	1.109
***************
*** 157,162 ****
  del x
  
- _quotes = ["'", '"']
- 
  
  # Pickling machinery
--- 157,160 ----
***************
*** 827,831 ****
      def load_string(self):
          rep = self.readline()[:-1]
!         for q in _quotes:
              if rep.startswith(q):
                  if not rep.endswith(q):
--- 825,829 ----
      def load_string(self):
          rep = self.readline()[:-1]
!         for q in "\"'": # double or single quote
              if rep.startswith(q):
                  if not rep.endswith(q):