diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 16a955d2b1..9b695ac2ed 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -23,14 +23,14 @@ import gtk | |||
23 | import gobject | 23 | import gobject |
24 | import logging | 24 | import logging |
25 | import time | 25 | import time |
26 | import urllib | 26 | import urllib.request, urllib.parse, urllib.error |
27 | import urllib2 | 27 | import urllib.request, urllib.error, urllib.parse |
28 | import pango | 28 | import pango |
29 | from bb.ui.crumbs.hobcolor import HobColors | 29 | from bb.ui.crumbs.hobcolor import HobColors |
30 | from bb.ui.crumbs.hobwidget import HobWarpCellRendererText, HobCellRendererPixbuf | 30 | from bb.ui.crumbs.hobwidget import HobWarpCellRendererText, HobCellRendererPixbuf |
31 | 31 | ||
32 | class RunningBuildModel (gtk.TreeStore): | 32 | class RunningBuildModel (gtk.TreeStore): |
33 | (COL_LOG, COL_PACKAGE, COL_TASK, COL_MESSAGE, COL_ICON, COL_COLOR, COL_NUM_ACTIVE) = range(7) | 33 | (COL_LOG, COL_PACKAGE, COL_TASK, COL_MESSAGE, COL_ICON, COL_COLOR, COL_NUM_ACTIVE) = list(range(7)) |
34 | 34 | ||
35 | def __init__ (self): | 35 | def __init__ (self): |
36 | gtk.TreeStore.__init__ (self, | 36 | gtk.TreeStore.__init__ (self, |
@@ -443,8 +443,8 @@ def do_pastebin(text): | |||
443 | url = 'http://pastebin.com/api_public.php' | 443 | url = 'http://pastebin.com/api_public.php' |
444 | params = {'paste_code': text, 'paste_format': 'text'} | 444 | params = {'paste_code': text, 'paste_format': 'text'} |
445 | 445 | ||
446 | req = urllib2.Request(url, urllib.urlencode(params)) | 446 | req = urllib.request.Request(url, urllib.parse.urlencode(params)) |
447 | response = urllib2.urlopen(req) | 447 | response = urllib.request.urlopen(req) |
448 | paste_url = response.read() | 448 | paste_url = response.read() |
449 | 449 | ||
450 | return paste_url | 450 | return paste_url |
@@ -519,7 +519,7 @@ class RunningBuildTreeView (gtk.TreeView): | |||
519 | 519 | ||
520 | # @todo Provide visual feedback to the user that it is done and that | 520 | # @todo Provide visual feedback to the user that it is done and that |
521 | # it worked. | 521 | # it worked. |
522 | print paste_url | 522 | print(paste_url) |
523 | 523 | ||
524 | self._add_to_clipboard(paste_url) | 524 | self._add_to_clipboard(paste_url) |
525 | 525 | ||