Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
229 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: dec
  3. # key: dec
  4. # group : definitions
  5. # --
  6. def ${1:decorator}(func):
  7. $2
  8. def _$1(*args, **kwargs):
  9. $3
  10. ret = func(*args, **kwargs)
  11. $4
  12. return ret
  13. return _$1