diff options
author | Jonathan Ellis <jbellis@gmail.com> | 2006-08-15 16:26:20 +0000 |
---|---|---|
committer | Jonathan Ellis <jbellis@gmail.com> | 2006-08-15 16:26:20 +0000 |
commit | 78a369ac3a3a2197ddd700f8bc31fab3e2e7d1f7 (patch) | |
tree | ccc6cfbe907b0487df6fedfd0ea7149884b44ae3 /lib/sqlalchemy/util.py | |
parent | 8b313b356e5ba46c892b37fb1105c2de26e4beb2 (diff) | |
download | sqlalchemy-78a369ac3a3a2197ddd700f8bc31fab3e2e7d1f7.tar.gz |
fixes for threadless python compiles
Diffstat (limited to 'lib/sqlalchemy/util.py')
-rw-r--r-- | lib/sqlalchemy/util.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sqlalchemy/util.py b/lib/sqlalchemy/util.py index 1c69f06c9..1778966d4 100644 --- a/lib/sqlalchemy/util.py +++ b/lib/sqlalchemy/util.py @@ -4,7 +4,13 @@ # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php -import thread, threading, weakref, UserList, time, string, inspect, sys, sets +import weakref, UserList, time, string, inspect, sys, sets +try: + import thread, threading +except ImportError: + import dummy_thread as thread + import dummy_threading as threading + from exceptions import * import __builtin__ @@ -296,4 +302,4 @@ def constructor_args(instance, **kwargs): raise AssertionError("instance has no attribute '%s'" % arg) return newparams -
\ No newline at end of file + |