Merge lp:~xnox/gdebi/pyflakes into lp:gdebi

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: 462
Proposed branch: lp:~xnox/gdebi/pyflakes
Merge into: lp:gdebi
Diff against target: 89 lines (+12/-23)
5 files modified
debian/changelog (+2/-0)
gdebi (+0/-1)
gdebi-gtk (+0/-3)
gdebi-kde (+2/-17)
tests/test_pyflakes.py (+8/-2)
To merge this branch: bzr merge lp:~xnox/gdebi/pyflakes
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Review via email: mp+208895@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Looks great, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2014-02-28 22:12:29 +0000
3+++ debian/changelog 2014-02-28 22:51:15 +0000
4@@ -5,6 +5,8 @@
5
6 [ Dimitri John Ledkov ]
7 * Auto-allocate Xserver to run tests under xvfb-run.
8+ * Add top-level executable scripts to pyflakes test.
9+ * Check using both pyflakes and pyflakes3.
10
11 -- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 28 Feb 2014 22:10:48 +0000
12
13
14=== modified file 'gdebi'
15--- gdebi 2013-03-22 19:48:43 +0000
16+++ gdebi 2014-02-28 22:51:15 +0000
17@@ -29,7 +29,6 @@
18 unicode = lambda *args: args[0]
19
20 import sys
21-import apt
22 import os.path
23 import gettext
24 from gettext import gettext as _
25
26=== modified file 'gdebi-gtk'
27--- gdebi-gtk 2013-03-22 19:58:44 +0000
28+++ gdebi-gtk 2014-02-28 22:51:15 +0000
29@@ -29,9 +29,6 @@
30 unicode = lambda *args: args[0]
31
32 import sys
33-import apt
34-import os.path
35-
36
37 from optparse import OptionParser
38 from GDebi.GDebiGtk import GDebiGtk
39
40=== modified file 'gdebi-kde'
41--- gdebi-kde 2013-03-22 19:58:44 +0000
42+++ gdebi-kde 2014-02-28 22:51:15 +0000
43@@ -23,23 +23,8 @@
44 # along with this program. If not, see <http://www.gnu.org/licenses/>.
45
46 import sys
47-import os
48-import subprocess
49-import string
50-import apt
51-import apt_pkg
52-import os.path
53-from PyKDE4.kdecore import *
54-from PyKDE4.kdeui import *
55-
56-import urllib
57-import fcntl
58-import posix
59-import time
60-import thread
61-import re
62-import pty
63-import select
64+from PyKDE4.kdecore import KCmdLineArgs, KAboutData, KCmdLineOptions
65+from PyKDE4.kdeui import KApplication, KMessageBox, ki18n
66
67 from optparse import OptionParser
68 from GDebi.GDebiKDE import GDebiKDE
69
70=== modified file 'tests/test_pyflakes.py'
71--- tests/test_pyflakes.py 2012-10-12 16:02:29 +0000
72+++ tests/test_pyflakes.py 2014-02-28 22:51:15 +0000
73@@ -7,8 +7,14 @@
74 """ ensure that the tree is pyflakes clean """
75
76 def test_pyflakes_clean(self):
77- path = os.path.join(os.path.dirname(__file__), "..")
78- self.assertEqual(subprocess.call(["pyflakes", path]), 0)
79+ paths = [
80+ os.path.join(os.path.dirname(__file__), ".."),
81+ os.path.join(os.path.dirname(__file__), "..", "gdebi"),
82+ os.path.join(os.path.dirname(__file__), "..", "gdebi-gtk"),
83+ os.path.join(os.path.dirname(__file__), "..", "gdebi-kde"),
84+ ]
85+ self.assertEqual(subprocess.call(["pyflakes",] + paths), 0)
86+ self.assertEqual(subprocess.call(["pyflakes3",] + paths), 0)
87
88
89 if __name__ == "__main__":

Subscribers

People subscribed via source and target branches

to status/vote changes: