Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
trs
Commits
aaf0df25
Commit
aaf0df25
authored
Jun 15, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some coverage exceptions to verbose print lines.
parent
ebf19906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/parser.py
src/parser.py
+7
-7
No files found.
src/parser.py
View file @
aaf0df25
...
@@ -267,7 +267,7 @@ class Parser(BisonParser):
...
@@ -267,7 +267,7 @@ class Parser(BisonParser):
raise RuntimeError('
No
expression
')
raise RuntimeError('
No
expression
')
if self.possibilities is not None:
if self.possibilities is not None:
if self.verbose:
if self.verbose:
# pragma: nocover
print '
Expression
has
not
changed
,
not
updating
possibilities
'
print '
Expression
has
not
changed
,
not
updating
possibilities
'
return
return
...
@@ -302,14 +302,14 @@ class Parser(BisonParser):
...
@@ -302,14 +302,14 @@ class Parser(BisonParser):
suggestion = self.possibilities[index]
suggestion = self.possibilities[index]
if self.verbose:
if self.verbose:
# pragma: nocover
print '
EXPLICIT
:
', suggestion
print '
EXPLICIT
:
', suggestion
elif verbose:
elif verbose:
# pragma: nocover
print suggestion
print suggestion
self.set_root_node(apply_suggestion(self.root_node, suggestion))
self.set_root_node(apply_suggestion(self.root_node, suggestion))
if self.verbose:
if self.verbose:
# pragma: nocover
print '
', self.root_node
print '
', self.root_node
# Only apply any remaining implicit hints if the suggestion itself is
# Only apply any remaining implicit hints if the suggestion itself is
...
@@ -338,17 +338,17 @@ class Parser(BisonParser):
...
@@ -338,17 +338,17 @@ class Parser(BisonParser):
if not sugg:
if not sugg:
break
break
if self.verbose:
if self.verbose:
# pragma: nocover
print '
IMPLICIT
:
', sugg
print '
IMPLICIT
:
', sugg
self.set_root_node(apply_suggestion(self.root_node, sugg))
self.set_root_node(apply_suggestion(self.root_node, sugg))
if self.verbose:
if self.verbose:
# pragma: nocover
print '
', self.root_node
print '
', self.root_node
self.find_possibilities()
self.find_possibilities()
if verbose and not self.verbose:
if verbose and not self.verbose:
# pragma: nocover
print self.root_node
print self.root_node
if include_step:
if include_step:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment