should have used git mv
This commit is contained in:
parent
acbb767e22
commit
42b81a1f78
2 changed files with 0 additions and 19 deletions
|
@ -1,10 +0,0 @@
|
|||
import re
|
||||
import subprocess
|
||||
|
||||
|
||||
def get(value, regex):
|
||||
output = subprocess.getoutput(value)
|
||||
r = re.search(regex, output)
|
||||
if r and len(r.groups()) > 0:
|
||||
return r.groups()[0]
|
||||
return None
|
|
@ -1,9 +0,0 @@
|
|||
import re
|
||||
|
||||
|
||||
def get(value, regex):
|
||||
for line in open(value, 'r'):
|
||||
r = re.search(regex, line)
|
||||
if r and len(r.groups()) > 0:
|
||||
return r.groups()[0]
|
||||
return None
|
Loading…
Reference in a new issue