Merge lp:~laney/ubuntu-sso-client/pep8-fixes into lp:ubuntu-sso-client

Proposed by Iain Lane
Status: Merged
Approved by: dobey
Approved revision: 1036
Merged at revision: 1037
Proposed branch: lp:~laney/ubuntu-sso-client/pep8-fixes
Merge into: lp:ubuntu-sso-client
Diff against target: 142 lines (+13/-13)
8 files modified
setup.py (+1/-1)
ubuntu_sso/networkstate/windows.py (+1/-1)
ubuntu_sso/qt/email_verification_page.py (+1/-1)
ubuntu_sso/qt/forgotten_password_page.py (+2/-2)
ubuntu_sso/qt/tests/test_proxy_dialog.py (+4/-4)
ubuntu_sso/utils/runner/__init__.py (+1/-1)
ubuntu_sso/utils/webclient/__init__.py (+2/-2)
ubuntu_sso/utils/webclient/tests/test_webclient.py (+1/-1)
To merge this branch: bzr merge lp:~laney/ubuntu-sso-client/pep8-fixes
Reviewer Review Type Date Requested Status
dobey (community) Approve
Review via email: mp+224665@code.launchpad.net

Commit message

Fix errors introduced by new pep8

Description of the change

The new pep8 in Utopic makes ubuntu-sso-client fail its autopkgtests. Fix the new errors. :(

I'm going to upload this because the failure is (going to) blocking stuff from migrating. Feel free to overwrite it though.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2013-09-19 20:40:41 +0000
3+++ setup.py 2014-06-26 15:45:17 +0000
4@@ -194,7 +194,7 @@
5 replace_version()
6 basepath = os.path.join('data', 'qt')
7 # TODO: build the resource files so that we can include them
8- #self.build_rc(os.path.join(basepath, 'icons_rc.py'),
9+ # self.build_rc(os.path.join(basepath, 'icons_rc.py'),
10 # os.path.join(os.path.dirname(__file__), 'icons'),
11 # '/icons')
12 for dirpath, _, filenames in os.walk(basepath):
13
14=== modified file 'ubuntu_sso/networkstate/windows.py'
15--- ubuntu_sso/networkstate/windows.py 2012-10-30 22:05:34 +0000
16+++ ubuntu_sso/networkstate/windows.py 2014-06-26 15:45:17 +0000
17@@ -54,7 +54,7 @@
18 # it clear for later developers.
19 # pylint: disable=C0103
20
21-## from EventSys.h
22+# from EventSys.h
23 PROGID_EventSystem = "EventSystem.EventSystem"
24 PROGID_EventSubscription = "EventSystem.EventSubscription"
25
26
27=== modified file 'ubuntu_sso/qt/email_verification_page.py'
28--- ubuntu_sso/qt/email_verification_page.py 2012-12-04 19:28:44 +0000
29+++ ubuntu_sso/qt/email_verification_page.py 2014-06-26 15:45:17 +0000
30@@ -158,4 +158,4 @@
31 self.next_button.setEnabled(False)
32 self.wizard().setButtonLayout([QtGui.QWizard.Stretch])
33
34- #pylint: enable=C0103
35+ # pylint: enable=C0103
36
37=== modified file 'ubuntu_sso/qt/forgotten_password_page.py'
38--- ubuntu_sso/qt/forgotten_password_page.py 2012-12-04 19:28:44 +0000
39+++ ubuntu_sso/qt/forgotten_password_page.py 2014-06-26 15:45:17 +0000
40@@ -72,7 +72,7 @@
41 """Return the email address provided by the user."""
42 return compat.text_type(self.ui.email_line_edit.text())
43
44- #pylint: disable=C0103
45+ # pylint: disable=C0103
46
47 def initializePage(self):
48 """Set the initial state of ForgottenPassword page."""
49@@ -81,7 +81,7 @@
50 enabled = not self.ui.email_line_edit.text().isEmpty()
51 self.ui.send_button.setEnabled(enabled)
52
53- #pylint: enable=C0103
54+ # pylint: enable=C0103
55
56 def _register_fields(self):
57 """Register the fields of the wizard page."""
58
59=== modified file 'ubuntu_sso/qt/tests/test_proxy_dialog.py'
60--- ubuntu_sso/qt/tests/test_proxy_dialog.py 2012-04-09 17:38:24 +0000
61+++ ubuntu_sso/qt/tests/test_proxy_dialog.py 2014-06-26 15:45:17 +0000
62@@ -65,14 +65,14 @@
63 def setText(self, text):
64 """Set the text of the widget."""
65 self.internal_text = text
66- if not self.object_name in self.called:
67+ if self.object_name not in self.called:
68 self.called[self.object_name] = [('setText', text)]
69 else:
70 self.called[self.object_name].append(('setText', text))
71
72 def text(self):
73 """Return the text."""
74- if not self.object_name in self.called:
75+ if self.object_name not in self.called:
76 self.called[self.object_name] = [('text',)]
77 else:
78 self.called[self.object_name].append(('text',))
79@@ -80,14 +80,14 @@
80
81 def setPixmap(self, pixmap):
82 """Set a pixmap."""
83- if not self.object_name in self.called:
84+ if self.object_name not in self.called:
85 self.called[self.object_name] = [('setPixmap', pixmap)]
86 else:
87 self.called[self.object_name].append(('setPixmap', pixmap))
88
89 def setVisible(self, visible):
90 """Set the ui element visible."""
91- if not self.object_name in self.called:
92+ if self.object_name not in self.called:
93 self.called[self.object_name] = [('setVisible', visible)]
94 else:
95 self.called[self.object_name].append(('setVisible', visible))
96
97=== modified file 'ubuntu_sso/utils/runner/__init__.py'
98--- ubuntu_sso/utils/runner/__init__.py 2012-08-30 11:08:49 +0000
99+++ ubuntu_sso/utils/runner/__init__.py 2014-06-26 15:45:17 +0000
100@@ -50,7 +50,7 @@
101 """Check if the Qt4 main loop is installed."""
102 result = False
103
104- if not 'PyQt4' in sys.modules:
105+ if 'PyQt4' not in sys.modules:
106 return result
107
108 try:
109
110=== modified file 'ubuntu_sso/utils/webclient/__init__.py'
111--- ubuntu_sso/utils/webclient/__init__.py 2012-10-23 14:17:58 +0000
112+++ ubuntu_sso/utils/webclient/__init__.py 2014-06-26 15:45:17 +0000
113@@ -35,7 +35,7 @@
114 """Check if the qt4reactor is installed."""
115 result = False
116
117- if not 'PyQt4' in sys.modules:
118+ if 'PyQt4' not in sys.modules:
119 return result
120
121 try:
122@@ -59,7 +59,7 @@
123 return qtnetwork
124 else:
125 from ubuntu_sso.utils.webclient import libsoup
126- #from ubuntu_sso.utils.webclient import txweb as web_module
127+ # from ubuntu_sso.utils.webclient import txweb as web_module
128 return libsoup
129
130
131
132=== modified file 'ubuntu_sso/utils/webclient/tests/test_webclient.py'
133--- ubuntu_sso/utils/webclient/tests/test_webclient.py 2013-04-12 20:09:12 +0000
134+++ ubuntu_sso/utils/webclient/tests/test_webclient.py 2014-06-26 15:45:17 +0000
135@@ -1005,7 +1005,7 @@
136 # fake the gsettings to have diff settings for https and http
137 http_settings = self.get_auth_proxy_settings()
138
139- #remember so that we can use them in the creds request
140+ # remember so that we can use them in the creds request
141 proxy_username = http_settings['username']
142 proxy_password = http_settings['password']
143

Subscribers

People subscribed via source and target branches