<s> import logging <EOL> from ConfigParser import ConfigParser <EOL> class Context : <EOL> def __init__ ( self , db , logger , arg_namespace ) : <EOL> self . db = db <EOL> self . log = logger <EOL> self . log . debug = logging . debug <EOL> self . localip = None <EOL> self . conf = ConfigParser ( ) <EOL> self . conf . read ( '<STR_LIT>' ) <EOL> for key , value in vars ( arg_namespace ) . iteritems ( ) : <EOL> setattr ( self , key , value ) </s>
