Fix small bugs and clean up the code
[snf-image-creator] / image_creator / os_type / linux.py
index 5ff99aa..71ce109 100644 (file)
@@ -310,7 +310,7 @@ class Linux(Unix):
     def _get_passworded_users(self):
         """Returns a list of non-locked user accounts"""
         users = []
-        regexp = re.compile('(\S+):((?:!\S+)|(?:[^!*]\S+)|):(?:\S*:){6}')
+        regexp = re.compile(r'(\S+):((?:!\S+)|(?:[^!*]\S+)|):(?:\S*:){6}')
 
         for line in self.g.cat('/etc/shadow').splitlines():
             match = regexp.match(line)