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
alecs_myu
erp5
Commits
7ef79ec5
Commit
7ef79ec5
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
d72c2f99
Changes
1
Show 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 @
7ef79ec5
...
...
@@ -40,10 +40,19 @@ try:
except
ImportError
:
from
cgi
import
escape
from
base64
import
b64encode
from
six
import
BytesIO
from
io
import
BytesIO
from
hashlib
import
sha1
from
six.moves.urllib.parse
import
unquote
import
six
try
:
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
# We want to have:
...
...
@@ -154,7 +163,7 @@ force_install
def
__iter__
(
self
):
self
[
'revision'
]
=
self
.
revision
.
digest
()
return
iter
(
sorted
(
six
.
iteritems
(
self
)))
return
iter
(
sorted
(
iteritems
(
self
)))
@
classmethod
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