Skip to content

Commit d55c8c0

Browse files
committed
some samples' code miss some import
1 parent ad09165 commit d55c8c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tutorial.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ Greenlet.
425425

426426
<pre>
427427
<code class="python">
428+
import gevent
428429
from gevent import Timeout
429430

430431
seconds = 10
@@ -899,8 +900,10 @@ and its derivative servers are known to perform well at scale.
899900
## Long Polling
900901

901902
<pre>
902-
<code class="python">from gevent.queue import Queue, Empty
903+
<code class="python">import gevent
904+
from gevent.queue import Queue, Empty
903905
from gevent.pywsgi import WSGIServer
906+
import simplejson as json
904907

905908
data_source = Queue()
906909

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy