aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2016-12-29 01:13:51 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2016-12-29 01:13:51 -0500
commitdad01a9243e6d217da18976b93dbb4f84cf93b44 (patch)
tree6359a08ff6e629b2a8563326950f5fe6305e26bb /client/gentoostats/search.py
parentclient/gentoostats/environment.py: fix getLastSync() (diff)
downloadgentoostats-dad01a9243e6d217da18976b93dbb4f84cf93b44.tar.gz
gentoostats-dad01a9243e6d217da18976b93dbb4f84cf93b44.tar.bz2
gentoostats-dad01a9243e6d217da18976b93dbb4f84cf93b44.zip
client: add support python3 compatibility
Diffstat (limited to 'client/gentoostats/search.py')
-rw-r--r--client/gentoostats/search.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/gentoostats/search.py b/client/gentoostats/search.py
index c77c119..89b4d20 100644
--- a/client/gentoostats/search.py
+++ b/client/gentoostats/search.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import pprint as pp
from gentoostats import utils
@@ -6,7 +7,7 @@ def pprint(title, object):
"""
Pretty printer for the decoded json data
"""
- print title
+ print(title)
pp.pprint(object)
def add_parser(subparsers):
@@ -20,7 +21,7 @@ def add_parser(subparsers):
search_parser.add_argument('-r', '--repo')
search_parser.add_argument('--min_hosts', type=int)
search_parser.add_argument('--max_hosts', type=int)
- search_parser.set_defaults(func=search)
+ search_parser.set_defaults(command=search)
def search(args):
"""