Skip to content
Snippets Groups Projects
Commit 5f2d6b60 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix bad escape in regexp

parent 333afe61
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Name: apa Name: apa
Version: 0.5 Version: 0.5
Release: 1 Release: 2
Summary: Anders Python Archiver Summary: Anders Python Archiver
License: GPLv3 License: GPLv3
Source0: https://gitlab.control.lth.se/anders_blomdell/apa/-/raw/master/apa Source0: https://gitlab.control.lth.se/anders_blomdell/apa/-/raw/master/apa
......
...@@ -32,10 +32,10 @@ import string ...@@ -32,10 +32,10 @@ import string
import sys import sys
def getModuleName(s): def getModuleName(s):
m = re.match("^(.*)/__init__\.py$", s) m = re.match("^(.*)/__init__\\.py$", s)
if m: if m:
return m.group(1).replace("/", ".") return m.group(1).replace("/", ".")
m = re.match("^(.*)\.py$", s) m = re.match("^(.*)\\.py$", s)
if m: if m:
return m.group(1).replace("/", ".") return m.group(1).replace("/", ".")
return None return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment