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

View File

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