diff options
author | mathieui <mathieui@mathieui.net> | 2013-08-05 19:45:08 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-08-05 19:45:08 +0200 |
commit | 406454fdd03c0984a7d4754da71a3e14f3562293 (patch) | |
tree | 198acd79a7ee3ab580a710bb5893aa48b30c100c /src/shlex.py | |
parent | 90161f81acf1df75503246cedde120fe403bec27 (diff) | |
download | poezio-406454fdd03c0984a7d4754da71a3e14f3562293.tar.gz poezio-406454fdd03c0984a7d4754da71a3e14f3562293.tar.bz2 poezio-406454fdd03c0984a7d4754da71a3e14f3562293.tar.xz poezio-406454fdd03c0984a7d4754da71a3e14f3562293.zip |
Fix common.shell_split with empty strings
Diffstat (limited to 'src/shlex.py')
-rw-r--r-- | src/shlex.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/shlex.py b/src/shlex.py index 87a241ed..5b3c556c 100644 --- a/src/shlex.py +++ b/src/shlex.py @@ -95,20 +95,6 @@ class shlex: return tok # No pushback. Get a token. start, end, raw = self.read_token() - # Handle inclusions - # Maybe we got EOF instead? - while raw == self.eof: - if not self.filestack: - return self.eof - else: - self.pop_source() - start, end, raw = self.get_token() - # Neither inclusion nor EOF - if self.debug >= 1: - if raw != self.eof: - print("shlex: token=" + repr(raw)) - else: - print("shlex: token=EOF") return start, end, raw def read_token(self): |