Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appveyor/mozillaSyms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
To update the list of symbols uploaded to Mozilla, see the DLL_NAMES constant below.
"""

from __future__ import print_function
import argparse
import os
import subprocess
Expand Down Expand Up @@ -43,7 +42,8 @@ def __init__(self, returncode, stderr):
def check_output(command):
proc = subprocess.Popen(command,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stderr=subprocess.PIPE,
text=True)
stdout, stderr = proc.communicate()
if proc.returncode != 0:
raise ProcError(proc.returncode, stderr)
Expand Down
2 changes: 1 addition & 1 deletion appx/sconscript
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def getCertPublisher(env):
return env['publisher']
certPassword=env.get('certPassword','')
cmd=['certutil','-dump','-p',certPassword,File('#'+certFile).abspath.replace('/','\\')]
lines=subprocess.check_output(cmd).splitlines()
lines=subprocess.run(cmd,check=True,capture_output=True,text=True).stdout.splitlines()
linePrefix='Subject: '
for line in lines:
if line.startswith(linePrefix):
Expand Down
4 changes: 2 additions & 2 deletions source/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def restart(disableAddons=False, debugLogging=False):
except ValueError:
pass
shellapi.ShellExecute(None, None,
sys.executable.decode("mbcs"),
subprocess.list2cmdline(sys.argv + options).decode("mbcs"),
sys.executable,
subprocess.list2cmdline(sys.argv + options),
None,
# #4475: ensure that the first window of the new process is not hidden by providing SW_SHOWNORMAL
winUser.SW_SHOWNORMAL)
Expand Down
2 changes: 1 addition & 1 deletion source/gui/installerGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,6 @@ def doCreatePortable(portableDirectory,copyUserConfig=False,silent=False,startAf
if startAfterCreate:
# #4475: ensure that the first window of the new process is not hidden by providing SW_SHOWNORMAL
shellapi.ShellExecute(None, None,
os.path.join(os.path.abspath(unicode(portableDirectory)),'nvda.exe'),
os.path.join(os.path.abspath(portableDirectory),'nvda.exe'),
u"-r",
None, winUser.SW_SHOWNORMAL)
4 changes: 2 additions & 2 deletions source/nvda_slave.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def main():
import shellapi
import winUser
shellapi.ShellExecute(0,None,
ur"%s\nvda.exe"%sys.exec_prefix.decode("mbcs"),
subprocess.list2cmdline(args).decode("mbcs"),
r"%s\nvda.exe"%sys.exec_prefix,
subprocess.list2cmdline(args),
None,winUser.SW_SHOWNORMAL)
elif action=="setNvdaSystemConfig":
import config
Expand Down
2 changes: 1 addition & 1 deletion source/updateCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _executeUpdate(destPath):
executeParams = u"--launcher"
# #4475: ensure that the new process shows its first window, by providing SW_SHOWNORMAL
shellapi.ShellExecute(None, None,
destPath.decode("mbcs"),
destPath,
executeParams,
None, winUser.SW_SHOWNORMAL)

Expand Down