本文整理汇总了Python中Settings.Settings.subcounter方法的典型用法代码示例。如果您正苦于以下问题:Python Settings.subcounter方法的具体用法?Python Settings.subcounter怎么用?Python Settings.subcounter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings.Settings
的用法示例。
在下文中一共展示了Settings.subcounter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ParserAssigner
# 需要导入模块: from Settings import Settings [as 别名]
# 或者: from Settings.Settings import subcounter [as 别名]
if fl[0] == 'file':
if not IO.all_readable(fl[1:]):
continue
f = ParserAssigner().typeByExt(fl)
else:
f = ParserAssigner().typeByCommandLine(fl)
f.file = fl[1]
try:
f.parse()
f.postprocess()
b1, b2 = f.webData()
except settings.exc_type, e:
log.error('Parsing %s failed!' % (str(fl)))
continue
wb1 = WebPage.addLeftDiv(b1)
wb2 = WebPage.addRightDiv(b2)
WebPage.addDivRowWrapper(str(f.file)+web.brn+wb1,wb2)
if settings.usage:
f.usage()
settings.counter += 1
settings.subcounter = 0
# Remove cube files from terse-pics
# IO.cleanCube(absolute_tersepic)
WebPage.finalize()
WebPage.write()