Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
1083f3d4
Commit
1083f3d4
authored
6 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[fix] output conditions: fix 'parser' variables default definition
parent
43f64b24
No related branches found
No related tags found
1 merge request
!57
Output condition
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/grammars/output.py
+6
-6
6 additions, 6 deletions
duniterpy/grammars/output.py
with
6 additions
and
6 deletions
duniterpy/grammars/output.py
+
6
−
6
View file @
1083f3d4
...
...
@@ -32,7 +32,7 @@ SIGType = TypeVar('SIGType', bound='SIG')
class
SIG
:
"""
S
ig
nature function in transaction output condition
S
IG
nature function in transaction output condition
"""
grammar
=
"
SIG(
"
,
attr
(
'
pubkey
'
,
Pubkey
),
"
)
"
...
...
@@ -60,7 +60,7 @@ class SIG:
sig
.
pubkey
=
pubkey
return
sig
def
compose
(
self
,
parser
:
Any
,
grammar
:
Any
=
None
,
attr_of
:
Any
=
None
)
->
str
:
def
compose
(
self
,
parser
:
Any
=
None
,
grammar
:
Any
=
None
,
attr_of
:
Any
=
None
)
->
str
:
"""
Return the SIG(pubkey) expression as string format
...
...
@@ -106,7 +106,7 @@ class CSV:
csv
.
time
=
str
(
time
)
return
csv
def
compose
(
self
,
parser
:
Any
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
):
def
compose
(
self
,
parser
:
Any
=
None
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
):
"""
Return the CSV(time) expression as string format
...
...
@@ -151,7 +151,7 @@ class CLTV:
cltv
.
timestamp
=
str
(
timestamp
)
return
cltv
def
compose
(
self
,
parser
:
Any
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
):
def
compose
(
self
,
parser
:
Any
=
None
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
):
"""
Return the CLTV(timestamp) expression as string format
...
...
@@ -196,7 +196,7 @@ class XHX:
xhx
.
sha_hash
=
sha_hash
return
xhx
def
compose
(
self
,
parser
:
Any
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
)
->
str
:
def
compose
(
self
,
parser
:
Any
=
None
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
)
->
str
:
"""
Return the XHX(sha_hash) expression as string format
...
...
@@ -229,7 +229,7 @@ class Operator(Keyword):
op
=
cls
(
keyword
)
return
op
def
compose
(
self
,
parser
:
Any
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
)
->
str
:
def
compose
(
self
,
parser
:
Any
=
None
,
grammar
:
Any
=
None
,
attr_of
:
str
=
None
)
->
str
:
"""
Return the Operator keyword as string format
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment