about summary refs log tree commit diff
path: root/users/aspen/emacs.d/snippets/python-mode/decorate
diff options
context:
space:
mode:
Diffstat (limited to 'users/aspen/emacs.d/snippets/python-mode/decorate')
-rw-r--r--users/aspen/emacs.d/snippets/python-mode/decorate15
1 files changed, 15 insertions, 0 deletions
diff --git a/users/aspen/emacs.d/snippets/python-mode/decorate b/users/aspen/emacs.d/snippets/python-mode/decorate
new file mode 100644
index 000000000000..4f96748572a2
--- /dev/null
+++ b/users/aspen/emacs.d/snippets/python-mode/decorate
@@ -0,0 +1,15 @@
+# -*- mode: snippet -*-
+# name: decorate
+# uuid: decorate
+# key: decorate
+# condition: t
+# --
+def wrap(inner):
+    @wraps(inner)
+    def wrapped(*args, **kwargs):
+        ret = inner(*args, **kwargs)
+        return ret
+
+    return wrapped
+
+return wrap
\ No newline at end of file