repositories
/
bsc-thesis1415.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596343a
)
test
author
Mart Lubbers
<mart@martlubbers.net>
Mon, 5 May 2014 11:45:33 +0000
(13:45 +0200)
committer
Mart Lubbers
<mart@martlubbers.net>
Mon, 5 May 2014 11:45:33 +0000
(13:45 +0200)
program/hypcrawl/hypcrawl.py
patch
|
blob
|
history
diff --git
a/program/hypcrawl/hypcrawl.py
b/program/hypcrawl/hypcrawl.py
index
2648982
..
b34c3b7
100644
(file)
--- a/
program/hypcrawl/hypcrawl.py
+++ b/
program/hypcrawl/hypcrawl.py
@@
-1,4
+1,4
@@
-/bin/env python
+
#!
/bin/env python
# -*- coding: utf-8 -*-
import codecs
@@
-6,7
+6,6
@@
import itertools as it
import re
import sys
-
def parseconfig(filepath, enc='utf-8', com='#'):
inp = sys.stdin if filepath == '-' else codecs.open(filepath, 'r', enc)
pattern = re.compile('^\s*(?P<k>\S+)\t(?P<v>[^{0}]*[^{0}\s])'.format(com))