Skip to content
Snippets Groups Projects
Commit b811fd028a4e authored by szeka.wong's avatar szeka.wong
Browse files

Python 3 syntax fix

parent fc24e7e467e3
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
# serve to show the default.
import ast
import ConfigParser
import configparser
import os
import sys
......@@ -58,9 +58,9 @@
master_doc = 'index'
# General information about the project.
project = u'Accounting periods'
copyright = u'2018, XCG Consulting'
author = u'XCG Consulting'
project = 'Accounting periods'
copyright = '2018, XCG Consulting'
author = 'XCG Consulting'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......@@ -238,8 +238,8 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'AccountingPeriods.tex',
u'Accounting periods documentation',
u'XCG Consulting', 'manual'),
'Accounting periods documentation',
'XCG Consulting', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
......@@ -269,7 +269,7 @@
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'AccountingPeriods',
u'Accounting periods documentation',
'Accounting periods documentation',
[author], 1)
]
......@@ -284,7 +284,7 @@
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'AccountingPeriods',
u'Accounting periods documentation',
'Accounting periods documentation',
author, 'AccountingPeriods', '''
Accounting periods
''',
......@@ -320,7 +320,7 @@
sphinxodoo_root_path = os.path.dirname(os.path.dirname(os.path.abspath(odoo.__file__)))
# sphinxodoo_addons_path : List of paths were Odoo addons to load are located
superproject_path = os.path.dirname(os.path.dirname(os.path.dirname(os.getenv('PWD'))))
c = ConfigParser.ConfigParser()
c = configparser.ConfigParser()
c.read(os.path.join(superproject_path, 'setup.cfg'))
sphinxodoo_addons_path = [os.path.join(sphinxodoo_root_path, 'addons')]
......
......@@ -59,7 +59,7 @@
self.assertIsInstance(record, odoo.models.BaseModel)
for field, value in local_values.items():
for field, value in list(local_values.items()):
tester = (
custom_testers.get(field) or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment