@SnoopJeDi/

EmptyDarkorangeProtools

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5149330951950037","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZGVmIGRlY29yYXRvcihmdW5jKToKICAgIGRlZiBkZWNvcmF0ZWQoKmFyZ3MsICoqa3dhcmdzKToKICAgICAgdGV4dCA9IGZ1bmMoKSAgICAKICAgICAgcmV0dXJuICJJJ20gZGVjb3JhdGluZyB0aGlzIHRleHQ6IHt9Ii5mb3JtYXQodGV4dCkKICAgIHJldHVybiBkZWNvcmF0ZWQgICMgcmV0dXJuIGEgbmV3IGZ1bmN0aW9uIHRoYXQgd3JhcHMgdGhlIG9yaWdpbmFsCiAgICAKQGRlY29yYXRvcgpkZWYgd2liYmxlKCk6CiAgICByZXR1cm4gJ2ZvbycKICAgIApwcmludCh3aWJibGUoKSkK"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
def decorator(func):
    def decorated(*args, **kwargs):
      text = func()    
      return "I'm decorating this text: {}".format(text)
    return decorated  # return a new function that wraps the original
    
@decorator
def wibble():
    return 'foo'
    
print(wibble())