Fix: "Statement seems to have no effect"

Pylint raises an error on the call:

  print

Change it to:

 print()

Change-Id: I507e1b3dd928fa6c32ea7e86260fb3d7b1428e6f
This commit is contained in:
David Pursehouse 2012-11-14 11:18:00 +09:00
parent cecd1d864f
commit 98ffba1401
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@ class RepoHook(object):
'(yes/yes-never-ask-again/NO)? ') % ( '(yes/yes-never-ask-again/NO)? ') % (
self._GetMustVerb(), self._script_fullpath) self._GetMustVerb(), self._script_fullpath)
response = raw_input(prompt).lower() response = raw_input(prompt).lower()
print print()
# User is doing a one-time approval. # User is doing a one-time approval.
if response in ('y', 'yes'): if response in ('y', 'yes'):

2
repo
View File

@ -338,7 +338,7 @@ def SetupGnuPG(quiet):
if proc.wait() != 0: if proc.wait() != 0:
print('fatal: registering repo maintainer keys failed', file=sys.stderr) print('fatal: registering repo maintainer keys failed', file=sys.stderr)
sys.exit(1) sys.exit(1)
print print()
fd = open(os.path.join(home_dot_repo, 'keyring-version'), 'w') fd = open(os.path.join(home_dot_repo, 'keyring-version'), 'w')
fd.write('.'.join(map(str, KEYRING_VERSION)) + '\n') fd.write('.'.join(map(str, KEYRING_VERSION)) + '\n')