diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:18:00 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 11:38:57 +0900 |
commit | 98ffba1401056e2d88d3f3898b6fbf5d7d3931a4 (patch) | |
tree | 7a39e4d55327bd186b66baf91e9cfed3d8a80c66 | |
parent | cecd1d864fc3cf02cf50d367111e0d0e173c5dc6 (diff) | |
download | git-repo-98ffba1401056e2d88d3f3898b6fbf5d7d3931a4.tar.gz |
Fix: "Statement seems to have no effect"
Pylint raises an error on the call:
print
Change it to:
print()
Change-Id: I507e1b3dd928fa6c32ea7e86260fb3d7b1428e6f
-rw-r--r-- | project.py | 2 | ||||
-rwxr-xr-x | repo | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -360,7 +360,7 @@ class RepoHook(object): | |||
360 | '(yes/yes-never-ask-again/NO)? ') % ( | 360 | '(yes/yes-never-ask-again/NO)? ') % ( |
361 | self._GetMustVerb(), self._script_fullpath) | 361 | self._GetMustVerb(), self._script_fullpath) |
362 | response = raw_input(prompt).lower() | 362 | response = raw_input(prompt).lower() |
363 | 363 | print() | |
364 | 364 | ||
365 | # User is doing a one-time approval. | 365 | # User is doing a one-time approval. |
366 | if response in ('y', 'yes'): | 366 | if response in ('y', 'yes'): |
@@ -338,7 +338,7 @@ def SetupGnuPG(quiet): | |||
338 | if proc.wait() != 0: | 338 | if proc.wait() != 0: |
339 | print('fatal: registering repo maintainer keys failed', file=sys.stderr) | 339 | print('fatal: registering repo maintainer keys failed', file=sys.stderr) |
340 | sys.exit(1) | 340 | sys.exit(1) |
341 | 341 | print() | |
342 | 342 | ||
343 | fd = open(os.path.join(home_dot_repo, 'keyring-version'), 'w') | 343 | fd = open(os.path.join(home_dot_repo, 'keyring-version'), 'w') |
344 | fd.write('.'.join(map(str, KEYRING_VERSION)) + '\n') | 344 | fd.write('.'.join(map(str, KEYRING_VERSION)) + '\n') |