Run "futurize -1 -w -n ."
This commit is contained in:
parent
7f11256fc8
commit
06c3dc0ed3
55 changed files with 281 additions and 244 deletions
|
|
@ -87,6 +87,7 @@ DefaultLock: Exits: controls who may traverse the exit to
|
|||
Dark/light script
|
||||
```
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
from django.conf import settings
|
||||
from evennia.utils import utils
|
||||
|
|
@ -473,7 +474,7 @@ def tag(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
"""
|
||||
if hasattr(accessing_obj, "obj"):
|
||||
accessing_obj = accessing_obj = accessing_obj.obj
|
||||
print "tag:", args, accessing_obj, accessing_obj.tags.get(*args)
|
||||
print("tag:", args, accessing_obj, accessing_obj.tags.get(*args))
|
||||
return accessing_obj.tags.get(*args)
|
||||
|
||||
def objtag(accessing_obj, accessed_obj, *args, **kwargs):
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ restricted @perm command sets them, but otherwise they are identical
|
|||
to any other identifier you can use.
|
||||
|
||||
"""
|
||||
from __future__ import print_function
|
||||
|
||||
import re
|
||||
import inspect
|
||||
|
|
@ -541,10 +542,10 @@ def _test():
|
|||
|
||||
#obj1.locks.add("edit:attr(test)")
|
||||
|
||||
print "comparing obj2.permissions (%s) vs obj1.locks (%s)" % (obj2.permissions, obj1.locks)
|
||||
print obj1.locks.check(obj2, 'owner')
|
||||
print obj1.locks.check(obj2, 'edit')
|
||||
print obj1.locks.check(obj2, 'examine')
|
||||
print obj1.locks.check(obj2, 'delete')
|
||||
print obj1.locks.check(obj2, 'get')
|
||||
print obj1.locks.check(obj2, 'listen')
|
||||
print("comparing obj2.permissions (%s) vs obj1.locks (%s)" % (obj2.permissions, obj1.locks))
|
||||
print(obj1.locks.check(obj2, 'owner'))
|
||||
print(obj1.locks.check(obj2, 'edit'))
|
||||
print(obj1.locks.check(obj2, 'examine'))
|
||||
print(obj1.locks.check(obj2, 'delete'))
|
||||
print(obj1.locks.check(obj2, 'get'))
|
||||
print(obj1.locks.check(obj2, 'listen'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue