mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
Did some additions to the MSDP implementation. Added a first test for implementing MSDP commands, but it is not working yet.
This commit is contained in:
parent
9935bff36e
commit
a0a205c945
3 changed files with 78 additions and 4 deletions
|
|
@ -24,6 +24,12 @@ def is_iter(iterable):
|
|||
"""
|
||||
return hasattr(iterable, '__iter__')
|
||||
|
||||
def make_iter(obj):
|
||||
"Makes sure that the object is always iterable."
|
||||
if not hasattr(iterable, '__iter__'):
|
||||
return [obj]
|
||||
return obj
|
||||
|
||||
def fill(text, width=78, indent=0):
|
||||
"""
|
||||
Safely wrap text to a certain number of characters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue