[Groonga-commit] groonga/groonga at 00f8b68 [master] doc: use Python3 style for conf.py

Back to archive index
Kouhei Sutou null+****@clear*****
Tue Apr 2 17:17:48 JST 2019


Kouhei Sutou	2019-04-02 17:17:48 +0900 (Tue, 02 Apr 2019)

  Revision: 00f8b68335c5fc4f2ded74aec4da4e0146c643e1
  https://github.com/groonga/groonga/commit/00f8b68335c5fc4f2ded74aec4da4e0146c643e1

  Message:
    doc: use Python3 style for conf.py

  Modified files:
    doc/source/conf.py

  Modified: doc/source/conf.py (+6 -6)
===================================================================
--- doc/source/conf.py    2019-04-02 16:47:01 +0900 (69954c3a2)
+++ doc/source/conf.py    2019-04-02 17:17:48 +0900 (a16f8bcef)
@@ -27,11 +27,11 @@ from pkg_resources import parse_version
 #sys.path.append(os.path.abspath('.'))
 
 if parse_version(sphinx.__version__) < parse_version(SPHINX_VERSION_REQUIRED):
-  print 'sphinx version is old. %s is requred. exec "easy_install -U sphinx"' % SPHINX_VERSION_REQUIRED
+  print('sphinx version is old. %s is requred. exec "easy_install -U sphinx"' % SPHINX_VERSION_REQUIRED)
   sys.exit(1)
 
 #if sphinx.__version__ != SPHINX_VERSION_REQUIRED:
-#  print 'sphinx version is different. %s is requred. exec "easy_install -U sphinx"' % SPHINX_VERSION_REQUIRED
+#  print('sphinx version is different. %s is requred. exec "easy_install -U sphinx"' % SPHINX_VERSION_REQUIRED)
 #  sys.exit(1)
 
 # -- General configuration -----------------------------------------------------
@@ -55,8 +55,8 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = u'Groonga'
-copyright = u'2009-' + str(datetime.today().year) + u', Brazil, Inc'
+project = 'Groonga'
+copyright = '2009-' + str(datetime.today().year) + ', Brazil, Inc'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -149,8 +149,8 @@ html_theme_path = ["../themes"]
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
 html_title_format = _("%(project)s v%(release)s documentation")
-html_title = html_title_format % {"project": str(project),
-                                  "release": str(release)}
+html_title = html_title_format % {"project": project,
+                                  "release": release}
 
 # A shorter title for the navigation bar.  Default is the same as html_title.
 #html_short_title = None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190402/c8867887/attachment-0001.html>


More information about the Groonga-commit mailing list
Back to archive index