Fix build break

This commit is contained in:
Arun Prakash Jana 2020-08-23 09:29:28 +05:30
parent 964746d323
commit f091852682
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 4 additions and 4 deletions

6
buku
View File

@ -2794,8 +2794,8 @@ PROMPT KEYS:
assert len(arg) == 5 assert len(arg) == 5
for c in arg: for c in arg:
assert c in COLORMAP assert c in COLORMAP
except AssertionError: except AssertionError as e:
raise argparse.ArgumentTypeError('%s is not a valid color string' % arg) raise argparse.ArgumentTypeError('%s is not a valid color string' % arg) from e
return arg return arg
# Help # Help
@ -2807,7 +2807,7 @@ PROMPT KEYS:
file : file, optional file : file, optional
File to write program info to. Default is sys.stdout. File to write program info to. Default is sys.stdout.
""" """
super(ExtendedArgumentParser, self).print_help(file) super().print_help(file)
self.program_info(file) self.program_info(file)

View File

@ -11,11 +11,11 @@ import sqlite3
import sys import sys
import urllib import urllib
import zipfile import zipfile
from genericpath import exists
from tempfile import TemporaryDirectory, NamedTemporaryFile from tempfile import TemporaryDirectory, NamedTemporaryFile
from unittest import mock from unittest import mock
import unittest import unittest
from genericpath import exists
import pytest import pytest
import yaml import yaml
from hypothesis import given, example, settings from hypothesis import given, example, settings