From 98ffba1401056e2d88d3f3898b6fbf5d7d3931a4 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 14 Nov 2012 11:18:00 +0900 Subject: [PATCH] Fix: "Statement seems to have no effect" Pylint raises an error on the call: print Change it to: print() Change-Id: I507e1b3dd928fa6c32ea7e86260fb3d7b1428e6f --- project.py | 2 +- repo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.py b/project.py index 20a8dca4..22ac9efd 100644 --- a/project.py +++ b/project.py @@ -360,7 +360,7 @@ class RepoHook(object): '(yes/yes-never-ask-again/NO)? ') % ( self._GetMustVerb(), self._script_fullpath) response = raw_input(prompt).lower() - print + print() # User is doing a one-time approval. if response in ('y', 'yes'): diff --git a/repo b/repo index 9fcfc1b1..4d8e8dca 100755 --- a/repo +++ b/repo @@ -338,7 +338,7 @@ def SetupGnuPG(quiet): if proc.wait() != 0: print('fatal: registering repo maintainer keys failed', file=sys.stderr) sys.exit(1) - print + print() fd = open(os.path.join(home_dot_repo, 'keyring-version'), 'w') fd.write('.'.join(map(str, KEYRING_VERSION)) + '\n')