]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove redundant prefix from Python 3 strings
authorMichał Kępień <michal@isc.org>
Thu, 16 Sep 2021 06:22:01 +0000 (08:22 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 16 Sep 2021 06:55:15 +0000 (08:55 +0200)
Address the following warnings reported by PyLint 2.10.2:

    ************* Module conf
    doc/arm/conf.py:90:10: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/arm/conf.py:92:12: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/arm/conf.py:93:9: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/arm/conf.py:139:31: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/man/conf.py:33:10: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/man/conf.py:38:12: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
    doc/man/conf.py:39:9: W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)

(cherry picked from commit e5944bc610fa45902e89c4173d0b7b124876c82b)

doc/arm/conf.py
doc/man/conf.py

index 434529f2174a8ee1f96be2a2ae257c0a7f3daf52..a7daf5ea09351d742df211157677297eee19d175 100644 (file)
@@ -87,10 +87,10 @@ def setup(_):
 
 # -- Project information -----------------------------------------------------
 
-project = u'BIND 9'
+project = 'BIND 9'
 # pylint: disable=redefined-builtin
-copyright = u'2021, Internet Systems Consortium'
-author = u'Internet Systems Consortium'
+copyright = '2021, Internet Systems Consortium'
+author = 'Internet Systems Consortium'
 
 # -- General configuration ---------------------------------------------------
 
@@ -136,7 +136,7 @@ latex_engine = 'xelatex'
 
 # pylint disable=line-too-long
 latex_documents = [
-    (master_doc, 'Bv9ARM.tex', u'BIND 9 Administrator Reference Manual', author, 'manual'),
+    (master_doc, 'Bv9ARM.tex', 'BIND 9 Administrator Reference Manual', author, 'manual'),
     ]
 
 latex_logo = "isc-logo.pdf"
index 533263f1ca835062347d5212ea6361397cef831f..bba7250a9738f57f3de612dd3451c4c2e4168f36 100644 (file)
 
 # -- Project information -----------------------------------------------------
 
-project = u'BIND 9'
+project = 'BIND 9'
 # pylint: disable=wrong-import-position
 import datetime
 year = datetime.datetime.now().year
 # pylint: disable=redefined-builtin
-copyright = u"%d, Internet Systems Consortium" % year
-author = u'Internet Systems Consortium'
+copyright = "%d, Internet Systems Consortium" % year
+author = 'Internet Systems Consortium'
 
 # -- General configuration ---------------------------------------------------