From 30b570bb4b509b905de473018ba2c8870e402a80 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sun, 4 Jul 2010 19:27:12 +0000 Subject: [PATCH] Re-encode shlex.py in UTF-8, and remove coding cookie. --- Lib/shlex.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/shlex.py b/Lib/shlex.py index 55db23cf03d..3edd3db1ed9 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 = '\'"'