aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/bld_openssl.py
diff options
context:
space:
mode:
authorPatrik Teivonen <patrik.teivonen@qt.io>2022-06-16 12:57:31 +0300
committerPatrik Teivonen <patrik.teivonen@qt.io>2022-07-11 09:05:20 +0000
commitee18c629245767ec020e6d78857b052f71569b2b (patch)
tree2d6c1790ed87a999cd0abf043dedbe00a5d61646 /packaging-tools/bld_openssl.py
parent152f03b67a2087a5a96e4447dff969317ad0847b (diff)
PEP8: Fix miscellaneous code syntax errors
Enable following checks in flake8 hook, and fix the discovered errors: -F821 Undefined name -W605 Invalid escape sequence -E703 Statement ends with a semicolon -E999 SyntaxError -F632 use ==/!= to compare constant literals (str, bytes, int, float, tuple) -E711 comparison to None should be 'if cond is not None:' Change-Id: I21e2d84463c4f8560a460f05e6055c61e2a02908 Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/bld_openssl.py')
-rw-r--r--packaging-tools/bld_openssl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging-tools/bld_openssl.py b/packaging-tools/bld_openssl.py
index e35b3c37b..9cdbfc2e2 100644
--- a/packaging-tools/bld_openssl.py
+++ b/packaging-tools/bld_openssl.py
@@ -47,9 +47,9 @@ ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
def build(src_dir, install_dir, toolset):
do_execute_sub_process(['perl', 'Configure', toolset, '--openssldir=' + install_dir], src_dir, True)
if toolset == 'VC-WIN32':
- do_execute_sub_process(['ms\do_nasm.bat'], src_dir, True)
+ do_execute_sub_process([r'ms\do_nasm.bat'], src_dir, True)
else:
- do_execute_sub_process(['ms\do_win64a'], src_dir, True)
+ do_execute_sub_process([r'ms\do_win64a'], src_dir, True)
do_execute_sub_process(['nmake', '-f', 'ms\\ntdll.mak'], src_dir, True)
do_execute_sub_process(['nmake', '-f', 'ms\\ntdll.mak', 'install'], src_dir, True)
@@ -75,7 +75,7 @@ def setup_argument_parser():
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('--sourcedir', help='Source directory', required=True)
- parser.add_argument('--installdir', help='Target directory (should be on C:\)', required=False, default='C:\usr\local\openssl')
+ parser.add_argument('--installdir', help=r'Target directory (should be on C:\)', required=False, default=r'C:\usr\local\openssl')
parser.add_argument('--toolset', help='Either VC-WIN32 or VC-WIN64', required=False, default='VC-WIN32')
parser.add_argument('--archive_prefix', help='The start of the archive name to create', required=False, default=ROOT_DIR + '\\openssl')
return parser