Menu ▾ ▴

error when importing logging.config

2008-06-19
2013-03-15
  • Chaim Krause

    Chaim Krause - 2008-06-19

    I can import logging or import logging.config, but if I attempt to import both, I get a warning for the first that it is an unused import and for the second I get Import redefinition.

    Is this an coding error on my part of a error in PyDev Extensions?

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2008-06-19

      Actually, if you do:

      import logging.config

      You'll already have 'logging' in your namespace, so, you don't need to add another 'import logging'.

      Cheers,

      Fabio