Merge lp:autopilot into lp:autopilot/1.5

Proposed by Christopher Lee
Status: Merged
Approved by: Christopher Lee
Approved revision: 570
Merged at revision: 520
Proposed branch: lp:autopilot
Merge into: lp:autopilot/1.5
Diff against target: 79 lines (+10/-8)
5 files modified
autopilot/input/__init__.py (+1/-1)
autopilot/run.py (+1/-1)
autopilot/tests/functional/test_input_stack.py (+6/-3)
debian/rules (+1/-1)
setup.py (+1/-2)
To merge this branch: bzr merge lp:autopilot
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Canonical Platform QA Team Pending
Review via email: mp+269832@code.launchpad.net

This proposal supersedes a proposal from 2015-09-01.

Commit message

Flake8 fix for FTBFS due to new flake8.

Description of the change

Flake8 fix for FTBFS due to new flake8.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autopilot/input/__init__.py'
2--- autopilot/input/__init__.py 2015-03-22 06:21:47 +0000
3+++ autopilot/input/__init__.py 2015-09-02 03:31:08 +0000
4@@ -129,7 +129,7 @@
5 return _pick_backend(backends, preferred_backend)
6
7 @contextmanager
8- def focused_type(self, input_target, pointer=None):
9+ def focused_type(self, input_target, pointer=None):
10 """Type into an input widget.
11
12 This context manager takes care of making sure a particular
13
14=== modified file 'autopilot/run.py'
15--- autopilot/run.py 2015-05-05 03:09:21 +0000
16+++ autopilot/run.py 2015-09-02 03:31:08 +0000
17@@ -214,7 +214,7 @@
18
19 class _OneOrMoreArgumentStoreAction(Action):
20
21- def __call__(self, parser, namespace, values, option_string=None):
22+ def __call__(self, parser, namespace, values, option_string=None):
23 if len(values) == 0:
24 parser.error(
25 "Must specify at least one argument to the 'launch' command")
26
27=== modified file 'autopilot/tests/functional/test_input_stack.py'
28--- autopilot/tests/functional/test_input_stack.py 2015-07-19 23:25:07 +0000
29+++ autopilot/tests/functional/test_input_stack.py 2015-09-02 03:31:08 +0000
30@@ -1,3 +1,4 @@
31+
32 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
33 #
34 # Autopilot Functional Test Tool
35@@ -189,9 +190,11 @@
36 from autopilot.input import _uinput
37 return _uinput.Keyboard._device._pressed_keys_ecodes
38 else:
39- self.fail("Don't know how to get pressed keys list for backend "
40- + self.backend
41- )
42+ self.fail(
43+ "Don't know how to get pressed keys list for {}".format(
44+ self.backend
45+ )
46+ )
47
48
49 @skipIf(platform.model() != "Desktop", "Only suitable on Desktop (WinMocker)")
50
51=== modified file 'debian/rules'
52--- debian/rules 2015-05-22 16:53:58 +0000
53+++ debian/rules 2015-09-02 03:31:08 +0000
54@@ -12,7 +12,7 @@
55 -dh_sphinxdoc
56
57 override_dh_auto_build:
58- python3 -m flake8.run .
59+ python3 -m flake8.run --ignore=E731,E226,W503 .
60 dh_auto_build
61 python3 setup.py build_sphinx -b html
62 python3 setup.py build_sphinx -b json
63
64=== modified file 'setup.py'
65--- setup.py 2014-05-15 05:59:11 +0000
66+++ setup.py 2015-09-02 03:31:08 +0000
67@@ -17,12 +17,11 @@
68 # You should have received a copy of the GNU General Public License
69 # along with this program. If not, see <http://www.gnu.org/licenses/>.
70 #
71+from setuptools import find_packages, setup, Extension
72
73 import sys
74 assert sys.version_info >= (3,), 'Python 3 is required'
75
76-from setuptools import find_packages, setup, Extension
77-
78
79 VERSION = '1.5.0'
80

Subscribers

People subscribed via source and target branches