Skip to content

Commit 9ccd25a

Browse files
committed
Correct syntax error in python snippets
Authored at the Royal Festival Hall. It's a lovely day to be wandering around London!
1 parent a742d86 commit 9ccd25a

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

snippets/python.snippets

+9-10
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ snippet docs
2424

2525
# Unittest skip
2626
snippet sk "skip unittests" b
27-
@unittest.skip(${1:skip_reason})
28-
endsnippet
27+
@unittest.skip(${1:skip_reason})
2928

3029
snippet wh
3130
while ${1:condition}:
@@ -241,7 +240,7 @@ snippet addaarg
241240
parser.add_argument("${0:arg}", "${1:long_arg}", action="${2:store_true}", default=${3:False}, help="${4:Help text}")
242241
snippet pargs
243242
"${VISUAL:return }"parser.parse_args()
244-
243+
245244
# logging
246245
# glog = get log
247246
snippet glog
@@ -314,14 +313,14 @@ snippet contain "methods for emulating a container type" b
314313

315314
def __contains__(self, item):
316315
${7:pass}
317-
316+
318317
snippet context "context manager methods" b
319318
def __enter__(self):
320319
${1:pass}
321320

322321
def __exit__(self, exc_type, exc_value, traceback):
323322
${2:pass}
324-
323+
325324
snippet attr "methods for customizing attribute access" b
326325
def __getattr__(self, name):
327326
${1:pass}
@@ -331,7 +330,7 @@ snippet attr "methods for customizing attribute access" b
331330

332331
def __delattr__(self, name):
333332
${3:pass}
334-
333+
335334
snippet desc "methods implementing descriptors" b
336335
def __get__(self, instance, owner):
337336
${1:pass}
@@ -341,7 +340,7 @@ snippet desc "methods implementing descriptors" b
341340

342341
def __delete__(self, instance):
343342
${3:pass}
344-
343+
345344
snippet cmp "methods implementing rich comparison"
346345
def __eq__(self, other):
347346
${1:pass}
@@ -363,7 +362,7 @@ snippet cmp "methods implementing rich comparison"
363362

364363
def __cmp__(self, other):
365364
${7:pass}
366-
365+
367366
snippet repr "methods implementing string representation"
368367
def __repr__(self):
369368
${1:pass}
@@ -373,7 +372,7 @@ snippet repr "methods implementing string representation"
373372

374373
def __unicode__(self):
375374
${3:pass}
376-
375+
377376
# note: reflected operands and augmented arithmeitc assignements have been
378377
# intentionally ommited to reduce verbosity.
379378
snippet numeric "methods for emulating a numeric type" b
@@ -454,4 +453,4 @@ snippet numeric "methods for emulating a numeric type" b
454453

455454
def __coerce__(self, other):
456455
${25:pass}
457-
456+

0 commit comments

Comments
 (0)