Commit 3791d3ba authored by Igor Dejanovic's avatar Igor Dejanovic

Fixing default ws parameter.

parent 175c30a5
...@@ -1120,7 +1120,7 @@ class Parser(object): ...@@ -1120,7 +1120,7 @@ class Parser(object):
comments(list): A list of ParseTreeNode for matched comments. comments(list): A list of ParseTreeNode for matched comments.
""" """
def __init__(self, skipws=True, ws=DEFAULT_WS, reduce_tree=False, def __init__(self, skipws=True, ws=None, reduce_tree=False,
autokwd=False, ignore_case=False, debug=False): autokwd=False, ignore_case=False, debug=False):
# Used to indicate state in which parser should not # Used to indicate state in which parser should not
...@@ -1128,7 +1128,10 @@ class Parser(object): ...@@ -1128,7 +1128,10 @@ class Parser(object):
self._eolterm = False self._eolterm = False
self.skipws = skipws self.skipws = skipws
if ws is not None:
self.ws = ws self.ws = ws
else:
self.ws = DEFAULT_WS
self.reduce_tree = reduce_tree self.reduce_tree = reduce_tree
self.autokwd = autokwd self.autokwd = autokwd
self.ignore_case = ignore_case self.ignore_case = ignore_case
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment