add ^ to wordchars

This commit is contained in:
Michel Oosterhof
2016-06-14 14:47:51 +00:00
parent 5fb34f9ee1
commit 9d0fcd92be

View File

@@ -62,7 +62,7 @@ class shlex:
# _pushback_chars is a push back queue used by lookahead logic
self._pushback_chars = deque()
# these chars added because allowed in file names, args, wildcards
self.wordchars += '{}~-./*?=$:+'
self.wordchars += '{}~-./*?=$:+^'
#remove any punctuation chars from wordchars
self.wordchars = ''.join(c for c in self.wordchars if c not in
self.punctuation_chars)