Skip to content

Commit f2848ee

Browse files
committed
Replace raw_input() with input()
Is anyone still using Python 2.x?
1 parent 04d66ce commit f2848ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/qwiic_button_ex5_popQueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def run_example():
5757
while True:
5858

5959
print("\nType 'p' to pop a value from the pressed queue.")
60-
val = raw_input("Type 'c' to pop a value from the clicked queue: ")
60+
val = input("Type 'c' to pop a value from the clicked queue: ")
6161
# If the character is c or C, then pop a value off of the clicked queue
6262
if val == "c" or val == "C":
6363
print("\nPopped Clicked Queue! The first value of clicked queue was: ")

examples/qwiic_button_ex6_changeI2CAddress.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def run_example():
5959
print("\nDon't use the 0x prefix. For instance, if you wanted to")
6060
print("\nchange the address to 0x5B, you would type 5B and hit enter.")
6161

62-
new_address = raw_input("\nNew Address: ")
62+
new_address = input("\nNew Address: ")
6363
new_address = int(new_address, 16)
6464

6565
# Check if the user entered a valid address

0 commit comments

Comments
 (0)