Commit 1ae6dcb9 authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Fix python3 compatibility

parent fbd63dcd
......@@ -95,7 +95,7 @@ def do_sqlalchemy(options):
def main():
locale.setlocale(locale.LC_ALL, b'fr_FR.utf-8')
locale.setlocale(locale.LC_ALL, 'fr_FR.utf-8')
options = process_args()
do_sqlalchemy(options)
......@@ -105,5 +105,5 @@ if __name__ == "__main__":
try:
main(sys.argv[1:])
except Exception as e:
print e.message
print(e.message)
sys.exit(1)
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import settings
import datetime
from himport import settings
from himport.dolibarrAlchemy import DolibarrSQLAlchemy
......
import settings
import os
import codecs
from himport import settings
class Writer(object):
output_files = settings.get('OUTPUT_FILES')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment