summaryrefslogtreecommitdiff
path: root/Lib/shlex.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-27 18:54:06 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-27 18:54:06 +0000
commit9cc8add718ee2c24273aa670c20244ed29661b20 (patch)
tree8488cbd166143ff563d82bac5fef02aabcb19714 /Lib/shlex.py
parent5e3315df58a44caa94ae5a3decb9de2504feb0af (diff)
downloadcpython-9cc8add718ee2c24273aa670c20244ed29661b20.tar.gz
Merged revisions 85861 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85861 | antoine.pitrou | 2010-10-27 20:52:48 +0200 (mer., 27 oct. 2010) | 3 lines Recode modules from latin-1 to utf-8 ........
Diffstat (limited to 'Lib/shlex.py')
-rw-r--r--Lib/shlex.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py
index 55db23cf03..3edd3db1ed 100644
--- a/Lib/shlex.py
+++ b/Lib/shlex.py
@@ -1,4 +1,3 @@
-# -*- coding: iso-8859-1 -*-
"""A lexical analyzer class for simple shell-like syntaxes."""
# Module and documentation by Eric S. Raymond, 21 Dec 1998
@@ -35,8 +34,8 @@ class shlex:
self.wordchars = ('abcdfeghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_')
if self.posix:
- self.wordchars += (''
- '')
+ self.wordchars += ('ßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ'
+ 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ')
self.whitespace = ' \t\r\n'
self.whitespace_split = False
self.quotes = '\'"'