remove usage of six.print_()

This commit is contained in:
Alexandre Detiste
2024-03-20 14:39:16 +01:00
committed by Scott Talbert
parent 5abeba2f5d
commit beb9932241
7 changed files with 67 additions and 59 deletions

View File

@@ -6,8 +6,9 @@ printTreeDocs and printTreeSpec.
:license: BSD, see LICENSE_BSD_Simple.txt for details.
"""
from __future__ import print_function
import sys
from .. import py2and3
__all__ = ('printImported', 'StructMsg', 'Callback', 'Enum' )
@@ -16,7 +17,7 @@ def printImported():
"""Output a list of pubsub modules imported so far"""
ll = sorted([mod for mod in sys.modules if mod.find('pubsub') >= 0])
py2and3.print_('\n'.join(ll))
print('\n'.join(ll))
class StructMsg:

View File

@@ -45,6 +45,8 @@ of the XML tree.
:license: BSD, see LICENSE_BSD_Simple.txt for details.
"""
from __future__ import print_function
__author__ = 'Joshua R English'
__revision__ = 6
__date__ = '2013-07-27'
@@ -80,7 +82,7 @@ def _get_elem(elem):
try:
elem = ET.fromstring(elem)
except:
py2and3.print_("Value Error", elem)
print("Value Error", elem)
raise ValueError("Cannot convert to element")
return elem