Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FFDN
himport
Commits
1ae6dcb9
Commit
1ae6dcb9
authored
Jan 24, 2019
by
Baptiste Jonglez
Browse files
Fix python3 compatibility
parent
fbd63dcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
himport/cli.py
View file @
1ae6dcb9
...
...
@@ -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
)
himport/dolibarrAlchemyHledger.py
View file @
1ae6dcb9
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
import
settings
import
datetime
from
himport
import
settings
from
himport.dolibarrAlchemy
import
DolibarrSQLAlchemy
...
...
himport/dolibarrWriter.py
View file @
1ae6dcb9
import
settings
import
os
import
codecs
from
himport
import
settings
class
Writer
(
object
):
output_files
=
settings
.
get
(
'OUTPUT_FILES'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment