Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
erp5
Commits
f8fc08f1
Commit
f8fc08f1
authored
Feb 05, 2019
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
genbt5list: remove the use of six
This script should only depend on the standard library, for convenience.
parent
dba1a129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
product/ERP5/bin/genbt5list
product/ERP5/bin/genbt5list
+13
-4
No files found.
product/ERP5/bin/genbt5list
View file @
f8fc08f1
...
@@ -40,10 +40,19 @@ try:
...
@@ -40,10 +40,19 @@ try:
except
ImportError
:
except
ImportError
:
from
cgi
import
escape
from
cgi
import
escape
from
base64
import
b64encode
from
base64
import
b64encode
from
six
import
BytesIO
from
io
import
BytesIO
from
hashlib
import
sha1
from
hashlib
import
sha1
from
six.moves.urllib.parse
import
unquote
try
:
import
six
from
urllib.parse
import
unquote
except
ImportError
:
from
urllib
import
unquote
if
sys
.
version_info
[
0
]
==
3
:
def
iteritems
(
d
):
return
iter
(
d
.
items
())
else
:
def
iteritems
(
d
):
return
d
.
iteritems
()
# Order is important for installation
# Order is important for installation
# We want to have:
# We want to have:
...
@@ -152,7 +161,7 @@ force_install
...
@@ -152,7 +161,7 @@ force_install
def
__iter__
(
self
):
def
__iter__
(
self
):
self
[
'revision'
]
=
self
.
revision
.
digest
()
self
[
'revision'
]
=
self
.
revision
.
digest
()
return
iter
(
sorted
(
six
.
iteritems
(
self
)))
return
iter
(
sorted
(
iteritems
(
self
)))
@
classmethod
@
classmethod
def
fromTar
(
cls
,
tar
):
def
fromTar
(
cls
,
tar
):
...
...
Write
Preview
Markdown
is supported
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