Merge pull request #211 from mengzhuo/master

fix lambda conflict #208 with alter logger.debug into lg
This commit is contained in:
Honza Pokorny 2013-05-28 02:26:40 -07:00
commit 831dbd6ecb

View File

@ -79,7 +79,7 @@ snippet clatin1
snippet cascii snippet cascii
# -*- coding: ascii -*- # -*- coding: ascii -*-
# Lambda # Lambda
snippet lda snippet ld
${1:var} = lambda ${2:vars} : ${3:action} ${1:var} = lambda ${2:vars} : ${3:action}
snippet . snippet .
self. self.
@ -169,7 +169,8 @@ snippet glog
logger = logging.getLogger(${1:__name__}) logger = logging.getLogger(${1:__name__})
snippet le snippet le
logger.error(${1:msg}) logger.error(${1:msg})
snippet ld # conflict with lambda=ld, therefor we change into Logger.debuG
snippet lg
logger.debug(${1:msg}) logger.debug(${1:msg})
snippet lw snippet lw
logger.warning(${1:msg}) logger.warning(${1:msg})