Umwandeln von selenium.py nach Python 3 um 2to3
-
14-11-2019 - |
Frage
Ich versuche, selenium.py in Python 2. umzuwandeln
Wie Sie unten sehen, kopierte ich selenium.py to c: \ python32 \ tools \ skripts> und nach der Ausführung generasacodicetagpre.
Ich sehe, dass die Datei gleich ist.Was habe ich falsch gemacht?Oder von wo ich diese Datei herunterladen kann? generasacodicetagpre.
Lösung
This is covered in the official documentation for the 2to3 utility: http://docs.python.org/library/2to3.html
By default, it just prints the diff for review (and possibly saving as a patch).
You must provide the -w
option to actually overwrite the original file.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow