Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
c3e9f21a
Commit
c3e9f21a
authored
Sep 09, 2010
by
Marc Betoule
Browse files
Bug fix, in directive: processing only commented lines, and catch parsing errors
parent
98599360
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
pipelet/directive.py
pipelet/directive.py
+4
-1
pipelet/repository.py
pipelet/repository.py
+1
-1
No files found.
pipelet/directive.py
View file @
c3e9f21a
...
...
@@ -2,7 +2,10 @@ import shlex
class
Directive
:
def
parse
(
self
,
code
):
l
=
shlex
.
split
(
code
)
try
:
l
=
shlex
.
split
(
code
)
except
ValueError
:
raise
StopIteration
()
it
=
iter
(
l
)
if
it
.
next
()
!=
self
.
_name
:
raise
StopIteration
()
...
...
pipelet/repository.py
View file @
c3e9f21a
...
...
@@ -67,7 +67,7 @@ class Repository:
c
=
self
.
get_code_string
(
seg
)
d
=
Direct
()
for
l
in
c
.
splitlines
():
if
c
[
0
]
=
"#"
:
if
c
[
0
]
=
=
"#"
:
continue
try
:
d
.
parse
(
l
)
...
...
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