Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
2f0dd02c
Unverified
Commit
2f0dd02c
authored
7 years ago
by
Adam J. Stewart
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update to the latest version of six (#6787)
parent
cab34d7d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/spack/external/six.py
+8
-3
8 additions, 3 deletions
lib/spack/external/six.py
with
8 additions
and
3 deletions
lib/spack/external/six.py
+
8
−
3
View file @
2f0dd02c
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
import
types
import
types
__author__
=
"
Benjamin Peterson <benjamin@python.org>
"
__author__
=
"
Benjamin Peterson <benjamin@python.org>
"
__version__
=
"
1.1
0
.0
"
__version__
=
"
1.1
1
.0
"
# Useful for very coarse version differentiation.
# Useful for very coarse version differentiation.
...
@@ -241,7 +241,6 @@ class _MovedItems(_LazyModule):
...
@@ -241,7 +241,6 @@ class _MovedItems(_LazyModule):
MovedAttribute
(
"
map
"
,
"
itertools
"
,
"
builtins
"
,
"
imap
"
,
"
map
"
),
MovedAttribute
(
"
map
"
,
"
itertools
"
,
"
builtins
"
,
"
imap
"
,
"
map
"
),
MovedAttribute
(
"
getcwd
"
,
"
os
"
,
"
os
"
,
"
getcwdu
"
,
"
getcwd
"
),
MovedAttribute
(
"
getcwd
"
,
"
os
"
,
"
os
"
,
"
getcwdu
"
,
"
getcwd
"
),
MovedAttribute
(
"
getcwdb
"
,
"
os
"
,
"
os
"
,
"
getcwd
"
,
"
getcwdb
"
),
MovedAttribute
(
"
getcwdb
"
,
"
os
"
,
"
os
"
,
"
getcwd
"
,
"
getcwdb
"
),
MovedAttribute
(
"
getstatusoutput
"
,
"
commands
"
,
"
subprocess
"
),
MovedAttribute
(
"
getoutput
"
,
"
commands
"
,
"
subprocess
"
),
MovedAttribute
(
"
getoutput
"
,
"
commands
"
,
"
subprocess
"
),
MovedAttribute
(
"
range
"
,
"
__builtin__
"
,
"
builtins
"
,
"
xrange
"
,
"
range
"
),
MovedAttribute
(
"
range
"
,
"
__builtin__
"
,
"
builtins
"
,
"
xrange
"
,
"
range
"
),
MovedAttribute
(
"
reload_module
"
,
"
__builtin__
"
,
"
importlib
"
if
PY34
else
"
imp
"
,
"
reload
"
),
MovedAttribute
(
"
reload_module
"
,
"
__builtin__
"
,
"
importlib
"
if
PY34
else
"
imp
"
,
"
reload
"
),
...
@@ -421,6 +420,8 @@ class Module_six_moves_urllib_request(_LazyModule):
...
@@ -421,6 +420,8 @@ class Module_six_moves_urllib_request(_LazyModule):
MovedAttribute
(
"
URLopener
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
URLopener
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
FancyURLopener
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
FancyURLopener
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
proxy_bypass
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
proxy_bypass
"
,
"
urllib
"
,
"
urllib.request
"
),
MovedAttribute
(
"
parse_http_list
"
,
"
urllib2
"
,
"
urllib.request
"
),
MovedAttribute
(
"
parse_keqv_list
"
,
"
urllib2
"
,
"
urllib.request
"
),
]
]
for
attr
in
_urllib_request_moved_attributes
:
for
attr
in
_urllib_request_moved_attributes
:
setattr
(
Module_six_moves_urllib_request
,
attr
.
name
,
attr
)
setattr
(
Module_six_moves_urllib_request
,
attr
.
name
,
attr
)
...
@@ -820,10 +821,14 @@ def with_metaclass(meta, *bases):
...
@@ -820,10 +821,14 @@ def with_metaclass(meta, *bases):
# This requires a bit of explanation: the basic idea is to make a dummy
# This requires a bit of explanation: the basic idea is to make a dummy
# metaclass for one level of class instantiation that replaces itself with
# metaclass for one level of class instantiation that replaces itself with
# the actual metaclass.
# the actual metaclass.
class
metaclass
(
meta
):
class
metaclass
(
type
):
def
__new__
(
cls
,
name
,
this_bases
,
d
):
def
__new__
(
cls
,
name
,
this_bases
,
d
):
return
meta
(
name
,
bases
,
d
)
return
meta
(
name
,
bases
,
d
)
@classmethod
def
__prepare__
(
cls
,
name
,
this_bases
):
return
meta
.
__prepare__
(
name
,
bases
)
return
type
.
__new__
(
metaclass
,
'
temporary_class
'
,
(),
{})
return
type
.
__new__
(
metaclass
,
'
temporary_class
'
,
(),
{})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment