Introduce monero.const, simplify net check methods and deprecate old API

This commit is contained in:
Michał Sałaban 2020-01-13 11:37:53 +01:00
parent e7897f72bd
commit 6e410d9624
11 changed files with 130 additions and 72 deletions

View file

@ -42,7 +42,7 @@ argsparser.add_argument('--save', dest='outdir', nargs='?', default=None, const=
argsparser.add_argument('destinations', metavar='address:amount', nargs='+', type=destpair,
help="Destination address and amount (one or more pairs)")
args = argsparser.parse_args()
prio = getattr(monero.prio, args.prio.upper())
prio = getattr(monero.const, "PRIO_{:s}".format(args.prio.upper()))
level = logging.WARNING
if args.verbosity == 1: