Skip to content

Commit 470947c

Browse files
committed
Fix format for Python 2.6
'{}' type format string is supported from Python 2.7. See: http://docs.python.org/library/string.html#format-string-syntax
1 parent a618d98 commit 470947c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

githubnotifier.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def __init__(self, user, token, interval, max_items, hyperlinks, blog,
275275
def acquire_items(self, config, category, items):
276276
config_items = config.get(category, items)
277277
aquired_items = [item for item in config_items.split(',') if item]
278-
self.logger.info("Items in {} {}: {}".format(category, items, aquired_items))
278+
self.logger.info(
279+
"Items in {0} {1}: {2}".format(category, items, aquired_items))
279280
return aquired_items
280281

281282
def run(self):
@@ -481,11 +482,11 @@ def main():
481482
sys.exit(1)
482483

483484
if not os.path.isdir(CACHE_DIR):
484-
logger.warning('Making the cache directory {}'.format(CACHE_DIR))
485+
logger.warning('Making the cache directory {0}'.format(CACHE_DIR))
485486
os.makedirs(CACHE_DIR)
486487

487488
if not os.path.isfile(CONFIG_FILE) or options.new_config:
488-
logger.warning('Making the config file {}'.format(CONFIG_FILE))
489+
logger.warning('Making the config file {0}'.format(CONFIG_FILE))
489490
config_file = open(CONFIG_FILE, 'w')
490491
config_file.write('[important] # Separated by commas, projects (can' \
491492
' be either <user>/<project> or <project>)\n')

0 commit comments

Comments
 (0)