Skip to content

Commit d3a24a3

Browse files
committed
Use python3-compatible print function call
print() should always use parentheses in python3
1 parent d50a26f commit d3a24a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ev3dev/ev3dev.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, class_name, port='auto', name='*' ):
4949
for file in os.listdir( self._classpath ):
5050
if 'auto' == port:
5151
if fnmatch.fnmatch(file, name):
52-
print 'Got a name match ' + file + ' <-> ' + name
52+
print('Got a name match ' + file + ' <-> ' + name)
5353
self._path = os.path.abspath( self._classpath + '/' + file )
5454
break
5555
else:
@@ -59,14 +59,14 @@ def __init__(self, class_name, port='auto', name='*' ):
5959
f.close()
6060

6161
if fnmatch.fnmatch(port_name, port):
62-
print 'Got a port match ' + port_name + ' <-> ' + port
62+
print('Got a port match ' + port_name + ' <-> ' + port)
6363
self._path = os.path.abspath( self._classpath + '/' + file )
6464
break
6565

6666
def __exit__(self, exc_type, exc_value, traceback):
67-
print "Well, this is embarassing...."
67+
print("Well, this is embarassing....")
6868
for f in self.filehandle_cache:
69-
print f
69+
print(f)
7070
f.close()
7171

7272
def __attribute_file( self, attribute, sys_attribute, mode, reopen=False ):

0 commit comments

Comments
 (0)