should have used git mv

This commit is contained in:
Solvik Blum 2019-08-05 12:03:06 +02:00
parent acbb767e22
commit 42b81a1f78
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47
2 changed files with 0 additions and 19 deletions

View file

@ -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

View file

@ -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