diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-09-24 12:15:13 +0900 |
|---|---|---|
| committer | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2012-10-09 12:45:30 +0200 |
| commit | 8a68ff96057ec58e524a3e41a2d8dca7b5d016bc (patch) | |
| tree | 22f6971e8d3c4a90d11d3704602d073a852328b4 /subcmds/init.py | |
| parent | e3b1c45aebed329cbc9ad172b1d8e812cf208117 (diff) | |
| download | git-repo-8a68ff96057ec58e524a3e41a2d8dca7b5d016bc.tar.gz | |
Coding style cleanup
Fix the following issues reported by pylint:
C0321: More than one statement on a single line
W0622: Redefining built-in 'name'
W0612: Unused variable 'name'
W0613: Unused argument 'name'
W0102: Dangerous default value 'value' as argument
W0105: String statement has no effect
Also fixed a few cases of inconsistent indentation.
Change-Id: Ie0db839e7c57d576cff12d8c055fe87030d00744
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 9a4f7118..697d6bec 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -213,8 +213,6 @@ to update the working directory files. | |||
| 213 | sys.exit(1) | 213 | sys.exit(1) |
| 214 | 214 | ||
| 215 | def _Prompt(self, prompt, value): | 215 | def _Prompt(self, prompt, value): |
| 216 | mp = self.manifest.manifestProject | ||
| 217 | |||
| 218 | sys.stdout.write('%-10s [%s]: ' % (prompt, value)) | 216 | sys.stdout.write('%-10s [%s]: ' % (prompt, value)) |
| 219 | a = sys.stdin.readline().strip() | 217 | a = sys.stdin.readline().strip() |
| 220 | if a == '': | 218 | if a == '': |
| @@ -328,9 +326,9 @@ to update the working directory files. | |||
| 328 | self._ConfigureDepth(opt) | 326 | self._ConfigureDepth(opt) |
| 329 | 327 | ||
| 330 | if self.manifest.IsMirror: | 328 | if self.manifest.IsMirror: |
| 331 | type = 'mirror ' | 329 | init_type = 'mirror ' |
| 332 | else: | 330 | else: |
| 333 | type = '' | 331 | init_type = '' |
| 334 | 332 | ||
| 335 | print '' | 333 | print '' |
| 336 | print 'repo %sinitialized in %s' % (type, self.manifest.topdir) | 334 | print 'repo %sinitialized in %s' % (init_type, self.manifest.topdir) |
