comparison sqlpyPlus.py @ 25:c99853267a44

introducing parameters
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Wed, 19 Dec 2007 15:37:45 -0500
parents 8b55aaa52ce9
children bb3fb24b6f5f
comparison
equal deleted inserted replaced
24:7a89805a47b1 25:c99853267a44
297 for k in iterable: 297 for k in iterable:
298 dict.__setitem__(d, k.lower(), value) 298 dict.__setitem__(d, k.lower(), value)
299 return d 299 return d
300 def pop(self, key, def_val=None): 300 def pop(self, key, def_val=None):
301 return dict.pop(self, key.lower(), def_val) 301 return dict.pop(self, key.lower(), def_val)
302
303 class NotSettableError(Exception):
304 None
305 302
306 class Parser(object): 303 class Parser(object):
307 comment_def = "--" + pyparsing.ZeroOrMore(pyparsing.CharsNotIn("\n")) 304 comment_def = "--" + pyparsing.ZeroOrMore(pyparsing.CharsNotIn("\n"))
308 def __init__(self, scanner, retainSeparator=True): 305 def __init__(self, scanner, retainSeparator=True):
309 self.scanner = scanner 306 self.scanner = scanner