Skip to content

Commit

Permalink
Merge pull request #6320 from terminalmage/quickfix
Browse files Browse the repository at this point in the history
Fix pylint compatibility in travis
  • Loading branch information
techhat committed Jul 25, 2013
2 parents d1a769d + 8ef9155 commit bb3209c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def list_pkgs(versions_as_list=False, **kwargs):
for p in yb.rpmdb:
name = p.name
if __grains__.get('cpuarch', '') == 'x86_64' \
and re.match('i\d86', p.arch):
and re.match(r'i\d86', p.arch):
name += '.{0}'.format(p.arch)
pkgver = p.version
if p.release:
Expand Down Expand Up @@ -541,7 +541,7 @@ def install(name=None,
if version is not None:
if __grains__.get('cpuarch', '') == 'x86_64':
try:
arch = re.search('(\.i\d86)$', pkgname).group(1)
arch = re.search(r'(\.i\d86)$', pkgname).group(1)
except AttributeError:
arch = ''
else:
Expand Down Expand Up @@ -660,7 +660,7 @@ def remove(name=None, pkgs=None, **kwargs):
for target in targets:
if __grains__.get('cpuarch', '') == 'x86_64':
try:
arch = re.search('(\.i\d86)$', target).group(1)
arch = re.search(r'(\.i\d86)$', target).group(1)
except AttributeError:
arch = None
else:
Expand Down
4 changes: 2 additions & 2 deletions salt/modules/yumpkg5.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _parse_pkginfo(line):

# Support 32-bit packages on x86_64 systems
if __grains__.get('cpuarch', '') == 'x86_64' \
and re.match('i\d86', arch):
and re.match(r'i\d86', arch):
name += '.{0}'.format(arch)
if rel:
pkgver += '-{0}'.format(rel)
Expand Down Expand Up @@ -375,7 +375,7 @@ def install(name=None,
cver = old.get(pkgname, '')
if __grains__.get('cpuarch', '') == 'x86_64':
try:
arch = re.search('(\.i\d86)$', pkgname).group(1)
arch = re.search(r'(\.i\d86)$', pkgname).group(1)
except AttributeError:
arch = ''
else:
Expand Down

0 comments on commit bb3209c

Please sign in to comment.