import os
import xmlrpc.client
import shutil
-from types import StringTypes
from io import StringIO
from subprocess import Popen, PIPE, call
from tempfile import NamedTemporaryFile, mkdtemp
xml = xmlrpc.client.dumps(args, methodname, methodresponse, encoding = 'utf-8', allow_none = 1)
dom = etree.fromstring(xml)
- canonical=etree.tostring(dom)
- # pre-f20 version was using Canonicalize from PyXML
+ canonical = etree.tostring(dom)
+ # pre-f20 version was using Canonicalize from PyXML
# from xml.dom.ext import Canonicalize
# Canonicalize(), though it claims to, does not encode unicode
# nodes to UTF-8 properly and throws an exception unless you write
"""
# Accept either an opaque string blob or a Python tuple
- if isinstance(args, StringTypes):
+ if isinstance(args, str):
message = args
elif isinstance(args, tuple):
message = canonicalize(args, methodname, methodresponse)
"""
# Accept either an opaque string blob or a Python tuple
- if isinstance(args, StringTypes):
+ if isinstance(args, str):
message = args
else:
message = canonicalize(args, methodname, methodresponse)