Merge lp:~gz/brz/lint_E241_E251 into lp:brz

Proposed by Martin Packman
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~gz/brz/lint_E241_E251
Merge into: lp:brz
Diff against target: 131 lines (+29/-38)
3 files modified
setup.cfg (+0/-2)
setup.py (+25/-24)
tools/win32/bootstrap.py (+4/-12)
To merge this branch: bzr merge lp:~gz/brz/lint_E241_E251
Reviewer Review Type Date Requested Status
Jelmer Vernooij Approve
Review via email: mp+358966@code.launchpad.net

Commit message

Fix whitespace lint E241 and E251

Description of the change

Fix whitespace lint E241 and E251

Includes editing the third-party bootstrap script which should maybe
just go, but can deal with that later.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.cfg'
2--- setup.cfg 2018-11-18 12:41:12 +0000
3+++ setup.cfg 2018-11-18 19:11:39 +0000
4@@ -6,8 +6,6 @@
5 D
6 I
7 E123
8- E241
9- E251
10 E261
11 E265
12 E266
13
14=== modified file 'setup.py'
15--- setup.py 2018-11-17 16:53:10 +0000
16+++ setup.py 2018-11-18 19:11:39 +0000
17@@ -32,13 +32,13 @@
18 # META INFORMATION FOR SETUP
19 # see http://docs.python.org/dist/meta-data.html
20 META_INFO = {
21- 'name': 'breezy',
22- 'version': breezy.__version__,
23- 'maintainer': 'Breezy Developers',
24- 'maintainer_email': 'team@breezy-vcs.org',
25- 'url': 'https://www.breezy-vcs.org/',
26- 'description': 'Friendly distributed version control system',
27- 'license': 'GNU GPL v2',
28+ 'name': 'breezy',
29+ 'version': breezy.__version__,
30+ 'maintainer': 'Breezy Developers',
31+ 'maintainer_email': 'team@breezy-vcs.org',
32+ 'url': 'https://www.breezy-vcs.org/',
33+ 'description': 'Friendly distributed version control system',
34+ 'license': 'GNU GPL v2',
35 'download_url': 'https://launchpad.net/brz/+download',
36 'long_description': get_long_description(),
37 'classifiers': [
38@@ -382,9 +382,9 @@
39 # tbzrcache executables - a "console" version for debugging and a
40 # GUI version that is generally used.
41 tbzrcache = dict(
42- script = os.path.join(tbzr_root, "scripts", "tbzrcache.py"),
43- icon_resources = icon_resources,
44- other_resources = other_resources,
45+ script=os.path.join(tbzr_root, "scripts", "tbzrcache.py"),
46+ icon_resources=icon_resources,
47+ other_resources=other_resources,
48 )
49 console_targets.append(tbzrcache)
50
51@@ -395,9 +395,9 @@
52
53 # ditto for the tbzrcommand tool
54 tbzrcommand = dict(
55- script = os.path.join(tbzr_root, "scripts", "tbzrcommand.py"),
56- icon_resources = icon_resources,
57- other_resources = other_resources,
58+ script=os.path.join(tbzr_root, "scripts", "tbzrcommand.py"),
59+ icon_resources=icon_resources,
60+ other_resources=other_resources,
61 )
62 console_targets.append(tbzrcommand)
63 tbzrcommandw = tbzrcommand.copy()
64@@ -561,17 +561,18 @@
65 self.outfiles.extend([f + 'o' for f in compile_names])
66 # end of class install_data_with_bytecompile
67
68- target = py2exe.build_exe.Target(script = "brz",
69- dest_base = "brz",
70- icon_resources = [(0, 'brz.ico')],
71- name = META_INFO['name'],
72- version = version_str,
73- description = META_INFO['description'],
74- author = META_INFO['author'],
75- copyright = "(c) Canonical Ltd, 2005-2010",
76- company_name = "Canonical Ltd.",
77- comments = META_INFO['description'],
78- )
79+ target = py2exe.build_exe.Target(
80+ script="brz",
81+ dest_base="brz",
82+ icon_resources=[(0, 'brz.ico')],
83+ name=META_INFO['name'],
84+ version=version_str,
85+ description=META_INFO['description'],
86+ author=META_INFO['author'],
87+ copyright="(c) Canonical Ltd, 2005-2010",
88+ company_name="Canonical Ltd.",
89+ comments=META_INFO['description'],
90+ )
91 gui_target = copy.copy(target)
92 gui_target.dest_base = "bzrw"
93
94
95=== modified file 'tools/win32/bootstrap.py'
96--- tools/win32/bootstrap.py 2018-11-16 13:00:09 +0000
97+++ tools/win32/bootstrap.py 2018-11-18 19:11:39 +0000
98@@ -48,16 +48,13 @@
99
100 cmd = 'from setuptools.command.easy_install import main; main()'
101 ws = pkg_resources.working_set
102+env = dict(
103+ os.environ,
104+ PYTHONPATH=ws.find(pkg_resources.Requirement.parse('setuptools')).location)
105
106 if is_jython:
107 import subprocess
108
109- env = dict(
110- os.environ,
111- PYTHONPATH=ws.find(
112- pkg_resources.Requirement.parse('setuptools')).location
113- )
114-
115 assert subprocess.Popen(
116 [sys.executable] +
117 ['-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout'],
118@@ -66,12 +63,7 @@
119 else:
120 assert os.spawnle(
121 os.P_WAIT, sys.executable, quote(sys.executable),
122- '-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout',
123- dict(
124- os.environ,
125- PYTHONPATH=
126- ws.find(pkg_resources.Requirement.parse('setuptools')).location
127- ),
128+ '-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout', env,
129 ) == 0
130
131 ws.add_entry(tmpeggs)

Subscribers

People subscribed via source and target branches