mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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:
parent
cecd1d864f
commit
98ffba1401
@ -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
2
repo
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user