diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-07-04 19:27:12 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-07-04 19:27:12 (GMT) |
commit | 30b570bb4b509b905de473018ba2c8870e402a80 (patch) | |
tree | 8f64b5f7582febb391af83b1099d8b28507d01f7 | |
parent | b4a17a8440cbee52df5a1cae508a8f722007e516 (diff) | |
download | cpython-30b570bb4b509b905de473018ba2c8870e402a80.zip cpython-30b570bb4b509b905de473018ba2c8870e402a80.tar.gz cpython-30b570bb4b509b905de473018ba2c8870e402a80.tar.bz2 |
Re-encode shlex.py in UTF-8, and remove coding cookie.
-rw-r--r-- | Lib/shlex.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/shlex.py b/Lib/shlex.py index 55db23c..3edd3db 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 = '\'"' |