summaryrefslogtreecommitdiffstats
path: root/test/test-cbs
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2014-03-11 17:39:22 +0100
committerDenis Kenzior <denkenz@gmail.com>2014-03-11 19:34:08 -0500
commitc027ab9fbc1a8e8c9e76bcd123df1ad7696307c2 (patch)
treee2e4296e475794f65139671027d160b4526c6d20 /test/test-cbs
parentad4f90684fac01be21789df40882fb9869c3cd41 (diff)
downloadofono-c027ab9fbc1a8e8c9e76bcd123df1ad7696307c2.tar.bz2
test: Convert to Python 3
Change raw_input() to input() and unicode to str. This is *not* compatible with Python 2. Update the hashbangs to run with Python 3.
Diffstat (limited to 'test/test-cbs')
-rwxr-xr-xtest/test-cbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-cbs b/test/test-cbs
index 13cdd80a..a5cec065 100755
--- a/test/test-cbs
+++ b/test/test-cbs
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
import dbus
import dbus.mainloop.glib
@@ -78,7 +78,7 @@ def set_topics(cbs):
invalidData = False;
index = 0
- topics = raw_input('Enter the topic ID(s) you want to register to: ')
+ topics = input('Enter the topic ID(s) you want to register to: ')
while index < len(topics):
if topics[index] == ',' or topics[index] == '-':