diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 12:09:38 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-11-14 12:09:38 +0900 |
| commit | 8f62fb7bd305337994bced7d23b347d0d39f5faf (patch) | |
| tree | 7a00915a4e6138fe2c12d6f8d181b623df8962a2 /subcmds/init.py | |
| parent | c1b86a232383748811c6faf17f364e63e10f7dd4 (diff) | |
| download | git-repo-8f62fb7bd305337994bced7d23b347d0d39f5faf.tar.gz | |
Tidy up code formatting a bit more
Enable the following Pylint warnings:
C0322: Operator not preceded by a space
C0323: Operator not followed by a space
C0324: Comma not followed by a space
And make the necessary fixes.
Change-Id: I74d74283ad5138cbaf28d492b18614eb355ff9fe
Diffstat (limited to 'subcmds/init.py')
| -rw-r--r-- | subcmds/init.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 7aaa7f17..eeadc70d 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
| @@ -279,14 +279,14 @@ to update the working directory files. | |||
| 279 | print() | 279 | print() |
| 280 | print("Testing colorized output (for 'repo diff', 'repo status'):") | 280 | print("Testing colorized output (for 'repo diff', 'repo status'):") |
| 281 | 281 | ||
| 282 | for c in ['black','red','green','yellow','blue','magenta','cyan']: | 282 | for c in ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan']: |
| 283 | out.write(' ') | 283 | out.write(' ') |
| 284 | out.printer(fg=c)(' %-6s ', c) | 284 | out.printer(fg=c)(' %-6s ', c) |
| 285 | out.write(' ') | 285 | out.write(' ') |
| 286 | out.printer(fg='white', bg='black')(' %s ' % 'white') | 286 | out.printer(fg='white', bg='black')(' %s ' % 'white') |
| 287 | out.nl() | 287 | out.nl() |
| 288 | 288 | ||
| 289 | for c in ['bold','dim','ul','reverse']: | 289 | for c in ['bold', 'dim', 'ul', 'reverse']: |
| 290 | out.write(' ') | 290 | out.write(' ') |
| 291 | out.printer(fg='black', attr=c)(' %-6s ', c) | 291 | out.printer(fg='black', attr=c)(' %-6s ', c) |
| 292 | out.nl() | 292 | out.nl() |
