summaryrefslogtreecommitdiffstats
path: root/doc/conf.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-06-15 15:02:34 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-06-15 15:02:34 -0500
commite145b148dacc9420b2e4253310a0b2f0b07cbada (patch)
treebcc9174756967530863966e2f97910a06f10d65e /doc/conf.py
parent644d34552c4e2bc6a1da1daef5e3ac734b06b205 (diff)
downloadbcfg2-e145b148dacc9420b2e4253310a0b2f0b07cbada.tar.gz
bcfg2-e145b148dacc9420b2e4253310a0b2f0b07cbada.tar.bz2
bcfg2-e145b148dacc9420b2e4253310a0b2f0b07cbada.zip
doc: PY3K Make conf.py more portable
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 77ab6fd94..4b13579d7 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -40,8 +40,13 @@ source_suffix = '.txt'
master_doc = 'index'
# General information about the project.
-project = u'Bcfg2'
-copyright = u'2009-%s, Narayan Desai' % time.strftime('%Y')
+# py3k compatibility
+if sys.hexversion >= 0x03000000:
+ project = 'Bcfg2'
+ copyright = '2009-%s, Narayan Desai' % time.strftime('%Y')
+else:
+ project = u'Bcfg2'
+ copyright = u'2009-%s, Narayan Desai' % time.strftime('%Y')
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -174,10 +179,17 @@ latex_font_size = '11pt'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
-latex_documents = [
- ('contents', 'bcfg2.tex', u'Bcfg2 Documentation',
- u'Narayan Desai et al.', 'manual', True),
-]
+# py3k compatibility
+if sys.hexversion >= 0x03000000:
+ latex_documents = [
+ ('contents', 'bcfg2.tex', 'Bcfg2 Documentation',
+ 'Narayan Desai et al.', 'manual', True),
+ ]
+else:
+ latex_documents = [
+ ('contents', 'bcfg2.tex', u'Bcfg2 Documentation',
+ u'Narayan Desai et al.', 'manual', True),
+ ]
# The name of an image file (relative to this directory) to place at the top of
# the title page.