diff --git a/localcache.py b/localcache.py
index 243b848..2668751 100644
--- a/localcache.py
+++ b/localcache.py
@@ -157,7 +157,7 @@ def setup_table(table='requests'):
for L in open('cache/request_table.txt','r').readlines():
L = L.strip()
#print(L)
- (col,type) = re.split("\s\s\s\s",L)
+ (col,type) = re.split(r"\s\s\s\s",L)
if not first:
q += ",\n"
first = 0
@@ -1159,13 +1159,13 @@ def guess_dept(t):
method = 2 # xlisted takes dept first listed
if method==1:
- p = "^([A-Z/]+)\d+"
+ p = r"^([A-Z/]+)\d+"
m = re.search(p, t['code'])
if m:
return m.group(1)
return '?'
if method==2:
- p = "^([A-Z]+)[\d/]+"
+ p = r"^([A-Z]+)[\d/]+"
m = re.search(p, t['code'])
if m:
return m.group(1)
@@ -1700,7 +1700,7 @@ ORDER BY u.sortablename;"""
def build_db_schedule():
# from the schedule json files
- target = "\_sched\_expanded\.json"
+ target = r"\_sched\_expanded\.json"
def finder(st):
return re.search(target,st)
@@ -2132,4 +2132,3 @@ if __name__ == "__main__":
# Call the function in the options dict
options[ int(resp)][1]()
-
diff --git a/server.py b/server.py
index 9db0b74..d004ab1 100644
--- a/server.py
+++ b/server.py
@@ -201,20 +201,20 @@ def homepage():
a('want to shut down?','/sd') + "
" + \
a('', '') + br
-def orgline(L):
- L.strip()
- if re.search("^\s*$", L): return ""
-
- a = re.search( '^\*\s(.*)$', L)
- if a: return "