Fixed a single-quote bug in Tokenizer

This commit is contained in:
Jeremy Fincher 2003-03-31 06:08:23 +00:00
parent 817e967716
commit 0f6fe97bf4
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class Error(Exception):
class Tokenizer:
quotes = '"`'
nonbacktickquotes = '"'
validChars = string.ascii[33:].translate(string.ascii, '\'"`[]')
validChars = string.ascii[33:].translate(string.ascii, '"`[]')
def __init__(self, tokens=''):
self.validChars = self.validChars.translate(string.ascii, tokens)