Change raw_input to input in generated python code
This commit is contained in:
parent
be984135ac
commit
1699dba1cf
@ -252,7 +252,7 @@ void PythonFileFormat::writeStandardImports(QTextStream &out)
|
|||||||
<< " revision " << revision << "\n"
|
<< " revision " << revision << "\n"
|
||||||
<< "# The script should work out of the box mostly,\n"
|
<< "# The script should work out of the box mostly,\n"
|
||||||
<< "# but occassionally might need minor tweaking\n"
|
<< "# but occassionally might need minor tweaking\n"
|
||||||
<< "# Please report any bugs at http://ostinato.org\n";
|
<< "# Please report any bugs at https://ostinato.org\n";
|
||||||
out << "\n";
|
out << "\n";
|
||||||
out << "# standard modules\n";
|
out << "# standard modules\n";
|
||||||
out << "import logging\n";
|
out << "import logging\n";
|
||||||
@ -275,9 +275,9 @@ void PythonFileFormat::writePrologue(QTextStream &out)
|
|||||||
out << "\n";
|
out << "\n";
|
||||||
out << "# get inputs, if required\n";
|
out << "# get inputs, if required\n";
|
||||||
out << "while len(host_name) == 0:\n";
|
out << "while len(host_name) == 0:\n";
|
||||||
out << " host_name = raw_input('Drone\\'s Hostname/IP: ')\n";
|
out << " host_name = input('Drone\\'s Hostname/IP: ')\n";
|
||||||
out << "while tx_port_number < 0:\n";
|
out << "while tx_port_number < 0:\n";
|
||||||
out << " tx_port_number = int(raw_input('Tx Port Number: '))\n";
|
out << " tx_port_number = int(input('Tx Port Number: '))\n";
|
||||||
out << "\n";
|
out << "\n";
|
||||||
out << "drone = DroneProxy(host_name)\n";
|
out << "drone = DroneProxy(host_name)\n";
|
||||||
out << "\n";
|
out << "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user