Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pybison
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
pybison
Commits
bc4b291c
Commit
bc4b291c
authored
Jan 24, 2012
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made BisonSyntaxError's arguments optional.
parent
5f74eb1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/python/bison.py
src/python/bison.py
+4
-3
No files found.
src/python/bison.py
View file @
bc4b291c
...
...
@@ -24,9 +24,10 @@ from bison_ import ParserEngine
from
.node
import
BisonNode
class
BisonSyntaxError
(
Exception
):
def
__init__
(
self
,
msg
,
args
):
def
__init__
(
self
,
msg
,
args
=
[]
):
super
(
BisonSyntaxError
,
self
).
__init__
(
msg
)
if
args
:
self
.
first_line
,
self
.
first_col
,
self
.
last_line
,
self
.
last_col
,
\
self
.
message
,
self
.
token_value
=
args
...
...
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