Revision 47505e53 image_creator/os_type/linux.py

b/image_creator/os_type/linux.py
310 310
    def _get_passworded_users(self):
311 311
        """Returns a list of non-locked user accounts"""
312 312
        users = []
313
        regexp = re.compile('(\S+):((?:!\S+)|(?:[^!*]\S+)|):(?:\S*:){6}')
313
        regexp = re.compile(r'(\S+):((?:!\S+)|(?:[^!*]\S+)|):(?:\S*:){6}')
314 314

  
315 315
        for line in self.g.cat('/etc/shadow').splitlines():
316 316
            match = regexp.match(line)

Also available in: Unified diff