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

Commit

Permalink
Use non-blocking sina
Browse files Browse the repository at this point in the history
  • Loading branch information
xtao committed Dec 9, 2015
1 parent 4865a7e commit 8d4727f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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 requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ oauth2==1.5.211
Trolly==0.1.0
-e git+https://github.com/qingfeng/misaka@2fbe52692e8f304eea9d8925fd2a857916ff0ea5#egg=misaka
mikoto==0.0.4
-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

0 comments on commit 8d4727f

Please sign in to comment.