Merge pull request #46 from danielwuz/fix-indentation

keep indentation of 4 for python snippets
This commit is contained in:
Andrea Crotti 2014-08-14 17:01:45 +01:00
commit 4f282a2568
10 changed files with 19 additions and 19 deletions

View file

@ -3,4 +3,4 @@
# key: ar
# --
with self.assertRaises(${1:Exception}):
$0
$0

View file

@ -4,4 +4,4 @@
# group: object oriented
# --
class ${1:class}:
$0
$0

View file

@ -4,4 +4,4 @@
# group : control structure
# --
if ${1:cond}:
$0
$0

View file

@ -4,6 +4,6 @@
# group : control structure
# --
if $1:
$2
$2
else:
$0
$0

View file

@ -3,4 +3,4 @@
# key: ifm
# --
if __name__ == '__main__':
${1:main()}
${1:main()}

View file

@ -2,16 +2,16 @@
# name: prop
# --
def ${1:foo}():
doc = """${2:Doc string}"""
def fget(self):
return self._$1
doc = """${2:Doc string}"""
def fget(self):
return self._$1
def fset(self, value):
self._$1 = value
def fset(self, value):
self._$1 = value
def fdel(self):
del self._$1
return locals()
def fdel(self):
del self._$1
return locals()
$1 = property(**$1())
$0

View file

@ -5,7 +5,7 @@
#!/usr/bin/env python
def main():
pass
pass
if __name__ == '__main__':
main()
main()

View file

@ -4,4 +4,4 @@
# group : testing
# --
class Test${1:toTest}(${2:unittest.TestCase}):
$0
$0

View file

@ -4,4 +4,4 @@
# group: control structure
# --
while ${1:True}:
$0
$0

View file

@ -4,4 +4,4 @@
# group : control structure
# --
with ${1:expr}${2: as ${3:alias}}:
$0
$0