summaryrefslogtreecommitdiffstats
path: root/lib/sunhpc/core/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sunhpc/core/files.py')
-rw-r--r--lib/sunhpc/core/files.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sunhpc/core/files.py b/lib/sunhpc/core/files.py
index 886a059..747bbee 100644
--- a/lib/sunhpc/core/files.py
+++ b/lib/sunhpc/core/files.py
@@ -162,9 +162,9 @@ class Tree:
os.path.islink(filepath):
self.build(os.path.join(dir, f))
else:
- if re.match('.*\.rpm$', f) != None:
+ if re.match(r'.*\.rpm$', f) != None:
v.append(RPMFile(filepath))
- elif re.match('roll-.*\.iso$', f) != None:
+ elif re.match(r'roll-.*\.iso$', f) != None:
v.append(RollFile(filepath))
else:
v.append(File(filepath))
@@ -204,7 +204,7 @@ class RPMBaseFile(File):
def versionList(self, s):
list = []
- for e in re.split('\.+|_+', s):
+ for e in re.split(r'\.+|_+', s):
l = []
num = ''
alpha = ''