mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
remove usage of six.print_()
This commit is contained in:
committed by
Scott Talbert
parent
5abeba2f5d
commit
beb9932241
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user