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
=== modified file 'debian/changelog'
--- debian/changelog 2014-02-28 22:12:29 +0000
+++ debian/changelog 2014-02-28 22:51:15 +0000
@@ -5,6 +5,8 @@
55
6 [ Dimitri John Ledkov ]6 [ Dimitri John Ledkov ]
7 * Auto-allocate Xserver to run tests under xvfb-run.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.
810
9 -- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 28 Feb 2014 22:10:48 +000011 -- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 28 Feb 2014 22:10:48 +0000
1012
1113
=== modified file 'gdebi'
--- gdebi 2013-03-22 19:48:43 +0000
+++ gdebi 2014-02-28 22:51:15 +0000
@@ -29,7 +29,6 @@
29 unicode = lambda *args: args[0]29 unicode = lambda *args: args[0]
3030
31import sys31import sys
32import apt
33import os.path32import os.path
34import gettext33import gettext
35from gettext import gettext as _34from gettext import gettext as _
3635
=== modified file 'gdebi-gtk'
--- gdebi-gtk 2013-03-22 19:58:44 +0000
+++ gdebi-gtk 2014-02-28 22:51:15 +0000
@@ -29,9 +29,6 @@
29 unicode = lambda *args: args[0]29 unicode = lambda *args: args[0]
3030
31import sys31import sys
32import apt
33import os.path
34
3532
36from optparse import OptionParser33from optparse import OptionParser
37from GDebi.GDebiGtk import GDebiGtk34from GDebi.GDebiGtk import GDebiGtk
3835
=== modified file 'gdebi-kde'
--- gdebi-kde 2013-03-22 19:58:44 +0000
+++ gdebi-kde 2014-02-28 22:51:15 +0000
@@ -23,23 +23,8 @@
23# along with this program. If not, see <http://www.gnu.org/licenses/>.23# along with this program. If not, see <http://www.gnu.org/licenses/>.
2424
25import sys25import sys
26import os26from PyKDE4.kdecore import KCmdLineArgs, KAboutData, KCmdLineOptions
27import subprocess27from PyKDE4.kdeui import KApplication, KMessageBox, ki18n
28import string
29import apt
30import apt_pkg
31import os.path
32from PyKDE4.kdecore import *
33from PyKDE4.kdeui import *
34
35import urllib
36import fcntl
37import posix
38import time
39import thread
40import re
41import pty
42import select
4328
44from optparse import OptionParser29from optparse import OptionParser
45from GDebi.GDebiKDE import GDebiKDE30from GDebi.GDebiKDE import GDebiKDE
4631
=== modified file 'tests/test_pyflakes.py'
--- tests/test_pyflakes.py 2012-10-12 16:02:29 +0000
+++ tests/test_pyflakes.py 2014-02-28 22:51:15 +0000
@@ -7,8 +7,14 @@
7 """ ensure that the tree is pyflakes clean """7 """ ensure that the tree is pyflakes clean """
88
9 def test_pyflakes_clean(self):9 def test_pyflakes_clean(self):
10 path = os.path.join(os.path.dirname(__file__), "..")10 paths = [
11 self.assertEqual(subprocess.call(["pyflakes", path]), 0)11 os.path.join(os.path.dirname(__file__), ".."),
12 os.path.join(os.path.dirname(__file__), "..", "gdebi"),
13 os.path.join(os.path.dirname(__file__), "..", "gdebi-gtk"),
14 os.path.join(os.path.dirname(__file__), "..", "gdebi-kde"),
15 ]
16 self.assertEqual(subprocess.call(["pyflakes",] + paths), 0)
17 self.assertEqual(subprocess.call(["pyflakes3",] + paths), 0)
1218
1319
14if __name__ == "__main__":20if __name__ == "__main__":

Subscribers

People subscribed via source and target branches

to status/vote changes: