From 17b4633bdc53156f4303bd99ad898756c069ab07 Mon Sep 17 00:00:00 2001 From: Tobie Warburton Date: Wed, 26 Jun 2013 10:42:22 +0100 Subject: [PATCH] added __unicode__ python snippet --- snippets/python.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/python.snippets b/snippets/python.snippets index fcce99f..7007a99 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -2,6 +2,9 @@ snippet #! #!/usr/bin/env python snippet imp import ${1:module} +snippet uni + def __unicode__(self): + ${1:representation} snippet from from ${1:package} import ${2:module} # Module Docstring @@ -13,6 +16,7 @@ snippet docs Github: `g:snips_github` Description: ${2} """ + snippet wh while ${1:condition}: ${2}