Skip to content

Commit

Permalink
Merge pull request #6307 from s0undt3ch/hotfix/pylint-anomalous-backs…
Browse files Browse the repository at this point in the history
…lash

Strings containing backslashes should either be escaped or raw strings.
  • Loading branch information
thatch45 committed Jul 26, 2013
2 parents 99dfe0c + b235d11 commit 5de7cd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@ def _set_repo_options(yumbase, **kwargs):

try:
if fromrepo:
log.info('Restricting to repo \'{0}\''.format(fromrepo))
log.info('Restricting to repo {0!r}'.format(fromrepo))
yumbase.repos.disableRepo('*')
yumbase.repos.enableRepo(fromrepo)
else:
if disablerepo:
log.info('Disabling repo \'{0}\''.format(disablerepo))
log.info('Disabling repo {0!r}'.format(disablerepo))
yumbase.repos.disableRepo(disablerepo)
if enablerepo:
log.info('Enabling repo \'{0}\''.format(enablerepo))
log.info('Enabling repo {0!r}'.format(enablerepo))
yumbase.repos.enableRepo(enablerepo)
except yum.Errors.RepoError as e:
return e
except yum.Errors.RepoError as exc:
return exc


def latest_version(*names, **kwargs):
Expand Down

0 comments on commit 5de7cd5

Please sign in to comment.