summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2014-05-27 00:15:03 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2014-05-27 00:15:03 +0200
commit710fccca62d099574330f0c4d06ec2228cf6e8a1 (patch)
tree846569ce84b72e06b437c8d1ef7fcbb191723322 /docs
parent6fe394f3dcfae6e8c2aa96ef9166840715a8b664 (diff)
downloadpsutil-710fccca62d099574330f0c4d06ec2228cf6e8a1.tar.gz
fix travis error on python 3.2; use flake8 in tox; make tox test also python 3.2
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 57b10e8f..a0f60a86 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,9 +14,19 @@
import datetime
import os
+import sys
-PROJECT_NAME = u"psutil"
-AUTHOR = u"Giampaolo Rodola'"
+
+if sys.version_info >= (3, ):
+ def u(s):
+ return s
+else:
+ def u(s):
+ return unicode(s, "unicode_escape") # NOQA
+
+
+PROJECT_NAME = u("psutil")
+AUTHOR = u("Giampaolo Rodola'")
THIS_YEAR = str(datetime.datetime.now().year)
HERE = os.path.abspath(os.path.dirname(__file__))
@@ -65,7 +75,7 @@ master_doc = 'index'
# General information about the project.
project = PROJECT_NAME
-copyright = u'2009-%s, %s' % (THIS_YEAR, AUTHOR)
+copyright = u('2009-%s, %s' % (THIS_YEAR, AUTHOR))
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -211,7 +221,7 @@ htmlhelp_basename = '%s-doc' % PROJECT_NAME
# [howto/manual]).
latex_documents = [
('index', '%s.tex' % PROJECT_NAME,
- u'%s documentation' % PROJECT_NAME, AUTHOR),
+ u('%s documentation' % PROJECT_NAME, AUTHOR)),
]
# The name of an image file (relative to this directory) to place at
@@ -243,7 +253,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
- ('index', PROJECT_NAME, u'%s documentation' % PROJECT_NAME, [AUTHOR], 1)
+ ('index', PROJECT_NAME, u('%s documentation') % PROJECT_NAME, [AUTHOR], 1)
]
# If true, show URL addresses after external links.