Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
software
gridtk
Commits
63227f32
Commit
63227f32
authored
Aug 16, 2013
by
André Anjos
💬
Browse files
[python3] Use pickle instead of cPickle in Python3
parent
9cb61358
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridtk/models.py
View file @
63227f32
...
...
@@ -5,8 +5,13 @@ from sqlalchemy.orm import backref
from
sqlalchemy.ext.declarative
import
declarative_base
import
os
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
from
pickle
import
dumps
,
loads
else
:
from
cPickle
import
dumps
,
loads
from
cPickle
import
dumps
,
loads
from
.tools
import
logger
Base
=
declarative_base
()
...
...
@@ -261,4 +266,4 @@ def add_job(session, command_line, name = 'job', dependencies = [], array = None
session
.
commit
()
return
job
\ No newline at end of file
return
job
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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