mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
remove all references to optparse (deprecated since Python 3.2)
This commit is contained in:
parent
717df09be0
commit
1e5699e90c
24 changed files with 115 additions and 93 deletions
|
|
@ -5,7 +5,6 @@ import datetime
|
|||
import glob
|
||||
import inspect
|
||||
import logging
|
||||
import optparse
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
|
@ -942,15 +941,17 @@ class AltstoreIndexTest(unittest.TestCase):
|
|||
if __name__ == "__main__":
|
||||
os.chdir(os.path.dirname(__file__))
|
||||
|
||||
parser = optparse.OptionParser()
|
||||
parser.add_option(
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
"-v",
|
||||
"--verbose",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Spew out even more information than normal",
|
||||
)
|
||||
(options, args) = parser.parse_args(["--verbose"])
|
||||
options = parser.parse_args(["--verbose"])
|
||||
Options.verbose = options.verbose
|
||||
|
||||
newSuite = unittest.TestSuite()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue