From df632a807af83a49c8adb7ad9ce45572e22a59d6 Mon Sep 17 00:00:00 2001 From: Tyler887 Date: Sat, 16 Apr 2022 09:57:33 +0100 Subject: [PATCH] Update ship.py to use `argparse` optparse is deprecated and will be removed in a later version of python, use argparse instead. --- ship/ship.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ship/ship.py b/ship/ship.py index 44f5862e..8f0bfddb 100755 --- a/ship/ship.py +++ b/ship/ship.py @@ -21,12 +21,12 @@ # IN THE SOFTWARE. # -# Run with native CPython 2.7 on a 64-bit computer. +# Run with native CPython 3.2+ on a 64-bit computer. # import common_ship -from optparse import OptionParser +from argparse import ArgumentParser import multiprocessing import os import shutil @@ -86,7 +86,7 @@ def buildTarget(kind, syspath, arch): def main(): - parser = OptionParser() + parser = ArgumentParser() parser.add_option("--kind", type="choice", choices=["cygwin", "msys2"]) parser.add_option("--syspath") parser.add_option("--arch", type="choice", choices=["ia32", "x64"])