projects
/
edward.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3873840
)
simplification of code
author
Andrew Engelbrecht
<sudoman@ninthfloor.org>
Tue, 21 Jul 2015 22:13:33 +0000
(18:13 -0400)
committer
Andrew Engelbrecht
<sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:38 +0000
(13:28 -0500)
edward
patch
|
blob
|
blame
|
history
diff --git
a/edward
b/edward
index 22cb7e102b8b309b53dcacea5f9de8e13f4d7036..36f2771f5dc7d1eda22eb9bde97b618b8f835aea 100755
(executable)
--- a/
edward
+++ b/
edward
@@
-196,11
+196,7
@@
def scan_and_split (payload_piece, match_type, pattern):
rest.piece_type = payload_piece.piece_type
more_pieces = scan_and_split(rest, match_type, pattern)
-
- if more_pieces == None:
- pieces = [beginning, match, rest]
- else:
- pieces = [beginning, match] + more_pieces
+ pieces = [beginning, match ] + more_pieces
return pieces