Function eval() in line 71 should be removed (#433)

Function eval() calculate already the result before sending inputs to the switch (the calculation should be done by the switch) So, it should be removed.
This commit is contained in:
changgang 2021-10-15 03:12:13 +01:00 committed by GitHub
parent ad024371a8
commit 394f42f8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ def main():
iface = 'eth0'
while True:
s = str(eval(input('> ')))
s = input('> ')
if s == "quit":
break
print(s)