Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #81 from xtao/dev
Browse files Browse the repository at this point in the history
Use non-blocking sina
  • Loading branch information
xtao committed Feb 6, 2016
2 parents 4aefe68 + 3e7a16a commit 3fc785a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
7 changes: 0 additions & 7 deletions app_sina.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
import subprocess
from wsgiauth.basic import BasicAuth

from gevent.monkey import get_original
try:
select.poll = get_original('select', 'poll')
except AttributeError:
select.poll = get_original('select', 'kqueue')
subprocess.Popen = get_original('subprocess', 'Popen')

from sina import Sina
from sina.config import DEFAULT_CONFIG

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ WebTest==2.0.20
mock==1.3.0
nose==1.3.7
docutils==0.12
-e git+https://github.com/douban/sina.git@c8dbe938d7238ba44851cca36934b07320b0e143#egg=sina
-e git+https://github.com/douban/sina.git@fd90a60150545bafd491dfd632d0f8212ae4f622#egg=sina
-e git+https://github.com/douban/douban-utils.git@5ca697545da191dab3fbe308e6b6776d8da83bd5#egg=DoubanUtils
-e git+https://github.com/douban/douban-sqlstore.git@d7136b7cac1075f0b285e8c763af2e85124f8b76#egg=DoubanSQLStore
-e git+https://github.com/dongweiming/douban-mc.git@5a0a21cdb73a448eb09a1b657ad80d4941ddb404#egg=DoubanMC
Expand Down
1 change: 1 addition & 0 deletions web.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
import time
import traceback
from gevent import monkey; monkey.patch_all()
from quixote.qwip import QWIP
from quixote.publish import SessionPublisher

Expand Down

0 comments on commit 3fc785a

Please sign in to comment.