From e5794679bc3888fb3720a657e4b34ca004e63cce Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 17 Aug 2019 12:11:21 +0300 Subject: Upgrade Python syntax with pyupgrade --py3-plus --- docs/conf.py | 16 ++++++++-------- 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. -- cgit v1.2.1