Преглед на файлове

Fix an issue porting to Python 3.

Joe Clarke преди 4 години
родител
ревизия
60992157a8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      automation/services/clean_reservation.py

+ 1 - 1
automation/services/clean_reservation.py

@@ -43,7 +43,7 @@ HEADERS = {"authorization": CLEUCreds.JCLARKE_BASIC, "accept": "application/json
 
 if __name__ == "__main__":
     url = DHCP_BASE
-    ans = eval(input("Are you sure you want to clean reservations (y/N): "))
+    ans = input("Are you sure you want to clean reservations (y/N): ")
     if not re.search(r"^[yY]", ans):
         print("Exiting...")
         sys.exit(0)