diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-06-15 15:04:53 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-06-15 15:04:53 -0500 |
commit | f4307fd49519f4f086a5674c255174880a8b2b18 (patch) | |
tree | 84683bf22dc6b5e7c8f1eda1c6e10a5360f70f9b /doc/conf.py | |
parent | 707a17cf8bcf0e91a2c74f671f0d3fffff3c294e (diff) | |
parent | e145b148dacc9420b2e4253310a0b2f0b07cbada (diff) | |
download | bcfg2-f4307fd49519f4f086a5674c255174880a8b2b18.tar.gz bcfg2-f4307fd49519f4f086a5674c255174880a8b2b18.tar.bz2 bcfg2-f4307fd49519f4f086a5674c255174880a8b2b18.zip |
Merge branch 'py3k'
Diffstat (limited to 'doc/conf.py')
-rw-r--r-- | doc/conf.py | 24 |
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. |