Port EvMenu and EvForm for Py3.

This commit is contained in:
Ryan Stein 2017-10-29 22:14:39 -04:00
parent 8d0d3a942f
commit aaf13eec16
2 changed files with 5 additions and 6 deletions

View file

@ -167,7 +167,7 @@ from evennia import Command, CmdSet
from evennia.utils import logger
from evennia.utils.evtable import EvTable
from evennia.utils.ansi import strip_ansi
from evennia.utils.utils import mod_import, make_iter, pad, m_len
from evennia.utils.utils import mod_import, make_iter, pad, m_len, is_iter
from evennia.commands import cmdhandler
# read from protocol NAWS later?
@ -726,7 +726,7 @@ class EvMenu(object):
# validation of the node return values
helptext = ""
if hasattr(nodetext, "__iter__"):
if is_iter(nodetext):
if len(nodetext) > 1:
nodetext, helptext = nodetext[:2]
else: