Пример #1
0
 def __init__(self, config):
     PageDealer.__init__(self, config)
     path = self._path + '.' + config['round_interval']
     self._fo = open(path, self._mode)
     if os.path.getsize(path) < 10:
         self._fo.write('%s\n' % EuropePage.columns)
     self._foExcept = open(config['except_path'], config['except_mode'])
Пример #2
0
 def __init__(self, config):
     PageDealer.__init__(self, config)
     path = self._path + "." + config["round_interval"]
     self._fo = open(path, self._mode)
     if os.path.getsize(path) < 10:
         self._fo.write("%s\n" % EuropePage.columns)