Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 66a298d

Browse files
authored
modify for python2
The function `input()` from Python3 is actually `raw_input()` in python2. `input()` actually evaluates the input
1 parent 0acd631 commit 66a298d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Robot2018/src/tests/scriptupload/scriptupload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
go = False #true when file has been successfully read
77
file = [] #an array of strings which represent each line of the file
8-
filename = input("File name: ") #the name of the file to read (user input)
8+
filename = raw_input("File name: ") #the name of the file to read (user input)
99

1010
#loops until a file is read into the file array
1111
while not go:

0 commit comments

Comments
 (0)