@@ -482,10 +482,10 @@ def configure_custom(self, config):
482482 c = config .pop ('()' )
483483 if not callable (c ):
484484 c = self .resolve (c )
485- props = config .pop ('.' , None )
486485 # Check for valid identifiers
487- kwargs = {k : config [k ] for k in config if valid_ident (k )}
486+ kwargs = {k : config [k ] for k in config if ( k != '.' and valid_ident (k ) )}
488487 result = c (** kwargs )
488+ props = config .pop ('.' , None )
489489 if props :
490490 for name , value in props .items ():
491491 setattr (result , name , value )
@@ -835,8 +835,7 @@ def configure_handler(self, config):
835835 factory = functools .partial (self ._configure_queue_handler , klass )
836836 else :
837837 factory = klass
838- props = config .pop ('.' , None )
839- kwargs = {k : config [k ] for k in config if valid_ident (k )}
838+ kwargs = {k : config [k ] for k in config if (k != '.' and valid_ident (k ))}
840839 try :
841840 result = factory (** kwargs )
842841 except TypeError as te :
@@ -854,6 +853,7 @@ def configure_handler(self, config):
854853 result .setLevel (logging ._checkLevel (level ))
855854 if filters :
856855 self .add_filters (result , filters )
856+ props = config .pop ('.' , None )
857857 if props :
858858 for name , value in props .items ():
859859 setattr (result , name , value )
0 commit comments