remove _interactive_mode var as it's only used once
@@ -87,7 +87,7 @@ import sys
import logging
logger = logging.getLogger(__name__)
-_interactive_mode = False
+
try:
import __main__
@@ -97,9 +97,9 @@ try:
and sys.stderr.isatty()
):
# show log messages in interactive mode
- _interactive_mode = True
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
+ logger.info("RDFLib Version: %s" % __version__)
del __main__
except ImportError:
# Main already imported from elsewhere
@@ -108,7 +108,6 @@ except ImportError:
warnings.warn("__main__ already imported", ImportWarning)
del warnings
-del _interactive_mode
del sys
