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 @@ ...@@ -14,7 +14,7 @@
# serve to show the default. # serve to show the default.
import ast import ast
import ConfigParser import configparser
import os import os
import sys import sys
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'Accounting periods' project = 'Accounting periods'
copyright = u'2018, XCG Consulting' copyright = '2018, XCG Consulting'
author = u'XCG Consulting' author = 'XCG Consulting'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
...@@ -238,8 +238,8 @@ ...@@ -238,8 +238,8 @@
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
(master_doc, 'AccountingPeriods.tex', (master_doc, 'AccountingPeriods.tex',
u'Accounting periods documentation', 'Accounting periods documentation',
u'XCG Consulting', 'manual'), 'XCG Consulting', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
(master_doc, 'AccountingPeriods', (master_doc, 'AccountingPeriods',
u'Accounting periods documentation', 'Accounting periods documentation',
[author], 1) [author], 1)
] ]
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
(master_doc, 'AccountingPeriods', (master_doc, 'AccountingPeriods',
u'Accounting periods documentation', 'Accounting periods documentation',
author, 'AccountingPeriods', ''' author, 'AccountingPeriods', '''
Accounting periods Accounting periods
''', ''',
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
sphinxodoo_root_path = os.path.dirname(os.path.dirname(os.path.abspath(odoo.__file__))) 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 # 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')))) 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')) c.read(os.path.join(superproject_path, 'setup.cfg'))
sphinxodoo_addons_path = [os.path.join(sphinxodoo_root_path, 'addons')] sphinxodoo_addons_path = [os.path.join(sphinxodoo_root_path, 'addons')]
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
self.assertIsInstance(record, odoo.models.BaseModel) self.assertIsInstance(record, odoo.models.BaseModel)
for field, value in local_values.items(): for field, value in list(local_values.items()):
tester = ( tester = (
custom_testers.get(field) or 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