Skip to content

Commit c9d75f7

Browse files
authored
Merge pull request #6 from ilstar/ilstar-patch-1
Add Python 3 support
2 parents dcc37fd + 96cdaec commit c9d75f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

feedback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Feedback():
99
fb = Feedback()
1010
fb.add_item('Hello', 'World')
1111
fb.add_item('Foo', 'Bar')
12-
print fb
12+
print(fb)
1313
1414
"""
1515

@@ -22,7 +22,7 @@ def __repr__(self):
2222
Returns:
2323
XML string
2424
"""
25-
return et.tostring(self.feedback)
25+
return et.tostring(self.feedback).decode('utf-8')
2626

2727
def add_item(self, title, subtitle="", arg="", valid="yes", autocomplete="", icon="icon.png"):
2828
"""

http_status_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
elif lower_desc.find(query) != -1:
2727
fb.add_item(code, desc, arg=baseurl + code)
2828

29-
print fb
29+
print(fb)

0 commit comments

Comments
 (0)