Remove textwrap dependency.

This commit is contained in:
Arun Prakash Jana 2016-05-14 21:03:21 +05:30
parent 7e13c5f8c5
commit ecb5e390d5
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

19
buku
View File

@ -29,7 +29,6 @@ from urllib.parse import urljoin, quote, unquote
import gzip import gzip
import io import io
import signal import signal
import textwrap
# Import libraries needed for encryption # Import libraries needed for encryption
try: try:
@ -1018,16 +1017,16 @@ class ExtendedArgumentParser(argparse.ArgumentParser):
# Print additional help and info # Print additional help and info
@staticmethod @staticmethod
def print_extended_help(file=None): def print_extended_help(file=None):
file.write(textwrap.dedent(''' file.write('''
prompt keys: prompt keys:
1-N open the Nth search result in web browser 1-N open the Nth search result in web browser
Enter exit buku Enter exit buku
Version %.1f Version %.1f
Copyright (C) 2015-2016 Arun Prakash Jana <engineerarun@gmail.com> Copyright (C) 2015-2016 Arun Prakash Jana <engineerarun@gmail.com>
License: GPLv3 License: GPLv3
Webpage: https://github.com/jarun/buku Webpage: https://github.com/jarun/buku
''' % _VERSION_)) ''' % _VERSION_)
# Help # Help
def print_help(self, file=None): def print_help(self, file=None):