# Package:  circuits
# Date:     3rd October 2008
# Author:   James Mills, prologic at shortcircuit dot net dot au

"""Lightweight Event driven and Asynchronous Application Framework

circuits is a **Lightweight** **Event** driven and **Asynchronous**
**Application Framework** for the `Python Programming Language`_
with a strong **Component** Architecture.

:copyright: CopyRight (C) 2004-2013 by James Mills
:license: MIT (See: LICENSE)

.. _Python Programming Language: http://www.python.org/
"""

__author__ = "James Mills"
__date__ = "24th February 2013"

from .version import version as __version__

from .core import Event
from .core import task, Worker
from .core import handler, reprhandler, BaseComponent, Component
from .core import Debugger, Bridge, Loader, Manager, Timer, TimeoutError

# flake8: noqa

# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
	__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
	from pkgutil import extend_path
	__path__ = extend_path(__path__, __name__)
	import os
	for _path in __path__:
		_path = os.path.join(_path, '__init__.py')
		if _path != __file__ and os.path.exists(_path):
			with open(_path) as fd:
				exec fd in globals()
	del os, extend_path, _path, fd

@@ -1175,16 +1175,42 @@
 _path):%0A
+%09%09%09from .six import exec_%0A
 %09%09%09with 
@@ -1240,14 +1240,13 @@
 exec
- fd in
+_(fd,
  glo
@@ -1251,16 +1251,17 @@
 lobals()
+)
 %0A%09del os
@@ -1284,9 +1284,16 @@
 path, fd
+, exec_
 %0A

fix python3 compatibility