Skip to content

Commit

Permalink
Merge pull request #404 from pigmej/gevent_patches_reorder
Browse files Browse the repository at this point in the history
Reorder gevent.monkey.patch_all()
  • Loading branch information
dshulyak committed Dec 2, 2015
2 parents 7af64a9 + a9bb1ac commit 92a7fa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 8 additions & 0 deletions solar/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
try:
from gevent import monkey
except ImportError:
pass
else:
monkey.patch_all()
from solar.dblayer.gevent_patches import patch_all
patch_all()
9 changes: 0 additions & 9 deletions solar/dblayer/standalone_session_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
"""

try:
from gevent import monkey
except ImportError:
pass
else:
monkey.patch_all()
from solar.dblayer.gevent_patches import patch_all
patch_all()


def create_all():

Expand Down

0 comments on commit 92a7fa3

Please sign in to comment.