本文整理匯總了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)