A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-January/014796.html below:

[Python-checkins] CVS: python/dist/src/Lib shlex.py,1.10,1.11

[Python-checkins] CVS: python/dist/src/Lib shlex.py,1.10,1.11A.M. Kuchling python-dev@python.org
Mon, 08 Jan 2001 19:01:18 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3254

Modified Files:
	shlex.py 
Log Message:
Patch #102953: Fix bug #125452, where shlex.shlex hangs when it
    encounters a string with an unmatched quote, by adding a check for 
    EOF in the 'quotes' state.


Index: shlex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/shlex.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** shlex.py	2000/12/23 14:20:23	1.10
--- shlex.py	2001/01/09 03:01:15	1.11
***************
*** 124,127 ****
--- 124,132 ----
                      self.state = ' '
                      break
+                 elif not nextchar:      # end of file
+                     if self.debug >= 2:
+                         print "shlex: I see EOF in quotes state"
+                     # XXX what error should be raised here?
+                     raise ValueError, "No closing quotation"
              elif self.state == 'a':
                  if not nextchar:




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4