Skip to content

Commit

Permalink
re-add customizations to the bundled six module
Browse files Browse the repository at this point in the history
  • Loading branch information
plq authored and bene42 committed Dec 8, 2023
1 parent 50f2a2f commit 8f31a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyne/util/six.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ class Module_six_moves_urllib_parse(_LazyModule):
MovedAttribute("splittag", "urllib", "urllib.parse"),
MovedAttribute("splituser", "urllib", "urllib.parse"),
MovedAttribute("splitvalue", "urllib", "urllib.parse"),
MovedAttribute("splittype", "urllib", "urllib.parse"),
MovedAttribute("splithost", "urllib", "urllib.parse"),
MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
MovedAttribute("uses_params", "urlparse", "urllib.parse"),
Expand Down Expand Up @@ -531,6 +533,7 @@ def remove_move(name):
_func_code = "__code__"
_func_defaults = "__defaults__"
_func_globals = "__globals__"
_func_name = "__name__"
else:
_meth_func = "im_func"
_meth_self = "im_self"
Expand All @@ -539,6 +542,7 @@ def remove_move(name):
_func_code = "func_code"
_func_defaults = "func_defaults"
_func_globals = "func_globals"
_func_name = "func_name"


try:
Expand Down Expand Up @@ -592,6 +596,7 @@ def next(self):
get_function_code = operator.attrgetter(_func_code)
get_function_defaults = operator.attrgetter(_func_defaults)
get_function_globals = operator.attrgetter(_func_globals)
get_function_name = operator.attrgetter(_func_name)


if PY3:
Expand Down

0 comments on commit 8f31a7b

Please sign in to comment.