本文整理汇总了Python中pip.log.logger.INFO属性的典型用法代码示例。如果您正苦于以下问题:Python logger.INFO属性的具体用法?Python logger.INFO怎么用?Python logger.INFO使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类pip.log.logger
的用法示例。
在下文中一共展示了logger.INFO属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pkg_info
# 需要导入模块: from pip.log import logger [as 别名]
# 或者: from pip.log.logger import INFO [as 别名]
def pkg_info(self):
p = FeedParser()
data = self.egg_info_data('PKG-INFO')
if not data:
logger.warn('No PKG-INFO file found in %s' % display_path(self.egg_info_path('PKG-INFO')))
p.feed(data or '')
return p.close()
示例2: _filter
# 需要导入模块: from pip.log import logger [as 别名]
# 或者: from pip.log.logger import INFO [as 别名]
def _filter(self, line):
return (logger.INFO, line)
示例3: _filter_install
# 需要导入模块: from pip.log import logger [as 别名]
# 或者: from pip.log.logger import INFO [as 别名]
def _filter_install(self, line):
level = logger.NOTIFY
for regex in [r'^running .*', r'^writing .*', '^creating .*', '^[Cc]opying .*',
r'^reading .*', r"^removing .*\.egg-info' \(and everything under it\)$",
r'^byte-compiling ',
# Not sure what this warning is, but it seems harmless:
r"^warning: manifest_maker: standard file '-c' not found$"]:
if re.search(regex, line.strip()):
level = logger.INFO
break
return (level, line)