File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,7 @@ def query(apidoc, url):
658
658
659
659
while True :
660
660
print ("press exit to quit" )
661
- query = input (">>>" )
661
+ query = input (">>>" ). strip ()
662
662
if query == "exit" :
663
663
break
664
664
elif query == "help" :
@@ -672,7 +672,7 @@ def main():
672
672
Take URL as an input and make graph using initilize function.
673
673
:return: call query function for more query.
674
674
"""
675
- url = input ("url>>>" )
675
+ url = input ("url>>>" ). strip ()
676
676
if url == "exit" :
677
677
print ("exit..." )
678
678
return 0
@@ -681,7 +681,7 @@ def main():
681
681
while True :
682
682
if isinstance (apidoc , RequestError ):
683
683
print ("enter right url" )
684
- url = input ("url>>>" )
684
+ url = input ("url>>>" ). strip ()
685
685
if url == "exit" :
686
686
print ("exit..." )
687
687
return 0
You can’t perform that action at this time.
0 commit comments