src/eric7/PipInterface/Pip.py

branch
eric7-maintenance
changeset 9305
3b7ef53c34c7
parent 9264
18a7312cfdb3
parent 9278
36448ca469c2
child 9371
1da8bc75946f
equal deleted inserted replaced
9304:afbd61b99bf4 9305:3b7ef53c34c7
634 args += ["--index-url", indexUrl] 634 args += ["--index-url", indexUrl]
635 635
636 proc = QProcess() 636 proc = QProcess()
637 proc.start(interpreter, args) 637 proc.start(interpreter, args)
638 if proc.waitForStarted(15000) and proc.waitForFinished(30000): 638 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
639 output = str( 639 output = (
640 proc.readAllStandardOutput(), 640 str(
641 Preferences.getSystem("IOEncoding"), 641 proc.readAllStandardOutput(),
642 "replace", 642 Preferences.getSystem("IOEncoding"),
643 ).strip().splitlines()[0] 643 "replace",
644 )
645 .strip()
646 .splitlines()[0]
647 )
644 try: 648 try:
645 jsonList = json.loads(output) 649 jsonList = json.loads(output)
646 except Exception: 650 except Exception:
647 jsonList = [] 651 jsonList = []
648 652
701 args += ["--index-url", indexUrl] 705 args += ["--index-url", indexUrl]
702 706
703 proc = QProcess() 707 proc = QProcess()
704 proc.start(interpreter, args) 708 proc.start(interpreter, args)
705 if proc.waitForStarted(15000) and proc.waitForFinished(30000): 709 if proc.waitForStarted(15000) and proc.waitForFinished(30000):
706 output = str( 710 output = (
707 proc.readAllStandardOutput(), 711 str(
708 Preferences.getSystem("IOEncoding"), 712 proc.readAllStandardOutput(),
709 "replace", 713 Preferences.getSystem("IOEncoding"),
710 ).strip().splitlines()[0] 714 "replace",
715 )
716 .strip()
717 .splitlines()[0]
718 )
711 try: 719 try:
712 jsonList = json.loads(output) 720 jsonList = json.loads(output)
713 except Exception: 721 except Exception:
714 jsonList = [] 722 jsonList = []
715 723

eric ide

mercurial