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:
1 parent
ad024371a8
commit
394f42f8ff
1 file changed
+1
-1
@@ -68,7 +68,7 @@ def main():
|
|||||||
iface = 'eth0'
|
iface = 'eth0'
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
s = str(eval(input('> ')))
|
s = input('> ')
|
||||||
if s == "quit":
|
if s == "quit":
|
||||||
break
|
break
|
||||||
print(s)
|
print(s)
|
||||||
|
|||||||
Reference in new issue
Block a user