svn path=/main/trunk/; revision=4602
raise
return None
try:
- lex=shlex.shlex(f)
+ lex = shlex.shlex(f, posix=True)
lex.wordchars=string.digits+string.letters+"~!@#$%*_\:;?,./-+{}"
lex.quotes="\"'"
if allow_sourcing:
key=lex.get_token()
if key == "export":
key = lex.get_token()
- if (key==''):
+ if key is None:
#normal end of file
break;
equ=lex.get_token()
else:
return mykeys
val=lex.get_token()
- if (val==''):
+ if val is None:
#unexpected end of file
#lex.error_leader(self.filename,lex.lineno)
if not tolerant: