Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Dec 27, 2016
1 parent d12e864 commit b1b5b0d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -x
#
# Sets up a Python testing environment from scratch. Mainly written for Jenkins.
# Works for CPython. Not working for Jython, IronPython and PyPy.
#
# Requirements:
# A working build environment inside the container with OpenSSL, bzip2,
Expand Down
1 change: 1 addition & 0 deletions spyne/protocol/cloth/to_cloth.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ def to_cloth(self, ctx, cls, inst, cloth, parent, name=None,

# disabled for performance reasons
# identifier = "%s.%s" % (prot_name, handler.__name__)
# from spyne.util.web import log_repr
# logger_s.debug("Writing %s using %s for %s. Inst: %r",
# name, identifier, cls.get_type_name(),
# log_repr(inst, cls, from_array=from_arr))
Expand Down
7 changes: 4 additions & 3 deletions spyne/protocol/cloth/to_parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ def to_parent(self, ctx, cls, inst, parent, name, nosubprot=False, **kwargs):
logger.debug("%s %r pushed %r %r", R("$"), self, cls, inst)

# disabled for performance reasons
#identifier = "%s.%s" % (prot_name, handler.__name__)
#log_str = log_repr(inst, cls,
# from spyne.util.web import log_repr
# identifier = "%s.%s" % (prot_name, handler.__name__)
# log_str = log_repr(inst, cls,
# from_array=kwargs.get('from_arr', None))
#logger.debug("Writing %s using %s for %s. Inst: %r", name,
# logger.debug("Writing %s using %s for %s. Inst: %r", name,
# identifier, cls.get_type_name(), log_str)

# finally, serialize the value. retval is the coroutine
Expand Down
2 changes: 1 addition & 1 deletion spyne/protocol/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def complex_to_parent(self, ctx, cls, inst, parent, ns, name=None,
def _fault_to_parent_impl(self, ctx, cls, inst, parent, ns, subelts, **_):
tag_name = "{%s}Fault" % self.ns_soap_env

# Accepting raw lxml objects as detail is deprecated. It's also not
# Accepting raw lxml objects as detail is DEPRECATED. It's also not
# documented. It's kept for backwards-compatibility purposes.
if isinstance(inst.detail, string_types + (etree._Element,)):
_append(subelts, E('detail', inst.detail))
Expand Down
1 change: 1 addition & 0 deletions spyne/util/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
MAG = lambda s: s
CYA = lambda s: s


if __name__ == '__main__':
print(R("RED"))
print(G("GREEN"))
Expand Down

0 comments on commit b1b5b0d

Please sign in to comment.