@@ -24,8 +24,7 @@ snippet docs
24
24
25
25
# Unittest skip
26
26
snippet sk " skip unittests" b
27
- @unittest.skip(${1: skip_reason } )
28
- endsnippet
27
+ @unittest.skip(${1: skip_reason } )
29
28
30
29
snippet wh
31
30
while ${1: condition } :
@@ -241,7 +240,7 @@ snippet addaarg
241
240
parser.add_argument("${0: arg } ", "${1: long_arg } ", action="${2: store_true } ", default=${3: False } , help="${4: Help text } ")
242
241
snippet pargs
243
242
"${VISUAL:return }"parser.parse_args()
244
-
243
+
245
244
# logging
246
245
# glog = get log
247
246
snippet glog
@@ -314,14 +313,14 @@ snippet contain "methods for emulating a container type" b
314
313
315
314
def __contains__(self, item):
316
315
${7: pass }
317
-
316
+
318
317
snippet context " context manager methods" b
319
318
def __enter__(self):
320
319
${1: pass }
321
320
322
321
def __exit__(self, exc_type, exc_value, traceback):
323
322
${2: pass }
324
-
323
+
325
324
snippet attr " methods for customizing attribute access" b
326
325
def __getattr__(self, name):
327
326
${1: pass }
@@ -331,7 +330,7 @@ snippet attr "methods for customizing attribute access" b
331
330
332
331
def __delattr__(self, name):
333
332
${3: pass }
334
-
333
+
335
334
snippet desc " methods implementing descriptors" b
336
335
def __get__(self, instance, owner):
337
336
${1: pass }
@@ -341,7 +340,7 @@ snippet desc "methods implementing descriptors" b
341
340
342
341
def __delete__(self, instance):
343
342
${3: pass }
344
-
343
+
345
344
snippet cmp " methods implementing rich comparison"
346
345
def __eq__(self, other):
347
346
${1: pass }
@@ -363,7 +362,7 @@ snippet cmp "methods implementing rich comparison"
363
362
364
363
def __cmp__(self, other):
365
364
${7: pass }
366
-
365
+
367
366
snippet repr " methods implementing string representation"
368
367
def __repr__(self):
369
368
${1: pass }
@@ -373,7 +372,7 @@ snippet repr "methods implementing string representation"
373
372
374
373
def __unicode__(self):
375
374
${3: pass }
376
-
375
+
377
376
# note: reflected operands and augmented arithmeitc assignements have been
378
377
# intentionally ommited to reduce verbosity.
379
378
snippet numeric " methods for emulating a numeric type" b
@@ -454,4 +453,4 @@ snippet numeric "methods for emulating a numeric type" b
454
453
455
454
def __coerce__(self, other):
456
455
${25: pass }
457
-
456
+
0 commit comments