diff options
author | Seth Morton <seth.m.morton@gmail.com> | 2019-08-17 07:28:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 07:28:36 -0700 |
commit | 6a740c708d01a9be87824200c50ac8bc2eefa173 (patch) | |
tree | 810b6b7856b32b5391212b67618d6e5140cf0384 | |
parent | b373756e9bdbb802ab2f97ca4e8ea581a37ed04e (diff) | |
parent | e5794679bc3888fb3720a657e4b34ca004e63cce (diff) | |
download | natsort-drop-python2-support.tar.gz |
Merge pull request #98 from hugovk/drop-python2-support-upgrade-syntaxdrop-python2-support
Upgrade Python syntax with pyupgrade --py3-plus
-rw-r--r-- | docs/conf.py | 16 | ||||
-rw-r--r-- | natsort/utils.py | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/docs/conf.py b/docs/conf.py index b47a143..b5660cf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ source_suffix = ['.rst', '.md'] master_doc = 'index' # General information about the project. -project = u'natsort' +project = 'natsort' # noinspection PyShadowingBuiltins -copyright = u'2014, Seth M. Morton' +copyright = '2014, Seth M. Morton' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -210,8 +210,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'natsort.tex', u'natsort Documentation', - u'Seth M. Morton', 'manual'), + ('index', 'natsort.tex', 'natsort Documentation', + 'Seth M. Morton', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -240,8 +240,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'natsort', u'natsort Documentation', - [u'Seth M. Morton'], 1) + ('index', 'natsort', 'natsort Documentation', + ['Seth M. Morton'], 1) ] # If true, show URL addresses after external links. @@ -254,8 +254,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'natsort', u'natsort Documentation', - u'Seth M. Morton', 'natsort', 'One line description of project.', + ('index', 'natsort', 'natsort Documentation', + 'Seth M. Morton', 'natsort', 'One line description of project.', 'Miscellaneous'), ] diff --git a/natsort/utils.py b/natsort/utils.py index 0feb509..4f5ddfb 100644 --- a/natsort/utils.py +++ b/natsort/utils.py @@ -52,7 +52,7 @@ from natsort.ns_enum import NS_DUMB, ns from natsort.unicode_numbers import digits_no_decimals, numeric_no_decimals -class NumericalRegularExpressions(object): +class NumericalRegularExpressions: """ Container of regular expressions that match numbers. |