Fix for older Python
This commit is contained in:
parent
3ea18ff01b
commit
dd8129aa2d
|
@ -2,6 +2,14 @@
|
||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
Version 1.0.3
|
||||||
|
=============
|
||||||
|
- Added tests and code coverage
|
||||||
|
- PDFs can be directly fetched from Remote URLs
|
||||||
|
- PDFs can be filtered to have start and end pages
|
||||||
|
- Support for Python 3.6-3.8
|
||||||
|
- Removed --cleanup argument, since that is default
|
||||||
|
|
||||||
Version 1.0.2
|
Version 1.0.2
|
||||||
=============
|
=============
|
||||||
- Adds support for rotating PDFs
|
- Adds support for rotating PDFs
|
||||||
|
|
|
@ -52,9 +52,10 @@ def parse_args(args):
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--cleanup',
|
'--no-cleanup',
|
||||||
action=argparse.BooleanOptionalAction,
|
action='store_false',
|
||||||
default=True,
|
default=True,
|
||||||
|
dest='cleanup',
|
||||||
help="Delete temporary files"
|
help="Delete temporary files"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,5 @@ def test_loglevel():
|
||||||
assert args.loglevel == logging.INFO
|
assert args.loglevel == logging.INFO
|
||||||
|
|
||||||
def test_cleanup():
|
def test_cleanup():
|
||||||
args = parse_args(['--cleanup', 'tests/book-clean.md', 'o.pdf'])
|
args = parse_args(['--no-cleanup', 'tests/book-clean.md', 'o.pdf'])
|
||||||
assert args.cleanup == True
|
assert args.cleanup == False
|
||||||
|
|
Loading…
Reference in New Issue