summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastermain/management/commands')
-rw-r--r--bitbake/lib/toaster/toastermain/management/commands/builddelete.py2
-rw-r--r--bitbake/lib/toaster/toastermain/management/commands/buildslist.py2
-rw-r--r--bitbake/lib/toaster/toastermain/management/commands/get-dburl.py2
-rw-r--r--bitbake/lib/toaster/toastermain/management/commands/perf.py6
4 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastermain/management/commands/builddelete.py b/bitbake/lib/toaster/toastermain/management/commands/builddelete.py
index ff93e549df..0bef8d4103 100644
--- a/bitbake/lib/toaster/toastermain/management/commands/builddelete.py
+++ b/bitbake/lib/toaster/toastermain/management/commands/builddelete.py
@@ -15,7 +15,7 @@ class Command(BaseCommand):
15 try: 15 try:
16 b = Build.objects.get(pk = bid) 16 b = Build.objects.get(pk = bid)
17 except ObjectDoesNotExist: 17 except ObjectDoesNotExist:
18 print 'build %s does not exist, skipping...' %(bid) 18 print('build %s does not exist, skipping...' %(bid))
19 continue 19 continue
20 # theoretically, just b.delete() would suffice 20 # theoretically, just b.delete() would suffice
21 # however SQLite runs into problems when you try to 21 # however SQLite runs into problems when you try to
diff --git a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
index cad987fd93..8dfef0aa00 100644
--- a/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
+++ b/bitbake/lib/toaster/toastermain/management/commands/buildslist.py
@@ -10,4 +10,4 @@ class Command(NoArgsCommand):
10 10
11 def handle_noargs(self,**options): 11 def handle_noargs(self,**options):
12 for b in Build.objects.all(): 12 for b in Build.objects.all():
13 print "%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()])) 13 print("%d: %s %s %s" % (b.pk, b.machine, b.distro, ",".join([x.target for x in b.target_set.all()])))
diff --git a/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py b/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py
index 22b3eb79ed..911296f714 100644
--- a/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py
+++ b/bitbake/lib/toaster/toastermain/management/commands/get-dburl.py
@@ -6,4 +6,4 @@ class Command(NoArgsCommand):
6 help = "get database url" 6 help = "get database url"
7 7
8 def handle_noargs(self,**options): 8 def handle_noargs(self,**options):
9 print getDATABASE_URL() 9 print(getDATABASE_URL())
diff --git a/bitbake/lib/toaster/toastermain/management/commands/perf.py b/bitbake/lib/toaster/toastermain/management/commands/perf.py
index 71a48e95d8..6b450bbdfc 100644
--- a/bitbake/lib/toaster/toastermain/management/commands/perf.py
+++ b/bitbake/lib/toaster/toastermain/management/commands/perf.py
@@ -25,7 +25,7 @@ class Command(BaseCommand):
25 info = self.url_info(full_url) 25 info = self.url_info(full_url)
26 status_code = info[0] 26 status_code = info[0]
27 load_time = info[1] 27 load_time = info[1]
28 print 'Trying \'' + full_url + '\', ' + str(status_code) + ', ' + str(load_time) 28 print('Trying \'' + full_url + '\', ' + str(status_code) + ', ' + str(load_time))
29 29
30 def get_full_url(self, url_patt, url_root_res): 30 def get_full_url(self, url_patt, url_root_res):
31 full_url = str(url_patt).split('^')[1].replace('$>', '').replace('(?P<file_path>(?:/[', '/bin/busybox').replace('.*', '') 31 full_url = str(url_patt).split('^')[1].replace('$>', '').replace('(?P<file_path>(?:/[', '/bin/busybox').replace('.*', '')
@@ -54,5 +54,5 @@ class Command(BaseCommand):
54 54
55 def error(self, *args): 55 def error(self, *args):
56 for arg in args: 56 for arg in args:
57 print >>sys.stderr, arg, 57 print(arg, end=' ', file=sys.stderr)
58 print >>sys.stderr 58 print(file=sys.stderr)