PROTON-490: port mllib document parser to Python 3

Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e87a6d31
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e87a6d31
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e87a6d31

Branch: refs/heads/master
Commit: e87a6d313ecf2f468852de83126b1fdd7924b737
Parents: 903c724 5d7a458
Author: Ken Giusti <[email protected]>
Authored: Wed Apr 22 10:55:12 2015 -0400
Committer: Ken Giusti <[email protected]>
Committed: Wed Apr 22 10:55:12 2015 -0400

----------------------------------------------------------------------
 proton-c/mllib/__init__.py   | 27 ++++++++-------------------
 proton-c/mllib/dom.py        |  7 ++++---
 proton-c/mllib/parsers.py    | 37 ++-----------------------------------
 proton-c/mllib/transforms.py |  2 +-
 4 files changed, 15 insertions(+), 58 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e87a6d31/proton-c/mllib/__init__.py
----------------------------------------------------------------------
diff --cc proton-c/mllib/__init__.py
index c6fccf1,9e78a87..e506060
--- a/proton-c/mllib/__init__.py
+++ b/proton-c/mllib/__init__.py
@@@ -28,10 -27,11 +27,15 @@@ import os, sy
  import xml.sax, types
  from xml.sax.handler import ErrorHandler
  from xml.sax.xmlreader import InputSource
- from cStringIO import StringIO
+ import six
+ from six.moves import cStringIO as StringIO
+ 
+ from . import dom
+ from . import transforms
++from . import parsers
 +
 +from . import dom
 +from . import transforms
  from . import parsers
  
  def transform(node, *args):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to