diff --git a/docs/conf.py b/docs/conf.py index 2cbd667..e50b6ac 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -55,8 +55,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'pipreqs' -copyright = u'2015, Vadim Kravcenko' +project = 'pipreqs' +copyright = '2015, Vadim Kravcenko' # The version info for the project you're documenting, acts as replacement # for |version| and |release|, also used in various other places throughout @@ -209,8 +209,8 @@ latex_elements = { # [howto/manual]). latex_documents = [ ('index', 'pipreqs.tex', - u'pipreqs Documentation', - u'Vadim Kravcenko', 'manual'), + 'pipreqs Documentation', + 'Vadim Kravcenko', 'manual'), ] # The name of an image file (relative to this directory) to place at @@ -240,8 +240,8 @@ latex_documents = [ # (source start file, name, description, authors, manual section). man_pages = [ ('index', 'pipreqs', - u'pipreqs Documentation', - [u'Vadim Kravcenko'], 1) + 'pipreqs Documentation', + ['Vadim Kravcenko'], 1) ] # If true, show URL addresses after external links. @@ -255,8 +255,8 @@ man_pages = [ # dir menu entry, description, category) texinfo_documents = [ ('index', 'pipreqs', - u'pipreqs Documentation', - u'Vadim Kravcenko', + 'pipreqs Documentation', + 'Vadim Kravcenko', 'pipreqs', 'One line description of project.', 'Miscellaneous'), diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 8182115..51e57d8 100644 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -124,7 +124,7 @@ def get_all_imports( except Exception as exc: if ignore_errors: traceback.print_exc(exc) - logging.warn("Failed on file: %s" % file_name) + logging.warning("Failed on file: %s" % file_name) continue else: logging.error("Failed on file: %s" % file_name) @@ -220,7 +220,8 @@ def get_locally_installed_packages(encoding=None): package = root.split(os.sep)[-1].split("-") try: top_level_modules = f.read().strip().split("\n") - except: # NOQA + except Exception: # NOQA + # TODO: What errors do we intend to suppress here? continue diff --git a/requirements.txt b/requirements.txt index 959d1b7..f4c9e26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -wheel==0.23.0 +wheel==0.38.1 Yarg==0.1.9 docopt==0.6.2 \ No newline at end of file