mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Added aggressive caching for common typeclassed variables.
This commit is contained in:
parent
b99db98191
commit
1fa5791e19
3 changed files with 56 additions and 69 deletions
|
|
@ -26,8 +26,7 @@ def is_iter(iterable):
|
|||
|
||||
def make_iter(obj):
|
||||
"Makes sure that the object is always iterable."
|
||||
if not hasattr(iterable, '__iter__'):
|
||||
return [obj]
|
||||
if not hasattr(obj, '__iter__'): return [obj]
|
||||
return obj
|
||||
|
||||
def fill(text, width=78, indent=0):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue