Skip to content
Snippets Groups Projects
Commit 80604d90 authored by Joe Garcia's avatar Joe Garcia
Browse files

improve compatibility with really old python

parent bd764928
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ def extractRelInterpreter(filepath):
raise RuntimeError("Not a re-l script!")
for line in range(2,5):
l=getLine(filepath,linenumber=line)
if l.startswith(('#re-l:','#:')):
if l.startswith('#re-l:') or l.startswith('#:'):
return l.split(':',1)[1].strip()
raise RuntimeError("Couldn't find re-lative interpreter line (starts with '#re-l:')")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment