src/eric7/PipInterface/Pip.py

branch
eric7
changeset 9260
eb19dcb8d852
parent 9221
bf71ee032bb4
child 9264
18a7312cfdb3
child 9278
36448ca469c2
equal deleted inserted replaced
9259:66167d4d0407 9260:eb19dcb8d852
638 if proc.waitForStarted(15000) and proc.waitForFinished(30000): 638 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
639 output = str( 639 output = str(
640 proc.readAllStandardOutput(), 640 proc.readAllStandardOutput(),
641 Preferences.getSystem("IOEncoding"), 641 Preferences.getSystem("IOEncoding"),
642 "replace", 642 "replace",
643 ).strip() 643 ).strip().splitlines()[0]
644 try: 644 try:
645 jsonList = json.loads(output) 645 jsonList = json.loads(output)
646 except Exception: 646 except Exception:
647 jsonList = [] 647 jsonList = []
648 648
705 if proc.waitForStarted(15000) and proc.waitForFinished(30000): 705 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
706 output = str( 706 output = str(
707 proc.readAllStandardOutput(), 707 proc.readAllStandardOutput(),
708 Preferences.getSystem("IOEncoding"), 708 Preferences.getSystem("IOEncoding"),
709 "replace", 709 "replace",
710 ).strip() 710 ).strip().splitlines()[0]
711 try: 711 try:
712 jsonList = json.loads(output) 712 jsonList = json.loads(output)
713 except Exception: 713 except Exception:
714 jsonList = [] 714 jsonList = []
715 715

eric ide

mercurial