diff twisted/plugins/libervia.py @ 433:bbdbee25123a

import constants.Const as C (according to the coding rules)
author souliane <souliane@mailoo.org>
date Thu, 01 May 2014 11:29:09 +0200
parents 8ecc5a7062e4
children fa3b65b68971
line wrap: on
line diff
--- a/twisted/plugins/libervia.py	Sun Apr 27 18:53:37 2014 +0200
+++ b/twisted/plugins/libervia.py	Thu May 01 11:29:09 2014 +0200
@@ -25,7 +25,7 @@
 
 from xdg.BaseDirectory import save_config_path
 from ConfigParser import SafeConfigParser, NoSectionError, NoOptionError
-from sat.core.constants import Const
+from sat.core.constants import Const as C
 try:
     from libervia_server import Libervia
     opt_params = Libervia.OPT_PARAMETERS
@@ -49,7 +49,7 @@
         if the  options values are the hard-coded ones or if they have been passed on the command line.
         """
         config = SafeConfigParser()
-        config.read(Const.CONFIG_FILES)
+        config.read(C.CONFIG_FILES)
         for index, param in list(enumerate(self.optParameters)):
             # index is only used to not modify the loop variable "param"
             name = param[0]