Skip to content

Commit ed2a017

Browse files
authored
Update testhardware/main.py to python3 syntax (#772)
1 parent 2eae90d commit ed2a017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/android/testhardware/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from time import sleep
22
from jnius import autoclass
33

4-
print '-- test hardware start!'
4+
print('-- test hardware start!')
55

66
Hardware = autoclass('org.renpy.android.Hardware')
7-
print 'DPI is', Hardware.getDPI()
7+
print('DPI is', Hardware.getDPI())
88

99
Hardware.accelerometerEnable(True)
1010
for x in xrange(20):
1111
print Hardware.accelerometerReading()
1212
sleep(.1)
1313

14-
print '-- test hardware done!'
14+
print('-- test hardware done!')

0 commit comments

Comments
 (0)