changeset 28:022c785c98bd draft

use syntax shortcut Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author Changaco <changaco ατ changaco δοτ net>
date Sat, 04 Aug 2012 19:07:51 +0200
parents 75563016f269
children ab4ef352ae36
files feed-push
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/feed-push
+++ b/feed-push
@@ -130,10 +130,9 @@ def open_config(path, event):
         if (not path.endswith('.conf') or path[0] == '.') and not hasattr(global_args.config, 'read'):
             return log('ignoring '+path+' (not a valid config file name)')
         try:
-            config_fd = open(path)
+            config_fd = path_to_config_fd[path] = open(path)
         except IOError as e:
             return log('failed to open "'+line+'" '+str(e))
-        path_to_config_fd[path] = config_fd
         parse_config_file(config_fd)
     else:
         ignore_event(path, event)