summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Shepelev <temotor@gmail.com>2021-11-16 22:59:27 +0300
committerSergey Shepelev <temotor@gmail.com>2021-11-16 22:59:27 +0300
commitabf382b8f450751327895937ec3aa273cc7358f0 (patch)
tree6ba8ec2d3dba783f2a26923b9452cf9e5bc2f3cd
parent09acfdeb64ca04849aef56a3fd29a698afca0d3b (diff)
downloadeventlet-gh-pages.tar.gz
Website built from v0.33.0gh-pages
-rw-r--r--doc/_sources/authors.txt4
-rw-r--r--doc/_sources/basic_usage.txt83
-rw-r--r--doc/_sources/changelog.rst.txt8
-rw-r--r--doc/_sources/changelog.txt615
-rw-r--r--doc/_sources/design_patterns.txt112
-rw-r--r--doc/_sources/environment.txt21
-rw-r--r--doc/_sources/examples.txt106
-rw-r--r--doc/_sources/history.txt10
-rw-r--r--doc/_sources/hubs.txt54
-rw-r--r--doc/_sources/index.txt55
-rw-r--r--doc/_sources/modules.txt20
-rw-r--r--doc/_sources/modules/backdoor.txt27
-rw-r--r--doc/_sources/modules/corolocal.txt6
-rw-r--r--doc/_sources/modules/db_pool.txt61
-rw-r--r--doc/_sources/modules/debug.txt5
-rw-r--r--doc/_sources/modules/event.txt5
-rw-r--r--doc/_sources/modules/greenpool.txt6
-rw-r--r--doc/_sources/modules/greenthread.txt5
-rw-r--r--doc/_sources/modules/pools.txt5
-rw-r--r--doc/_sources/modules/queue.txt5
-rw-r--r--doc/_sources/modules/semaphore.txt11
-rw-r--r--doc/_sources/modules/timeout.txt92
-rw-r--r--doc/_sources/modules/websocket.txt36
-rw-r--r--doc/_sources/modules/wsgi.txt130
-rw-r--r--doc/_sources/modules/zmq.txt43
-rw-r--r--doc/_sources/patching.txt70
-rw-r--r--doc/_sources/ssl.txt58
-rw-r--r--doc/_sources/testing.txt94
-rw-r--r--doc/_sources/threading.txt30
-rw-r--r--doc/_sources/zeromq.txt29
-rw-r--r--doc/_static/documentation_options.js2
-rw-r--r--doc/_static/jquery-1.11.1.js10308
-rw-r--r--doc/authors.html6
-rw-r--r--doc/basic_usage.html12
-rw-r--r--doc/changelog.html457
-rw-r--r--doc/design_patterns.html6
-rw-r--r--doc/environment.html6
-rw-r--r--doc/examples.html6
-rw-r--r--doc/genindex.html6
-rw-r--r--doc/history.html6
-rw-r--r--doc/hubs.html6
-rw-r--r--doc/index.html6
-rw-r--r--doc/modules.html6
-rw-r--r--doc/modules/backdoor.html6
-rw-r--r--doc/modules/corolocal.html6
-rw-r--r--doc/modules/dagpool.html6
-rw-r--r--doc/modules/db_pool.html6
-rw-r--r--doc/modules/debug.html8
-rw-r--r--doc/modules/event.html10
-rw-r--r--doc/modules/greenpool.html8
-rw-r--r--doc/modules/greenthread.html6
-rw-r--r--doc/modules/pools.html8
-rw-r--r--doc/modules/queue.html12
-rw-r--r--doc/modules/semaphore.html12
-rw-r--r--doc/modules/timeout.html10
-rw-r--r--doc/modules/websocket.html6
-rw-r--r--doc/modules/wsgi.html6
-rw-r--r--doc/modules/zmq.html6
-rw-r--r--doc/objects.invbin2828 -> 2828 bytes
-rw-r--r--doc/patching.html8
-rw-r--r--doc/py-modindex.html6
-rw-r--r--doc/search.html6
-rw-r--r--doc/searchindex.js2
-rw-r--r--doc/ssl.html8
-rw-r--r--doc/testing.html6
-rw-r--r--doc/threading.html6
-rw-r--r--doc/zeromq.html6
67 files changed, 358 insertions, 12445 deletions
diff --git a/doc/_sources/authors.txt b/doc/_sources/authors.txt
deleted file mode 100644
index a789d1a..0000000
--- a/doc/_sources/authors.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Authors
-=======
-
-.. include:: ../AUTHORS \ No newline at end of file
diff --git a/doc/_sources/basic_usage.txt b/doc/_sources/basic_usage.txt
deleted file mode 100644
index 0a974f3..0000000
--- a/doc/_sources/basic_usage.txt
+++ /dev/null
@@ -1,83 +0,0 @@
-Basic Usage
-=============
-
-If it's your first time to Eventlet, you may find the illuminated examples in the :ref:`design-patterns` document to be a good starting point.
-
-Eventlet is built around the concept of green threads (i.e. coroutines, we use the terms interchangeably) that are launched to do network-related work. Green threads differ from normal threads in two main ways:
-
-* Green threads are so cheap they are nearly free. You do not have to conserve green threads like you would normal threads. In general, there will be at least one green thread per network connection.
-* Green threads cooperatively yield to each other instead of preemptively being scheduled. The major advantage from this behavior is that shared data structures don't need locks, because only if a yield is explicitly called can another green thread have access to the data structure. It is also possible to inspect primitives such as queues to see if they have any pending data.
-
-Primary API
-===========
-
-The design goal for Eventlet's API is simplicity and readability. You should be able to read its code and understand what it's doing. Fewer lines of code are preferred over excessively clever implementations. `Like Python itself <http://www.python.org/dev/peps/pep-0020/>`_, there should be one, and only one obvious way to do it in Eventlet!
-
-Though Eventlet has many modules, much of the most-used stuff is accessible simply by doing ``import eventlet``. Here's a quick summary of the functionality available in the ``eventlet`` module, with links to more verbose documentation on each.
-
-Greenthread Spawn
------------------------
-
-.. function:: eventlet.spawn(func, *args, **kw)
-
- This launches a greenthread to call *func*. Spawning off multiple greenthreads gets work done in parallel. The return value from ``spawn`` is a :class:`greenthread.GreenThread` object, which can be used to retrieve the return value of *func*. See :func:`spawn <eventlet.greenthread.spawn>` for more details.
-
-.. function:: eventlet.spawn_n(func, *args, **kw)
-
- The same as :func:`spawn`, but it's not possible to know how the function terminated (i.e. no return value or exceptions). This makes execution faster. See :func:`spawn_n <eventlet.greenthread.spawn_n>` for more details.
-
-.. function:: eventlet.spawn_after(seconds, func, *args, **kw)
-
- Spawns *func* after *seconds* have elapsed; a delayed version of :func:`spawn`. To abort the spawn and prevent *func* from being called, call :meth:`GreenThread.cancel` on the return value of :func:`spawn_after`. See :func:`spawn_after <eventlet.greenthread.spawn_after>` for more details.
-
-Greenthread Control
------------------------
-
-.. function:: eventlet.sleep(seconds=0)
-
- Suspends the current greenthread and allows others a chance to process. See :func:`sleep <eventlet.greenthread.sleep>` for more details.
-
-.. class:: eventlet.GreenPool
-
- Pools control concurrency. It's very common in applications to want to consume only a finite amount of memory, or to restrict the amount of connections that one part of the code holds open so as to leave more for the rest, or to behave consistently in the face of unpredictable input data. GreenPools provide this control. See :class:`GreenPool <eventlet.greenpool.GreenPool>` for more on how to use these.
-
-.. class:: eventlet.GreenPile
-
- GreenPile objects represent chunks of work. In essence a GreenPile is an iterator that can be stuffed with work, and the results read out later. See :class:`GreenPile <eventlet.greenpool.GreenPile>` for more details.
-
-.. class:: eventlet.Queue
-
- Queues are a fundamental construct for communicating data between execution units. Eventlet's Queue class is used to communicate between greenthreads, and provides a bunch of useful features for doing that. See :class:`Queue <eventlet.queue.Queue>` for more details.
-
-.. class:: eventlet.Timeout
-
- This class is a way to add timeouts to anything. It raises *exception* in the current greenthread after *timeout* seconds. When *exception* is omitted or ``None``, the Timeout instance itself is raised.
-
- Timeout objects are context managers, and so can be used in with statements.
- See :class:`Timeout <eventlet.timeout.Timeout>` for more details.
-
-Patching Functions
----------------------
-
-.. function:: eventlet.import_patched(modulename, *additional_modules, **kw_additional_modules)
-
- Imports a module in a way that ensures that the module uses "green" versions of the standard library modules, so that everything works nonblockingly. The only required argument is the name of the module to be imported. For more information see :ref:`import-green`.
-
-.. function:: eventlet.monkey_patch(all=True, os=False, select=False, socket=False, thread=False, time=False)
-
- Globally patches certain system modules to be greenthread-friendly. The keyword arguments afford some control over which modules are patched. If *all* is True, then all modules are patched regardless of the other arguments. If it's False, then the rest of the keyword arguments control patching of specific subsections of the standard library. Most patch the single module of the same name (os, time, select). The exceptions are socket, which also patches the ssl module if present; and thread, which patches thread, threading, and Queue. It's safe to call monkey_patch multiple times. For more information see :ref:`monkey-patch`.
-
-Network Convenience Functions
-------------------------------
-
-.. autofunction:: eventlet.connect
-
-.. autofunction:: eventlet.listen
-
-.. autofunction:: eventlet.wrap_ssl
-
-.. autofunction:: eventlet.serve
-
-.. autoclass:: eventlet.StopServe
-
-These are the basic primitives of Eventlet; there are a lot more out there in the other Eventlet modules; check out the :doc:`modules`.
diff --git a/doc/_sources/changelog.rst.txt b/doc/_sources/changelog.rst.txt
index 5551849..b6b1162 100644
--- a/doc/_sources/changelog.rst.txt
+++ b/doc/_sources/changelog.rst.txt
@@ -1,3 +1,11 @@
+0.33.0
+======
+* green.thread: unlocked Lock().release() should raise exception, returned True https://github.com/eventlet/eventlet/issues/697
+* wsgi: Don't break HTTP framing during 100-continue handling https://github.com/eventlet/eventlet/pull/578
+* Python 3.10 partial support https://github.com/eventlet/eventlet/pull/715
+* greendns: Create a DNS resolver lazily rather than on import https://github.com/eventlet/eventlet/issues/462
+* ssl: GreenSSLContext minimum_version and maximum_version setters https://github.com/eventlet/eventlet/issues/726
+
0.32.0
======
* greendns: compatibility with dnspython v2 https://github.com/eventlet/eventlet/pull/722
diff --git a/doc/_sources/changelog.txt b/doc/_sources/changelog.txt
deleted file mode 100644
index 4d9c94d..0000000
--- a/doc/_sources/changelog.txt
+++ /dev/null
@@ -1,615 +0,0 @@
-0.20.1
-======
-* dns: try unqualified queries as top level
-* test_import_patched_defaults bended to play with pyopenssl>=16.1.0
-* Explicit environ flag for importing eventlet.__version__ without ignoring import errors
-* Type check Semaphore, GreenPool arguments; Thanks to Matthew D. Pagel
-
-0.20.0
-======
-* IMPORTANT: removed select.poll() function
-* DNS resolving is always green with dnspython bundled in
-* greenio: only trampoline when we block
-* convenience: listen() sets SO_REUSEPORT when available; Thanks to Zhengwei Gao
-* ssl: Fix "TypeError: read() argument 2 must be read-write bytes-like object, not None"
-* greenio: _recv_loop behaviour with recv_into on closed sock
-* ipv6: getaddrinfo would fail with scope index
-* green.zmq: Support {send,recv}_{string,json,pyobj} wrappers
-* greendns: Return answers from /etc/hosts despite nameserver errors
-* patcher: fixed green existing locks fail (Python3)
-* Add DAGPool, a dependency-driven greenthread pool
-* wsgi: Unix socket address representation; Thanks to Samuel Merritt
-* tpool: isolate internal socket from default timeout; Thanks to Alex Villacís Lasso
-* wsgi: only skip Content-Type and Content-Length headers (GH-327)
-* wsgi: 400 on blank Content-Length headers (GH-334)
-* greenio: makefile related pypy socket ref counting
-* ssl: Fix recv_into blocking when reading chunks of data
-* websocket: support Gunicorn environ['gunicorn.socket']
-
-0.19.0
-======
-* ssl: IMPORTANT DoS FIX do_handshake_connect=False in server accept(); Thanks to Garth Mollett
-* patcher: patch existing threading locks; Thanks to Alexis Lee
-* green.urllib2: missing patched ssl module; Thanks to Collin RM Stocks
-* wsgi: environ[headers_raw] tuple of unmodified name: value pairs
-* test against modern pyopenssl 16.0.0 for Python 2.7+; Thanks to Victor Stinner
-* wsgi: document compatibility with python `logging`
-* Minor grammatical improvements and typo fixes to the docs; Thanks to Steven Erenst
-
-0.18.4
-======
-* wsgi: change TCP_NODELAY to TCP_QUICKACK, ignore socket error when not available
-
-0.18.3
-======
-* wsgi: Use buffered writes - fixes partial socket.send without custom
- writelines(); Github issue #295
-* wsgi: TCP_NODELAY enabled by default
-
-0.18.2
-======
-* wsgi: Fix data loss on partial writes (socket.send); Thanks to Jakub Stasiak
-
-0.18.1
-======
-* IMPORTANT: do not use Eventlet 0.18.0 and 0.18.1
-* patcher: Fix AttributeError in subprocess communicate()
-* greenio: Fix "TypeError: an integer is required" in sendto()
-
-0.18.0
-======
-* IMPORTANT: do not use Eventlet 0.18.0 and 0.18.1
-* greenio: Fixed a bug that could cause send() to start an endless loop on
- ENOTCONN; Thanks to Seyeong Kim
-* wsgi: Fixed UNIX socket address being trimmed in "wsgi starting" log; Thanks
- to Ihar Hrachyshka
-* ssl: Ported eventlet.green.OpenSSL to Python 3; Thanks to Victor Stinner
-* greenio: Made read() support buflen=-1 and added readall() (Python 3);
- Thanks to David Szotten
-* wsgi: Made the error raised in case of chunk read failures more precise (this
- should be backwards compatible as the new exception class,
- wsgi.ChunkReadError, is a subclass of ValueError which was being used there
- before); Thanks to Samuel Merritt
-* greenio: Fixed socket.recv() sometimes returning str instead of bytes on
- Python 3; Thanks to Janusz Harkot
-* wsgi: Improved request body discarding
-* websocket: Fixed TypeError on empty websocket message (Python 3); Thanks to
- Fukuchi Daisuke
-* subprocess: Fixed universal_newlines support
-* wsgi: Output of 0-byte chunks is now suppressed; Thanks to Samuel Merritt
-* Improved the documentation; Thanks to Ramakrishnan G, ashutosh-mishra and
- Azhar Hussain
-* greenio: Changed GreenFileIO.write() (Python 3) to always write all data to
- match the behavior on Python 2; Thanks to Victor Stinner
-* subprocess: Fixed missing subprocess.mswindows attribute on Python 3.5;
- Thanks to Josh VanderLinden
-* ssl/monkey patching: Fixed a bug that would cause merely importing eventlet
- to monkey patch the ssl module; Thanks to David Szotten
-* documentation: Added support for building plain text documentation; thanks
- to Levente Polyak
-* greenio: Fixed handling blocking IO errors in various GreenSocket methods;
- Thanks to Victor Stinner
-* greenio: Fixed GreenPipe ignoring the bufsize parameter on Python 2; Thanks
- to Phus Lu
-* backdoor: Added Unix and IPv6 socket support; Thanks to Eric Urban
-
-Backwards incompatible:
-
-* monkey patching: The following select methods and selector classes are now
- removed, instead of being left in their respective modules after patching
- even though they are not green (this also fixes HTTPServer.serve_forever()
- blocking whole process on Python 3):
-
- * select.poll
- * select.epoll
- * select.devpoll
- * select.kqueue
- * select.kevent
- * selectors.PollSelector
- * selectors.EpollSelector
- * selectors.DevpollSelector
- * selectors.KqueueSelector
-
- Additionally selectors.DefaultSelector points to a green SelectSelector
-
-* greenio: Fixed send() to no longer behave like sendall() which makes it
- consistent with Python standard library and removes a source of very subtle
- errors
-
-0.17.4
-======
-* ssl: incorrect initalization of default context; Thanks to stuart-mclaren
-
-0.17.3
-======
-* green.thread: Python3.3+ fixes; Thanks to Victor Stinner
-* Semaphore.acquire() accepts timeout=-1; Thanks to Victor Stinner
-
-0.17.2
-======
-* wsgi: Provide python logging compatibility; Thanks to Sean Dague
-* greendns: fix premature connection closing in DNS proxy; Thanks to Tim Simmons
-* greenio: correct fd close; Thanks to Antonio Cuni and Victor Sergeyev
-* green.ssl: HTTPS client Python 2.7.9+ compatibility
-* setup: tests.{isolated,manual} polluted top-level packages
-
-0.17.1
-======
-* greendns: fix dns.name import and Python3 compatibility
-
-0.17
-====
-* Full Python3 compatibility; Thanks to Jakub Stasiak
-* greendns: IPv6 support, improved handling of /etc/hosts; Thanks to Floris Bruynooghe
-* tpool: make sure we return results during killall; Thanks to David Szotten
-* semaphore: Don't hog a semaphore if someone else is waiting for it; Thanks to Shaun Stanworth
-* green.socket: create_connection() was wrapping all exceptions in socket.error; Thanks to Donagh McCabe
-* Make sure SSL retries are done using the exact same data buffer; Thanks to Lior Neudorfer
-* greenio: shutdown already closed sockets without error; Thanks to David Szotten
-
-0.16.1
-======
-* Wheel build 0.16.0 incorrectly shipped removed module eventlet.util.
-
-0.16.0
-======
-* Fix SSL socket wrapping and Python 2.7.9 compatibility; Thanks to Jakub Stasiak
-* Fix monkey_patch() on Python 3; Thanks to Victor Stinner
-* Fix "maximum recursion depth exceeded in GreenSocket.__del__"; Thanks to Jakub Stasiak
-* db_pool: BaseConnectionPool.clear updates .current_size #139; Thanks to Andrey Gubarev
-* Fix __str__ method on the TimeoutExpired exception class.; Thanks to Tomaz Muraus
-* hubs: drop Twisted support
-* Removed deprecated modules: api, most of coros, pool, proc, processes and util
-* Improved Python 3 compatibility (including patch by raylu); Thanks to Jakub Stasiak
-* Allow more graceful shutdown of wsgi server; Thanks to Stuart McLaren
-* wsgi.input: Make send_hundred_continue_headers() a public API; Thanks to Tushar Gohad
-* tpool: Windows compatibility, fix ResourceWarning. Thanks to Victor Stinner
-* tests: Fix timers not cleaned up on MySQL test skips; Thanks to Corey Wright
-
-0.15.2
-======
-* greenio: fixed memory leak, introduced in 0.15.1; Thanks to Michael Kerrin, Tushar Gohad
-* wsgi: Support optional headers w/ "100 Continue" responses; Thanks to Tushar Gohad
-
-0.15.1
-======
-* greenio: Fix second simultaneous read (parallel paramiko issue); Thanks to Jan Grant, Michael Kerrin
-* db_pool: customizable connection cleanup function; Thanks to Avery Fay
-
-0.15
-====
-* Python3 compatibility -- **not ready yet**; Thanks to Astrum Kuo, Davanum Srinivas, Jakub Stasiak, Victor Sergeyev
-* coros: remove Actor which was deprecated in 2010-01
-* saranwrap: remove saranwrap which was deprecated in 2010-02
-* PyPy compatibility fixes; Thanks to Dmitriy Kruglyak, Jakub Stasiak
-* green.profile: accumulate results between runs; Thanks to Zhang Hua
-* greenthread: add .unlink() method; Thanks to Astrum Kuo
-* packaging: Generate universal wheels; Thanks to Jakub Stasiak
-* queue: Make join not wait if there are no unfinished tasks; Thanks to Jakub Stasiak
-* tpool: proxy __enter__, __exit__ fixes Bitbucket-158; Thanks to Eric Urban
-* websockets: Add websockets13 support; handle lack of Upgrade header; Thanks to Edward George
-* wsgi: capitalize_response_headers option
-
-0.14
-====
-* wsgi: handle connection socket timeouts; Thanks to Paul Oppenheim
-* wsgi: close timed out client connections
-* greenio: socket pypy compatibility; Thanks to Alex Gaynor
-* wsgi: env['wsgi.input'] was returning 1 byte strings; Thanks to Eric Urban
-* green.ssl: fix NameError; Github #17; Thanks to Jakub Stasiak
-* websocket: allow "websocket" in lowercase in Upgrade header; Compatibility with current Google Chrome; Thanks to Dmitry Orlov
-* wsgi: allow minimum_chunk_size to be overriden on a per request basis; Thanks to David Goetz
-* wsgi: configurable socket_timeout
-
-0.13
-====
-* hubs: kqueue support! Thanks to YAMAMOTO Takashi, Edward George
-* greenio: Fix AttributeError on MacOSX; Bitbucket #136; Thanks to Derk Tegeler
-* green: subprocess: Fix subprocess.communicate() block on Python 2.7; Thanks to Edward George
-* green: select: ensure that hub can .wait() at least once before timeout; Thanks to YAMAMOTO Takashi
-* tpool: single request queue to avoid deadlocks; Bitbucket pull request 31,32; Thanks to Edward George
-* zmq: pyzmq 13.x compatibility; Thanks to Edward George
-* green: subprocess: Popen.wait() accepts new `timeout` kwarg; Python 3.3 and RHEL 6.1 compatibility
-* hubs: EVENTLET_HUB can point to external modules; Thanks to Edward George
-* semaphore: support timeout for acquire(); Thanks to Justin Patrin
-* support: do not clear sys.exc_info if can be preserved (greenlet >= 0.3.2); Thanks to Edward George
-* Travis continous integration; Thanks to Thomas Grainger, Jakub Stasiak
-* wsgi: minimum_chunk_size of last Server altered all previous (global variable); Thanks to Jakub Stasiak
-* doc: hubs: Point to the correct function in exception message; Thanks to Floris Bruynooghe
-
-0.12
-====
-* zmq: Fix 100% busy CPU in idle after .bind(PUB) (thanks to Geoff Salmon)
-* greenio: Fix socket.settimeout() did not switch back to blocking mode (thanks to Peter Skirko)
-* greenio: socket.dup() made excess fcntl syscalls (thanks to Peter Portante)
-* setup: Remove legacy --without-greenlet option and unused httplib2 dependency (thanks to Thomas Grainger)
-* wsgi: environ[REMOTE_PORT], also available in log_format, log accept event (thanks to Peter Portante)
-* tests: Support libzmq 3.0 SNDHWM option (thanks to Geoff Salmon)
-
-0.11
-====
-* ssl: Fix 100% busy CPU in socket.sendall() (thanks to Raymon Lu)
-* zmq: Return linger argument to Socket.close() (thanks to Eric Windisch)
-* tests: SSL tests were always skipped due to bug in skip_if_no_ssl decorator
-
-0.10
-====
-* greenio: Fix relative seek() (thanks to AlanP)
-* db_pool: Fix pool.put() TypeError with min_size > 1 (thanks to Jessica Qi)
-* greenthread: Prevent infinite recursion with linking to current greenthread (thanks to Edward George)
-* zmq: getsockopt(EVENTS) wakes correct threads (thanks to Eric Windisch)
-* wsgi: Handle client disconnect while sending response (thanks to Clay Gerrard)
-* hubs: Ensure that new hub greenlet is parent of old one (thanks to Edward George)
-* os: Fix waitpid() returning (0, 0) (thanks to Vishvananda Ishaya)
-* tpool: Add set_num_threads() method to set the number of tpool threads (thanks to David Ibarra)
-* threading, zmq: Fix Python 2.5 support (thanks to Floris Bruynooghe)
-* tests: tox configuration for all supported Python versions (thanks to Floris Bruynooghe)
-* tests: Fix zmq._QueueLock test in Python2.6
-* tests: Fix patcher_test on Darwin (/bin/true issue) (thanks to Edward George)
-* tests: Skip SSL tests when not available (thanks to Floris Bruynooghe)
-* greenio: Remove deprecated GreenPipe.xreadlines() method, was broken anyway
-
-0.9.17
-======
-* ZeroMQ support calling send and recv from multiple greenthreads (thanks to Geoff Salmon)
-* SSL: unwrap() sends data, and so it needs trampolining (#104 thanks to Brandon Rhodes)
-* hubs.epolls: Fix imports for exception handler (#123 thanks to Johannes Erdfelt)
-* db_pool: Fix .clear() when min_size > 0
-* db_pool: Add MySQL's insert_id() method (thanks to Peter Scott)
-* db_pool: Close connections after timeout, fix get-after-close race condition with using TpooledConnectionPool (thanks to Peter Scott)
-* threading monkey patch fixes (#115 thanks to Johannes Erdfelt)
-* pools: Better accounting of current_size in pools.Pool (#91 thanks to Brett Hoerner)
-* wsgi: environ['RAW_PATH_INFO'] with request path as received from client (thanks to dweimer)
-* wsgi: log_output flag (thanks to Juan Manuel Garcia)
-* wsgi: Limit HTTP header size (thanks to Gregory Holt)
-* wsgi: Configurable maximum URL length (thanks to Tomas Sedovic)
-
-0.9.16
-======
-* SO_REUSEADDR now correctly set.
-
-0.9.15
-======
-* ZeroMQ support without an explicit hub now implemented! Thanks to Zed Shaw for the patch.
-* zmq module supports the NOBLOCK flag, thanks to rfk. (#76)
-* eventlet.wsgi has a debug flag which can be set to false to not send tracebacks to the client (per redbo's request)
-* Recursive GreenPipe madness forestalled by Soren Hansen (#77)
-* eventlet.green.ssl no longer busywaits on send()
-* EEXIST ignored in epoll hub (#80)
-* eventlet.listen's behavior on Windows improved, thanks to Nick Vatamaniuc (#83)
-* Timeouts raised within tpool.execute are propagated back to the caller (thanks again to redbo for being the squeaky wheel)
-
-0.9.14
-======
-* Many fixes to the ZeroMQ hub, which now requires version 2.0.10 or later. Thanks to Ben Ford.
-* ZeroMQ hub no longer depends on pollhub, and thus works on Windows (thanks, Alexey Borzenkov)
-* Better handling of connect errors on Windows, thanks again to Alexey Borzenkov.
-* More-robust Event delivery, thanks to Malcolm Cleaton
-* wsgi.py now distinguishes between an empty query string ("") and a non-existent query string (no entry in environ).
-* wsgi.py handles ipv6 correctly (thanks, redbo)
-* Better behavior in tpool when you give it nonsensical numbers, thanks to R. Tyler for the nonsense. :)
-* Fixed importing on 2.5 (#73, thanks to Ruijun Luo)
-* Hub doesn't hold on to invalid fds (#74, thanks to Edward George)
-* Documentation for eventlet.green.zmq, courtesy of Ben Ford
-
-0.9.13
-======
-* ZeroMQ hub, and eventlet.green.zmq make supersockets green. Thanks to Ben Ford!
-* eventlet.green.MySQLdb added. It's an interface to MySQLdb that uses tpool to make it appear nonblocking
-* Greenthread affinity in tpool. Each greenthread is assigned to the same thread when using tpool, making it easier to work with non-thread-safe libraries.
-* Eventlet now depends on greenlet 0.3 or later.
-* Fixed a hang when using tpool during an import causes another import. Thanks to mikepk for tracking that down.
-* Improved websocket draft 76 compliance, thanks to Nick V.
-* Rare greenthread.kill() bug fixed, which was probably brought about by a bugfix in greenlet 0.3.
-* Easy_installing eventlet should no longer print an ImportError about greenlet
-* Support for serving up SSL websockets, thanks to chwagssd for reporting #62
-* eventlet.wsgi properly sets 'wsgi.url_scheme' environment variable to 'https', and 'HTTPS' to 'on' if serving over ssl
-* Blocking detector uses setitimer on 2.6 or later, allowing for sub-second block detection, thanks to rtyler.
-* Blocking detector is documented now, too
-* socket.create_connection properly uses dnspython for nonblocking dns. Thanks to rtyler.
-* Removed EVENTLET_TPOOL_DNS, nobody liked that. But if you were using it, install dnspython instead. Thanks to pigmej and gholt.
-* Removed _main_wrapper from greenthread, thanks to Ambroff adding keyword arguments to switch() in 0.3!
-
-0.9.12
-======
-* Eventlet no longer uses the Twisted hub if Twisted is imported -- you must call eventlet.hubs.use_hub('twistedr') if you want to use it. This prevents strange race conditions for those who want to use both Twisted and Eventlet separately.
-* Removed circular import in twistedr.py
-* Added websocket multi-user chat example
-* Not using exec() in green modules anymore.
-* eventlet.green.socket now contains all attributes of the stdlib socket module, even those that were left out by bugs.
-* Eventlet.wsgi doesn't call print anymore, instead uses the logfiles for everything (it used to print exceptions in one place).
-* Eventlet.wsgi properly closes the connection when an error is raised
-* Better documentation on eventlet.event.Event.send_exception
-* Adding websocket.html to tarball so that you can run the examples without checking out the source
-
-0.9.10
-======
-* Greendns: if dnspython is installed, Eventlet will automatically use it to provide non-blocking DNS queries. Set the environment variable 'EVENTLET_NO_GREENDNS' if you don't want greendns but have dnspython installed.
-* Full test suite passes on Python 2.7.
-* Tests no longer depend on simplejson for >2.6.
-* Potential-bug fixes in patcher (thanks to Schmir, and thanks to Hudson)
-* Websockets work with query strings (thanks to mcarter)
-* WSGI posthooks that get called after the request completed (thanks to gholt, nice docs, too)
-* Blocking detector merged -- use it to detect places where your code is not yielding to the hub for > 1 second.
-* tpool.Proxy can wrap callables
-* Tweaked Timeout class to do something sensible when True is passed to the constructor
-
-0.9.9
-=====
-* A fix for monkeypatching on systems with psycopg version 2.0.14.
-* Improved support for chunked transfers in wsgi, plus a bunch of tests from schmir (ported from gevent by redbo)
-* A fix for the twisted hub from Favo Yang
-
-0.9.8
-=====
-* Support for psycopg2's asynchronous mode, from Daniele Varrazzo
-* websocket module is now part of core Eventlet with 100% unit test coverage thanks to Ben Ford. See its documentation at http://eventlet.net/doc/modules/websocket.html
-* Added wrap_ssl convenience method, meaning that we truly no longer need api or util modules.
-* Multiple-reader detection code protects against the common mistake of having multiple greenthreads read from the same socket at the same time, which can be overridden if you know what you're doing.
-* Cleaner monkey_patch API: the "all" keyword is no longer necessary.
-* Pool objects have a more convenient constructor -- no more need to subclass
-* amajorek's reimplementation of GreenPipe
-* Many bug fixes, major and minor.
-
-0.9.7
-=====
-* GreenPipe is now a context manager (thanks, quad)
-* tpool.Proxy supports iterators properly
-* bug fixes in eventlet.green.os (thanks, Benoit)
-* much code cleanup from Tavis
-* a few more example apps
-* multitudinous improvements in Py3k compatibility from amajorek
-
-
-0.9.6
-=====
-* new EVENTLET_HUB environment variable allows you to select a hub without code
-* improved GreenSocket and GreenPipe compatibility with stdlib
-* bugfixes on GreenSocket and GreenPipe objects
-* code coverage increased across the board
-* Queue resizing
-* internal DeprecationWarnings largely eliminated
-* tpool is now reentrant (i.e., can call tpool.execute(tpool.execute(foo)))
-* more reliable access to unpatched modules reduces some race conditions when monkeypatching
-* completely threading-compatible corolocal implementation, plus tests and enthusiastic adoption
-* tests stomp on each others' toes less
-* performance improvements in timers, hubs, greenpool
-* Greenlet-aware profile module courtesy of CCP
-* support for select26 module's epoll
-* better PEP-8 compliance and import cleanup
-* new eventlet.serve convenience function for easy TCP servers
-
-
-0.9.5
-=====
-* support psycopg in db_pool
-* smart patcher that does the right patching when importing without needing to understand plumbing of patched module
-* patcher.monkey_patch() method replacing util.wrap_*
-* monkeypatch threading support
-* removed api.named
-* imported timeout module from gevent, replace exc_after and with_timeout()
-* replace call_after with spawn_after; this is so that users don't see the Timer class
-* added cancel() method to GreenThread to support the semantic of "abort if not already in the middle of something"
-* eventlet.green.os with patched read() and write(), etc
-* moved stuff from wrap_pipes_with_coroutine_pipe into green.os
-* eventlet.green.subprocess instead of eventlet.processes
-* improve patching docs, explaining more about patcher and why you'd use eventlet.green
-* better documentation on greenpiles
-* deprecate api.py completely
-* deprecate util.py completely
-* deprecate saranwrap
-* performance improvements in the hubs
-* much better documentation overall
-* new convenience functions: eventlet.connect and eventlet.listen. Thanks, Sergey!
-
-
-0.9.4
-=====
-* Deprecated coros.Queue and coros.Channel (use queue.Queue instead)
-* Added putting and getting methods to queue.Queue.
-* Added eventlet.green.Queue which is a greened clone of stdlib Queue, along with stdlib tests.
-* Changed __init__.py so that the version number is readable even if greenlet's not installed.
-* Bugfixes in wsgi, greenpool
-
-0.9.3
-=====
-
-* Moved primary api module to __init__ from api. It shouldn't be necessary to import eventlet.api anymore; import eventlet should do the same job.
-* Proc module deprecated in favor of greenthread
-* New module greenthread, with new class GreenThread.
-* New GreenPool class that replaces pool.Pool.
-* Deprecated proc module (use greenthread module instead)
-* tpooled gethostbyname is configurable via environment variable EVENTLET_TPOOL_GETHOSTBYNAME
-* Removed greenio.Green_fileobject and refactored the code therein to be more efficient. Only call makefile() on sockets now; makeGreenFile() is deprecated. The main loss here is that of the readuntil method. Also, Green_fileobjects used to be auto-flushing; flush() must be called explicitly now.
-* Added epoll support
-* Improved documentation across the board.
-* New queue module, API-compatible with stdlib Queue
-* New debug module, used for enabling verbosity within Eventlet that can help debug applications or Eventlet itself.
-* Bugfixes in tpool, green.select, patcher
-* Deprecated coros.execute (use eventlet.spawn instead)
-* Deprecated coros.semaphore (use semaphore.Semaphore or semaphore.BoundedSemaphore instead)
-* Moved coros.BoundedSemaphore to semaphore.BoundedSemaphore
-* Moved coros.Semaphore to semaphore.Semaphore
-* Moved coros.event to event.Event
-* Deprecated api.tcp_listener, api.connect_tcp, api.ssl_listener
-* Moved get_hub, use_hub, get_default_hub from eventlet.api to eventlet.hubs
-* Renamed libevent hub to pyevent.
-* Removed previously-deprecated features tcp_server, GreenSSL, erpc, and trap_errors.
-* Removed saranwrap as an option for making db connections nonblocking in db_pool.
-
-0.9.2
-=====
-
-* Bugfix for wsgi.py where it was improperly expecting the environ variable to be a constant when passed to the application.
-* Tpool.py now passes its tests on Windows.
-* Fixed minor performance issue in wsgi.
-
-0.9.1
-=====
-
-* PyOpenSSL is no longer required for Python 2.6: use the eventlet.green.ssl module. 2.5 and 2.4 still require PyOpenSSL.
-* Cleaned up the eventlet.green packages and their associated tests, this should result in fewer version-dependent bugs with these modules.
-* PyOpenSSL is now fully wrapped in eventlet.green.OpenSSL; using it is therefore more consistent with using other green modules.
-* Documentation on using SSL added.
-* New green modules: ayncore, asynchat, SimpleHTTPServer, CGIHTTPServer, ftplib.
-* Fuller thread/threading compatibility: patching threadlocal with corolocal so coroutines behave even more like threads.
-* Improved Windows compatibility for tpool.py
-* With-statement compatibility for pools.Pool objects.
-* Refactored copyrights in the files, added LICENSE and AUTHORS files.
-* Added support for logging x-forwarded-for header in wsgi.
-* api.tcp_server is now deprecated, will be removed in a future release.
-* Added instructions on how to generate coverage reports to the documentation.
-* Renamed GreenFile to Green_fileobject, to better reflect its purpose.
-* Deprecated erpc method in tpool.py
-* Bug fixes in: wsgi.py, twistedr.py, poll.py, greenio.py, util.py, select.py, processes.py, selects.py
-
-0.9.0
-=====
-
-* Full-duplex sockets (simultaneous readers and writers in the same process).
-* Remove modules that distract from the core mission of making it straightforward to write event-driven networking apps:
- httpd, httpc, channel, greenlib, httpdate, jsonhttp, logutil
-* Removed test dependency on sqlite, using nose instead.
-* Marked known-broken tests using nose's mechanism (most of these are not broken but are simply run in the incorrect context, such as threading-related tests that are incompatible with the libevent hub).
-* Remove copied code from python standard libs (in tests).
-* Added eventlet.patcher which can be used to import "greened" modules.
-
-0.8.16
-======
-* GreenSSLObject properly masks ZeroReturnErrors with an empty read; with unit test.
-* Fixed 2.6 SSL compatibility issue.
-
-0.8.15
-======
-
-* GreenSSL object no longer converts ZeroReturnErrors into empty reads, because that is more compatible with the underlying SSLConnection object.
-* Fixed issue caused by SIGCHLD handler in processes.py
-* Stopped supporting string exceptions in saranwrap and fixed a few test failures.
-
-0.8.14
-======
-* Fixed some more Windows compatibility problems, resolving EVT-37 :
-http://jira.secondlife.com/browse/EVT-37
-* waiting() method on Pool class, which was lost when the Pool implementation
-replaced CoroutinePool.
-
-0.8.13
-======
-* 2.6 SSL compatibility patch by Marcus Cavanaugh.
-* Added greenlet and pyopenssl as dependencies in setup.py.
-
-0.8.12
-======
-
-* The ability to resize() pools of coroutines, which was lost when the
-Pool implementation replaced CoroutinePool.
-* Fixed Cesar's issue with SSL connections, and furthermore did a
-complete overhaul of SSL handling in eventlet so that it's much closer
-to the behavior of the built-in libraries. In particular, users of
-GreenSSL sockets must now call shutdown() before close(), exactly
-like SSL.Connection objects.
-* A small patch that makes Eventlet work on Windows. This is the first
-release of Eventlet that works on Windows.
-
-0.8.11
-======
-
-Eventlet can now run on top of twisted reactor. Twisted-based hub is enabled automatically if
-twisted.internet.reactor is imported. It is also possible to "embed" eventlet into a twisted
-application via eventlet.twistedutil.join_reactor. See the examples for details.
-
-A new package, eventlet.twistedutil, is added that makes integration of twisted and eventlet
-easier. It has block_on function that allows to wait for a Deferred to fire and it wraps
-twisted's Protocol in a synchronous interface. This is similar to and is inspired by Christopher
-Armstrong's corotwine library. Thanks to Dan Pascu for reviewing the package.
-
-Another new package, eventlet.green, was added to provide some of the standard modules
-that are fixed not to block other greenlets. This is an alternative to monkey-patching
-the socket, which is impossible to do if you are running twisted reactor.
-The package includes socket, httplib, urllib2.
-
-Much of the core functionality has been refactored and cleaned up, including the removal
-of eventlet.greenlib. This means that it is now possible to use plain greenlets without
-modification in eventlet, and the subclasses of greenlet instead of the old
-eventlet.greenlib.GreenletContext. Calling eventlet.api.get_hub().switch() now checks to
-see whether the current greenlet has a "switch_out" method and calls it if so, providing the
-same functionality that the GreenletContext.swap_out used to. The swap_in behavior can be
-duplicated by overriding the switch method, and the finalize functionality can be duplicated
-by having a try: finally: block around the greenlet's main implementation. The eventlet.backdoor
-module has been ported to this new scheme, although it's signature had to change slightly so
-existing code that used the backdoor will have to be modified.
-
-A number of bugs related to improper scheduling of switch calls has been fixed.
-The fixed functions and classes include api.trampoline, api.sleep, coros.event,
-coros.semaphore, coros.queue.
-
-Many methods of greenio.GreenSocket were fixed to make its behavior more like that of a regular
-socket. Thanks to Marcin Bachry for fixing GreenSocket.dup to preserve the timeout.
-
-Added proc module which provides an easy way to subscribe to coroutine's results. This makes
-it easy to wait for a single greenlet or for a set of greenlets to complete.
-
-wsgi.py now supports chunked transfer requests (patch by Mike Barton)
-
-The following modules were deprecated or removed because they were broken:
-hubs.nginx, hubs.libev, support.pycurls, support.twisteds, cancel method of coros.event class
-
-The following classes are still present but will be removed in the future version:
-- channel.channel (use coros.Channel)
-- coros.CoroutinePool (use pool.Pool)
-
-saranwrap.py now correctly closes the child process when the referring object is deleted,
-received some fixes to its detection of child process death, now correctly deals with the in
-keyword, and it is now possible to use coroutines in a non-blocking fashion in the child process.
-
-Time-based expiry added to db_pool. This adds the ability to expire connections both by idleness
-and also by total time open. There is also a connection timeout option.
-
-A small bug in httpd's error method was fixed.
-
-Python 2.3 is no longer supported.
-
-A number of tests was added along with a script to run all of them for all the configurations.
-The script generates an html page with the results.
-
-Thanks to Brian Brunswick for investigation of popen4 badness (eventlet.process)
-Thanks to Marcus Cavanaugh for pointing out some coros.queue(0) bugs.
-
-The twisted integration as well as many other improvements were funded by AG Projects (http://ag-projects.com), thanks!
-
-0.8.x
-=====
-
-Fix a CPU leak that would cause the poll hub to consume 100% CPU in certain conditions, for example the echoserver example. (Donovan Preston)
-
-Fix the libev hub to match libev's callback signature. (Patch by grugq)
-
-Add a backlog argument to api.tcp_listener (Patch by grugq)
-
-0.7.x
-=====
-
-Fix a major memory leak when using the libevent or libev hubs. Timers were not being removed from the hub after they fired. (Thanks Agusto Becciu and the grugq). Also, make it possible to call wrap_socket_with_coroutine_socket without using the threadpool to make dns operations non-blocking (Thanks the grugq).
-
-It's now possible to use eventlet's SSL client to talk to eventlet's SSL server. (Thanks to Ryan Williams)
-
-Fixed a major CPU leak when using select hub. When adding a descriptor to the hub, entries were made in all three dictionaries, readers, writers, and exc, even if the callback is None. Thus every fd would be passed into all three lists when calling select regardless of whether there was a callback for that event or not. When reading the next request out of a keepalive socket, the socket would come back as ready for writing, the hub would notice the callback is None and ignore it, and then loop as fast as possible consuming CPU.
-
-0.6.x
-=====
-
-Fixes some long-standing bugs where sometimes failures in accept() or connect() would cause the coroutine that was waiting to be double-resumed, most often resulting in SwitchingToDeadGreenlet exceptions as well as weird tuple-unpacking exceptions in the CoroutinePool main loop.
-
-0.6.1: Added eventlet.tpool.killall. Blocks until all of the threadpool threads have been told to exit and join()ed. Meant to be used to clean up the threadpool on exit or if calling execv. Used by Spawning.
-
-0.5.x
-=====
-
-"The Pycon 2008 Refactor": The first release which incorporates libevent support. Also comes with significant refactoring and code cleanup, especially to the eventlet.wsgi http server. Docstring coverage is much higher and there is new extensive documentation: http://wiki.secondlife.com/wiki/Eventlet/Documentation
-
-The point releases of 0.5.x fixed some bugs in the wsgi server, most notably handling of Transfer-Encoding: chunked; previously, it would happily send chunked encoding to clients which asked for HTTP/1.0, which isn't legal.
-
-0.2
-=====
-
-Initial re-release of forked linden branch.
diff --git a/doc/_sources/design_patterns.txt b/doc/_sources/design_patterns.txt
deleted file mode 100644
index 0f84409..0000000
--- a/doc/_sources/design_patterns.txt
+++ /dev/null
@@ -1,112 +0,0 @@
-.. _design-patterns:
-
-Design Patterns
-=================
-
-There are a bunch of basic patterns that Eventlet usage falls into. Here are a few examples that show their basic structure.
-
-Client Pattern
---------------------
-
-The canonical client-side example is a web crawler. This use case is given a list of urls and wants to retrieve their bodies for later processing. Here is a very simple example::
-
- import eventlet
- from eventlet.green import urllib2
-
- urls = ["http://www.google.com/intl/en_ALL/images/logo.gif",
- "https://www.python.org/static/img/python-logo.png",
- "http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif"]
-
- def fetch(url):
- return urllib2.urlopen(url).read()
-
- pool = eventlet.GreenPool()
- for body in pool.imap(fetch, urls):
- print("got body", len(body))
-
-There is a slightly more complex version of this in the :ref:`web crawler example <web_crawler_example>`. Here's a tour of the interesting lines in this crawler.
-
-``from eventlet.green import urllib2`` is how you import a cooperatively-yielding version of urllib2. It is the same in all respects to the standard version, except that it uses green sockets for its communication. This is an example of the :ref:`import-green` pattern.
-
-``pool = eventlet.GreenPool()`` constructs a :class:`GreenPool <eventlet.greenpool.GreenPool>` of a thousand green threads. Using a pool is good practice because it provides an upper limit on the amount of work that this crawler will be doing simultaneously, which comes in handy when the input data changes dramatically.
-
-``for body in pool.imap(fetch, urls):`` iterates over the results of calling the fetch function in parallel. :meth:`imap <eventlet.greenpool.GreenPool.imap>` makes the function calls in parallel, and the results are returned in the order that they were executed.
-
-The key aspect of the client pattern is that it involves collecting the results of each function call; the fact that each fetch is done concurrently is essentially an invisible optimization. Note also that imap is memory-bounded and won't consume gigabytes of memory if the list of urls grows to the tens of thousands (yes, we had that problem in production once!).
-
-
-Server Pattern
---------------------
-
-Here's a simple server-side example, a simple echo server::
-
- import eventlet
-
- def handle(client):
- while True:
- c = client.recv(1)
- if not c: break
- client.sendall(c)
-
- server = eventlet.listen(('0.0.0.0', 6000))
- pool = eventlet.GreenPool(10000)
- while True:
- new_sock, address = server.accept()
- pool.spawn_n(handle, new_sock)
-
-The file :ref:`echo server example <echo_server_example>` contains a somewhat more robust and complex version of this example.
-
-``server = eventlet.listen(('0.0.0.0', 6000))`` uses a convenience function to create a listening socket.
-
-``pool = eventlet.GreenPool(10000)`` creates a pool of green threads that could handle ten thousand clients.
-
-``pool.spawn_n(handle, new_sock)`` launches a green thread to handle the new client. The accept loop doesn't care about the return value of the ``handle`` function, so it uses :meth:`spawn_n <eventlet.greenpool.GreenPool.spawn_n>`, instead of :meth:`spawn <eventlet.greenpool.GreenPool.spawn>`.
-
-The difference between the server and the client patterns boils down to the fact that the server has a ``while`` loop calling ``accept()`` repeatedly, and that it hands off the client socket completely to the handle() method, rather than collecting the results.
-
-Dispatch Pattern
--------------------
-
-One common use case that Linden Lab runs into all the time is a "dispatch" design pattern. This is a server that is also a client of some other services. Proxies, aggregators, job workers, and so on are all terms that apply here. This is the use case that the :class:`GreenPile <eventlet.greenpool.GreenPile>` was designed for.
-
-Here's a somewhat contrived example: a server that receives POSTs from clients that contain a list of urls of RSS feeds. The server fetches all the feeds concurrently and responds with a list of their titles to the client. It's easy to imagine it doing something more complex than this, and this could be easily modified to become a Reader-style application::
-
- import eventlet
- feedparser = eventlet.import_patched('feedparser')
-
- pool = eventlet.GreenPool()
-
- def fetch_title(url):
- d = feedparser.parse(url)
- return d.feed.get('title', '')
-
- def app(environ, start_response):
- pile = eventlet.GreenPile(pool)
- for url in environ['wsgi.input'].readlines():
- pile.spawn(fetch_title, url)
- titles = '\n'.join(pile)
- start_response('200 OK', [('Content-type', 'text/plain')])
- return [titles]
-
-The full version of this example is in the :ref:`feed_scraper_example`, which includes code to start the WSGI server on a particular port.
-
-This example uses a global (gasp) :class:`GreenPool <eventlet.greenpool.GreenPool>` to control concurrency. If we didn't have a global limit on the number of outgoing requests, then a client could cause the server to open tens of thousands of concurrent connections to external servers, thereby getting feedscraper's IP banned, or various other accidental-or-on-purpose bad behavior. The pool isn't a complete DoS protection, but it's the bare minimum.
-
-.. highlight:: python
- :linenothreshold: 1
-
-The interesting lines are in the app function::
-
- pile = eventlet.GreenPile(pool)
- for url in environ['wsgi.input'].readlines():
- pile.spawn(fetch_title, url)
- titles = '\n'.join(pile)
-
-.. highlight:: python
- :linenothreshold: 1000
-
-Note that in line 1, the Pile is constructed using the global pool as its argument. That ties the Pile's concurrency to the global's. If there are already 1000 concurrent fetches from other clients of feedscraper, this one will block until some of those complete. Limitations are good!
-
-Line 3 is just a spawn, but note that we don't store any return value from it. This is because the return value is kept in the Pile itself. This becomes evident in the next line...
-
-Line 4 is where we use the fact that the Pile is an iterator. Each element in the iterator is one of the return values from the fetch_title function, which are strings. We can use a normal Python idiom (:func:`join`) to concatenate these incrementally as they happen.
diff --git a/doc/_sources/environment.txt b/doc/_sources/environment.txt
deleted file mode 100644
index bac62f2..0000000
--- a/doc/_sources/environment.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-.. _env_vars:
-
-Environment Variables
-======================
-
-Eventlet's behavior can be controlled by a few environment variables.
-These are only for the advanced user.
-
-EVENTLET_HUB
-
- Used to force Eventlet to use the specified hub instead of the
- optimal one. See :ref:`understanding_hubs` for the list of
- acceptable hubs and what they mean (note that picking a hub not on
- the list will silently fail). Equivalent to calling
- :meth:`eventlet.hubs.use_hub` at the beginning of the program.
-
-EVENTLET_THREADPOOL_SIZE
-
- The size of the threadpool in :mod:`~eventlet.tpool`. This is an
- environment variable because tpool constructs its pool on first
- use, so any control of the pool size needs to happen before then.
diff --git a/doc/_sources/examples.txt b/doc/_sources/examples.txt
deleted file mode 100644
index 1a8c318..0000000
--- a/doc/_sources/examples.txt
+++ /dev/null
@@ -1,106 +0,0 @@
-Examples
-========
-
-Here are a bunch of small example programs that use Eventlet. All of these examples can be found in the ``examples`` directory of a source copy of Eventlet.
-
-.. _web_crawler_example:
-
-Web Crawler
-------------
-``examples/webcrawler.py``
-
-.. literalinclude:: ../examples/webcrawler.py
-
-.. _wsgi_server_example:
-
-WSGI Server
-------------
-``examples/wsgi.py``
-
-.. literalinclude:: ../examples/wsgi.py
-
-.. _echo_server_example:
-
-Echo Server
------------
-``examples/echoserver.py``
-
-.. literalinclude:: ../examples/echoserver.py
-
-.. _socket_connect_example:
-
-Socket Connect
---------------
-``examples/connect.py``
-
-.. literalinclude:: ../examples/connect.py
-
-.. _chat_server_example:
-
-Multi-User Chat Server
------------------------
-``examples/chat_server.py``
-
-This is a little different from the echo server, in that it broadcasts the
-messages to all participants, not just the sender.
-
-.. literalinclude:: ../examples/chat_server.py
-
-.. _feed_scraper_example:
-
-Feed Scraper
------------------------
-``examples/feedscraper.py``
-
-This example requires `Feedparser <http://www.feedparser.org/>`_ to be installed or on the PYTHONPATH.
-
-.. literalinclude:: ../examples/feedscraper.py
-
-.. _forwarder_example:
-
-Port Forwarder
------------------------
-``examples/forwarder.py``
-
-.. literalinclude:: ../examples/forwarder.py
-
-.. _recursive_crawler_example:
-
-Recursive Web Crawler
------------------------------------------
-``examples/recursive_crawler.py``
-
-This is an example recursive web crawler that fetches linked pages from a seed url.
-
-.. literalinclude:: ../examples/recursive_crawler.py
-
-.. _producer_consumer_example:
-
-Producer Consumer Web Crawler
------------------------------------------
-``examples/producer_consumer.py``
-
-This is an example implementation of the producer/consumer pattern as well as being identical in functionality to the recursive web crawler.
-
-.. literalinclude:: ../examples/producer_consumer.py
-
-.. _websocket_example:
-
-Websocket Server Example
---------------------------
-``examples/websocket.py``
-
-This exercises some of the features of the websocket server
-implementation.
-
-.. literalinclude:: ../examples/websocket.py
-
-.. _websocket_chat_example:
-
-Websocket Multi-User Chat Example
------------------------------------
-``examples/websocket_chat.py``
-
-This is a mashup of the websocket example and the multi-user chat example, showing how you can do the same sorts of things with websockets that you can do with regular sockets.
-
-.. literalinclude:: ../examples/websocket_chat.py
diff --git a/doc/_sources/history.txt b/doc/_sources/history.txt
deleted file mode 100644
index 8f89b45..0000000
--- a/doc/_sources/history.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-History
--------
-
-Eventlet began life as Donovan Preston was talking to Bob Ippolito about coroutine-based non-blocking networking frameworks in Python. Most non-blocking frameworks require you to run the "main loop" in order to perform all network operations, but Donovan wondered if a library written using a trampolining style could get away with transparently running the main loop any time i/o was required, stopping the main loop once no more i/o was scheduled. Bob spent a few days during PyCon 2006 writing a proof-of-concept. He named it eventlet, after the coroutine implementation it used, `greenlet <http://cheeseshop.python.org/pypi/greenlet greenlet>`_. Donovan began using eventlet as a light-weight network library for his spare-time project `Pavel <http://soundfarmer.com/Pavel/trunk/ Pavel>`_, and also began writing some unittests.
-
-* http://svn.red-bean.com/bob/eventlet/trunk/
-
-When Donovan started at Linden Lab in May of 2006, he added eventlet as an svn external in the ``indra/lib/python directory``, to be a dependency of the yet-to-be-named backbone project (at the time, it was named restserv). However, including eventlet as an svn external meant that any time the externally hosted project had hosting issues, Linden developers were not able to perform svn updates. Thus, the eventlet source was imported into the linden source tree at the same location, and became a fork.
-
-Bob Ippolito has ceased working on eventlet and has stated his desire for Linden to take it's fork forward to the open source world as "the" eventlet.
diff --git a/doc/_sources/hubs.txt b/doc/_sources/hubs.txt
deleted file mode 100644
index 9c4de4c..0000000
--- a/doc/_sources/hubs.txt
+++ /dev/null
@@ -1,54 +0,0 @@
-.. _understanding_hubs:
-
-Understanding Eventlet Hubs
-===========================
-
-A hub forms the basis of Eventlet's event loop, which dispatches I/O events and schedules greenthreads. It is the existence of the hub that promotes coroutines (which can be tricky to program with) into greenthreads (which are easy).
-
-Eventlet has multiple hub implementations, and when you start using it, it tries to select the best hub implementation for your system. The hubs that it supports are (in order of preference):
-
-**epolls**
- Requires Python 2.6 or the `python-epoll <http://pypi.python.org/pypi/python-epoll/1.0>`_ package, and Linux. This is the fastest pure-Python hub.
-**poll**
- On platforms that support it
-**selects**
- Lowest-common-denominator, available everywhere.
-**pyevent**
- This is a libevent-based backend and is thus the fastest. It's disabled by default, because it does not support native threads, but you can enable it yourself if your use case doesn't require them. (You have to install pyevent, too.)
-
-If the selected hub is not ideal for the application, another can be selected. You can make the selection either with the environment variable :ref:`EVENTLET_HUB <env_vars>`, or with use_hub.
-
-.. function:: eventlet.hubs.use_hub(hub=None)
-
- Use this to control which hub Eventlet selects. Call it with the name of the desired hub module. Make sure to do this before the application starts doing any I/O! Calling use_hub completely eliminates the old hub, and any file descriptors or timers that it had been managing will be forgotten. Put the call as one of the first lines in the main module.::
-
- """ This is the main module """
- from eventlet import hubs
- hubs.use_hub("pyevent")
-
- Hubs are implemented as thread-local class instances. :func:`eventlet.hubs.use_hub` only operates on the current thread. When using multiple threads that each need their own hub, call :func:`eventlet.hubs.use_hub` at the beginning of each thread function that needs a specific hub. In practice, it may not be necessary to specify a hub in each thread; it works to use one special hub for the main thread, and let other threads use the default hub; this hybrid hub configuration will work fine.
-
- It is also possible to use a third-party hub module in place of one of the built-in ones. Simply pass the module itself to :func:`eventlet.hubs.use_hub`. The task of writing such a hub is a little beyond the scope of this document, it's probably a good idea to simply inspect the code of the existing hubs to see how they work.::
-
- from eventlet import hubs
- from mypackage import myhub
- hubs.use_hub(myhub)
-
- Supplying None as the argument to :func:`eventlet.hubs.use_hub` causes it to select the default hub.
-
-
-How the Hubs Work
------------------
-
-The hub has a main greenlet, MAINLOOP. When one of the running coroutines needs
-to do some I/O, it registers a listener with the hub (so that the hub knows when to wake it up again), and then switches to MAINLOOP (via ``get_hub().switch()``). If there are other coroutines that are ready to run, MAINLOOP switches to them, and when they complete or need to do more I/O, they switch back to the MAINLOOP. In this manner, MAINLOOP ensures that every coroutine gets scheduled when it has some work to do.
-
-MAINLOOP is launched only when the first I/O operation happens, and it is not the same greenlet that __main__ is running in. This lazy launching is why it's not necessary to explicitly call a dispatch() method like other frameworks, which in turn means that code can start using Eventlet without needing to be substantially restructured.
-
-More Hub-Related Functions
----------------------------
-
-.. autofunction:: eventlet.hubs.get_hub
-.. autofunction:: eventlet.hubs.get_default_hub
-.. autofunction:: eventlet.hubs.trampoline
-
diff --git a/doc/_sources/index.txt b/doc/_sources/index.txt
deleted file mode 100644
index 608c29b..0000000
--- a/doc/_sources/index.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-Eventlet Documentation
-====================================
-
-Code talks! This is a simple web crawler that fetches a bunch of urls concurrently:
-
-.. code-block:: python
-
- urls = [
- "http://www.google.com/intl/en_ALL/images/logo.gif",
- "http://python.org/images/python-logo.gif",
- "http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif",
- ]
-
- import eventlet
- from eventlet.green import urllib2
-
- def fetch(url):
- return urllib2.urlopen(url).read()
-
- pool = eventlet.GreenPool()
- for body in pool.imap(fetch, urls):
- print("got body", len(body))
-
-Contents
-=========
-
-.. toctree::
- :maxdepth: 2
-
- basic_usage
- design_patterns
- patching
- examples
- ssl
- threading
- zeromq
- hubs
- testing
- environment
-
- modules
-
- authors
- history
-
-License
----------
-Eventlet is made available under the terms of the open source `MIT license <http://www.opensource.org/licenses/mit-license.php>`_
-
-Indices and tables
-==================
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
diff --git a/doc/_sources/modules.txt b/doc/_sources/modules.txt
deleted file mode 100644
index 0b07d61..0000000
--- a/doc/_sources/modules.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Module Reference
-======================
-
-.. toctree::
- :maxdepth: 2
-
- modules/backdoor
- modules/corolocal
- modules/debug
- modules/db_pool
- modules/event
- modules/greenpool
- modules/greenthread
- modules/pools
- modules/queue
- modules/semaphore
- modules/timeout
- modules/websocket
- modules/wsgi
- modules/zmq
diff --git a/doc/_sources/modules/backdoor.txt b/doc/_sources/modules/backdoor.txt
deleted file mode 100644
index 79b2fdf..0000000
--- a/doc/_sources/modules/backdoor.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-:mod:`backdoor` -- Python interactive interpreter within a running process
-===============================================================================
-
-The backdoor module is convenient for inspecting the state of a long-running process. It supplies the normal Python interactive interpreter in a way that does not block the normal operation of the application. This can be useful for debugging, performance tuning, or simply learning about how things behave in situ.
-
-In the application, spawn a greenthread running backdoor_server on a listening socket::
-
- eventlet.spawn(backdoor.backdoor_server, eventlet.listen(('localhost', 3000)))
-
-When this is running, the backdoor is accessible via telnet to the specified port.
-
-.. code-block:: sh
-
- $ telnet localhost 3000
- Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39)
- [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import myapp
- >>> dir(myapp)
- ['__all__', '__doc__', '__name__', 'myfunc']
- >>>
-
-The backdoor cooperatively yields to the rest of the application between commands, so on a running server continuously serving requests, you can observe the internal state changing between interpreter commands.
-
-.. automodule:: eventlet.backdoor
- :members:
-
diff --git a/doc/_sources/modules/corolocal.txt b/doc/_sources/modules/corolocal.txt
deleted file mode 100644
index f4caa33..0000000
--- a/doc/_sources/modules/corolocal.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-:mod:`corolocal` -- Coroutine local storage
-=============================================
-
-.. automodule:: eventlet.corolocal
- :members:
- :undoc-members:
diff --git a/doc/_sources/modules/db_pool.txt b/doc/_sources/modules/db_pool.txt
deleted file mode 100644
index 771dfbe..0000000
--- a/doc/_sources/modules/db_pool.txt
+++ /dev/null
@@ -1,61 +0,0 @@
-:mod:`db_pool` -- DBAPI 2 database connection pooling
-========================================================
-
-The db_pool module is useful for managing database connections. It provides three primary benefits: cooperative yielding during database operations, concurrency limiting to a database host, and connection reuse. db_pool is intended to be database-agnostic, compatible with any DB-API 2.0 database module.
-
-*It has currently been tested and used with both MySQLdb and psycopg2.*
-
-A ConnectionPool object represents a pool of connections open to a particular database. The arguments to the constructor include the database-software-specific module, the host name, and the credentials required for authentication. After construction, the ConnectionPool object decides when to create and sever connections with the target database.
-
->>> import MySQLdb
->>> cp = ConnectionPool(MySQLdb, host='localhost', user='root', passwd='')
-
-Once you have this pool object, you connect to the database by calling :meth:`~eventlet.db_pool.ConnectionPool.get` on it:
-
->>> conn = cp.get()
-
-This call may either create a new connection, or reuse an existing open connection, depending on whether it has one open already or not. You can then use the connection object as normal. When done, you must return the connection to the pool:
-
->>> conn = cp.get()
->>> try:
-... result = conn.cursor().execute('SELECT NOW()')
-... finally:
-... cp.put(conn)
-
-After you've returned a connection object to the pool, it becomes useless and will raise exceptions if any of its methods are called.
-
-Constructor Arguments
-----------------------
-
-In addition to the database credentials, there are a bunch of keyword constructor arguments to the ConnectionPool that are useful.
-
-* min_size, max_size : The normal Pool arguments. max_size is the most important constructor argument -- it determines the number of concurrent connections can be open to the destination database. min_size is not very useful.
-* max_idle : Connections are only allowed to remain unused in the pool for a limited amount of time. An asynchronous timer periodically wakes up and closes any connections in the pool that have been idle for longer than they are supposed to be. Without this parameter, the pool would tend to have a 'high-water mark', where the number of connections open at a given time corresponds to the peak historical demand. This number only has effect on the connections in the pool itself -- if you take a connection out of the pool, you can hold on to it for as long as you want. If this is set to 0, every connection is closed upon its return to the pool.
-* max_age : The lifespan of a connection. This works much like max_idle, but the timer is measured from the connection's creation time, and is tracked throughout the connection's life. This means that if you take a connection out of the pool and hold on to it for some lengthy operation that exceeds max_age, upon putting the connection back in to the pool, it will be closed. Like max_idle, max_age will not close connections that are taken out of the pool, and, if set to 0, will cause every connection to be closed when put back in the pool.
-* connect_timeout : How long to wait before raising an exception on connect(). If the database module's connect() method takes too long, it raises a ConnectTimeout exception from the get() method on the pool.
-
-DatabaseConnector
------------------
-
-If you want to connect to multiple databases easily (and who doesn't), the DatabaseConnector is for you. It's a pool of pools, containing a ConnectionPool for every host you connect to.
-
-The constructor arguments are:
-
-* module : database module, e.g. MySQLdb. This is simply passed through to the ConnectionPool.
-* credentials : A dictionary, or dictionary-alike, mapping hostname to connection-argument-dictionary. This is used for the constructors of the ConnectionPool objects. Example:
-
->>> dc = DatabaseConnector(MySQLdb,
-... {'db.internal.example.com': {'user': 'internal', 'passwd': 's33kr1t'},
-... 'localhost': {'user': 'root', 'passwd': ''}})
-
-If the credentials contain a host named 'default', then the value for 'default' is used whenever trying to connect to a host that has no explicit entry in the database. This is useful if there is some pool of hosts that share arguments.
-
-* conn_pool : The connection pool class to use. Defaults to db_pool.ConnectionPool.
-
-The rest of the arguments to the DatabaseConnector constructor are passed on to the ConnectionPool.
-
-*Caveat: The DatabaseConnector is a bit unfinished, it only suits a subset of use cases.*
-
-.. automodule:: eventlet.db_pool
- :members:
- :undoc-members:
diff --git a/doc/_sources/modules/debug.txt b/doc/_sources/modules/debug.txt
deleted file mode 100644
index 03c2ddc..0000000
--- a/doc/_sources/modules/debug.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-:mod:`debug` -- Debugging tools for Eventlet
-==================================================
-
-.. automodule:: eventlet.debug
- :members:
diff --git a/doc/_sources/modules/event.txt b/doc/_sources/modules/event.txt
deleted file mode 100644
index 6774671..0000000
--- a/doc/_sources/modules/event.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-:mod:`event` -- Cross-greenthread primitive
-==================================================
-
-.. automodule:: eventlet.event
- :members:
diff --git a/doc/_sources/modules/greenpool.txt b/doc/_sources/modules/greenpool.txt
deleted file mode 100644
index 0bf031f..0000000
--- a/doc/_sources/modules/greenpool.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-:mod:`greenpool` -- Green Thread Pools
-========================================
-
-.. automodule:: eventlet.greenpool
- :members:
-
diff --git a/doc/_sources/modules/greenthread.txt b/doc/_sources/modules/greenthread.txt
deleted file mode 100644
index 8367402..0000000
--- a/doc/_sources/modules/greenthread.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-:mod:`greenthread` -- Green Thread Implementation
-==================================================
-
-.. automodule:: eventlet.greenthread
- :members:
diff --git a/doc/_sources/modules/pools.txt b/doc/_sources/modules/pools.txt
deleted file mode 100644
index 9980530..0000000
--- a/doc/_sources/modules/pools.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-:mod:`pools` - Generic pools of resources
-==========================================
-
-.. automodule:: eventlet.pools
- :members:
diff --git a/doc/_sources/modules/queue.txt b/doc/_sources/modules/queue.txt
deleted file mode 100644
index 9c3a933..0000000
--- a/doc/_sources/modules/queue.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-:mod:`queue` -- Queue class
-========================================
-
-.. automodule:: eventlet.queue
- :members:
diff --git a/doc/_sources/modules/semaphore.txt b/doc/_sources/modules/semaphore.txt
deleted file mode 100644
index 7146571..0000000
--- a/doc/_sources/modules/semaphore.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-:mod:`semaphore` -- Semaphore classes
-==================================================
-
-.. autoclass:: eventlet.semaphore.Semaphore
- :members:
-
-.. autoclass:: eventlet.semaphore.BoundedSemaphore
- :members:
-
-.. autoclass:: eventlet.semaphore.CappedSemaphore
- :members: \ No newline at end of file
diff --git a/doc/_sources/modules/timeout.txt b/doc/_sources/modules/timeout.txt
deleted file mode 100644
index 17ce8ef..0000000
--- a/doc/_sources/modules/timeout.txt
+++ /dev/null
@@ -1,92 +0,0 @@
-:mod:`timeout` -- Universal Timeouts
-========================================
-
-.. class:: eventlet.timeout.Timeout
-
- Raises *exception* in the current greenthread after *timeout* seconds::
-
- timeout = Timeout(seconds, exception)
- try:
- ... # execution here is limited by timeout
- finally:
- timeout.cancel()
-
- When *exception* is omitted or is ``None``, the :class:`Timeout` instance
- itself is raised:
-
- >>> Timeout(0.1)
- >>> eventlet.sleep(0.2)
- Traceback (most recent call last):
- ...
- Timeout: 0.1 seconds
-
- You can use the ``with`` statement for additional convenience::
-
- with Timeout(seconds, exception) as timeout:
- pass # ... code block ...
-
- This is equivalent to the try/finally block in the first example.
-
- There is an additional feature when using the ``with`` statement: if
- *exception* is ``False``, the timeout is still raised, but the with
- statement suppresses it, so the code outside the with-block won't see it::
-
- data = None
- with Timeout(5, False):
- data = mysock.makefile().readline()
- if data is None:
- ... # 5 seconds passed without reading a line
- else:
- ... # a line was read within 5 seconds
-
- As a very special case, if *seconds* is None, the timer is not scheduled,
- and is only useful if you're planning to raise it directly.
-
- There are two Timeout caveats to be aware of:
-
- * If the code block in the try/finally or with-block never cooperatively yields, the timeout cannot be raised. In Eventlet, this should rarely be a problem, but be aware that you cannot time out CPU-only operations with this class.
- * If the code block catches and doesn't re-raise :class:`BaseException` (for example, with ``except:``), then it will catch the Timeout exception, and might not abort as intended.
-
- When catching timeouts, keep in mind that the one you catch may not be the
- one you set; if you plan on silencing a timeout, always check that it's the
- same instance that you set::
-
- timeout = Timeout(1)
- try:
- ...
- except Timeout as t:
- if t is not timeout:
- raise # not my timeout
-
- .. automethod:: cancel
- .. autoattribute:: pending
-
-
-.. function:: eventlet.timeout.with_timeout(seconds, function, *args, **kwds)
-
- Wrap a call to some (yielding) function with a timeout; if the called
- function fails to return before the timeout, cancel it and return a flag
- value.
-
- :param seconds: seconds before timeout occurs
- :type seconds: int or float
- :param func: the callable to execute with a timeout; it must cooperatively yield, or else the timeout will not be able to trigger
- :param \*args: positional arguments to pass to *func*
- :param \*\*kwds: keyword arguments to pass to *func*
- :param timeout_value: value to return if timeout occurs (by default raises
- :class:`Timeout`)
-
- :rtype: Value returned by *func* if *func* returns before *seconds*, else
- *timeout_value* if provided, else raises :class:`Timeout`.
-
- :exception Timeout: if *func* times out and no ``timeout_value`` has
- been provided.
- :exception: Any exception raised by *func*
-
- Example::
-
- data = with_timeout(30, urllib2.open, 'http://www.google.com/', timeout_value="")
-
- Here *data* is either the result of the ``get()`` call, or the empty string
- if it took too long to return. Any exception raised by the ``get()`` call
- is passed through to the caller.
diff --git a/doc/_sources/modules/websocket.txt b/doc/_sources/modules/websocket.txt
deleted file mode 100644
index 9a94fda..0000000
--- a/doc/_sources/modules/websocket.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-:mod:`websocket` -- Websocket Server
-=====================================
-
-This module provides a simple way to create a `websocket
-<http://dev.w3.org/html5/websockets/>`_ server. It works with a few
-tweaks in the :mod:`~eventlet.wsgi` module that allow websockets to
-coexist with other WSGI applications.
-
-To create a websocket server, simply decorate a handler method with
-:class:`WebSocketWSGI` and use it as a wsgi application::
-
- from eventlet import wsgi, websocket
- import eventlet
-
- @websocket.WebSocketWSGI
- def hello_world(ws):
- ws.send("hello world")
-
- wsgi.server(eventlet.listen(('', 8090)), hello_world)
-
-.. note::
-
- Please see graceful termination warning in :func:`~eventlet.wsgi.server`
- documentation
-
-
-You can find a slightly more elaborate version of this code in the file
-``examples/websocket.py``.
-
-As of version 0.9.13, eventlet.websocket supports SSL websockets; all that's necessary is to use an :ref:`SSL wsgi server <wsgi_ssl>`.
-
-.. note :: The web socket spec is still under development, and it will be necessary to change the way that this module works in response to spec changes.
-
-
-.. automodule:: eventlet.websocket
- :members:
diff --git a/doc/_sources/modules/wsgi.txt b/doc/_sources/modules/wsgi.txt
deleted file mode 100644
index 4d4d634..0000000
--- a/doc/_sources/modules/wsgi.txt
+++ /dev/null
@@ -1,130 +0,0 @@
-:mod:`wsgi` -- WSGI server
-===========================
-
-The wsgi module provides a simple and easy way to start an event-driven
-`WSGI <http://wsgi.org/wsgi/>`_ server. This can serve as an embedded
-web server in an application, or as the basis for a more full-featured web
-server package. One such package is `Spawning <http://pypi.python.org/pypi/Spawning/>`_.
-
-To launch a wsgi server, simply create a socket and call :func:`eventlet.wsgi.server` with it::
-
- from eventlet import wsgi
- import eventlet
-
- def hello_world(env, start_response):
- start_response('200 OK', [('Content-Type', 'text/plain')])
- return ['Hello, World!\r\n']
-
- wsgi.server(eventlet.listen(('', 8090)), hello_world)
-
-
-You can find a slightly more elaborate version of this code in the file
-``examples/wsgi.py``.
-
-.. automodule:: eventlet.wsgi
- :members:
-
-.. _wsgi_ssl:
-
-SSL
----
-
-Creating a secure server is only slightly more involved than the base example. All that's needed is to pass an SSL-wrapped socket to the :func:`~eventlet.wsgi.server` method::
-
- wsgi.server(eventlet.wrap_ssl(eventlet.listen(('', 8090)),
- certfile='cert.crt',
- keyfile='private.key',
- server_side=True),
- hello_world)
-
-Applications can detect whether they are inside a secure server by the value of the ``env['wsgi.url_scheme']`` environment variable.
-
-
-Non-Standard Extension to Support Post Hooks
---------------------------------------------
-Eventlet's WSGI server supports a non-standard extension to the WSGI
-specification where :samp:`env['eventlet.posthooks']` contains an array of
-`post hooks` that will be called after fully sending a response. Each post hook
-is a tuple of :samp:`(func, args, kwargs)` and the `func` will be called with
-the WSGI environment dictionary, followed by the `args` and then the `kwargs`
-in the post hook.
-
-For example::
-
- from eventlet import wsgi
- import eventlet
-
- def hook(env, arg1, arg2, kwarg3=None, kwarg4=None):
- print('Hook called: %s %s %s %s %s' % (env, arg1, arg2, kwarg3, kwarg4))
-
- def hello_world(env, start_response):
- env['eventlet.posthooks'].append(
- (hook, ('arg1', 'arg2'), {'kwarg3': 3, 'kwarg4': 4}))
- start_response('200 OK', [('Content-Type', 'text/plain')])
- return ['Hello, World!\r\n']
-
- wsgi.server(eventlet.listen(('', 8090)), hello_world)
-
-The above code will print the WSGI environment and the other passed function
-arguments for every request processed.
-
-Post hooks are useful when code needs to be executed after a response has been
-fully sent to the client (or when the client disconnects early). One example is
-for more accurate logging of bandwidth used, as client disconnects use less
-bandwidth than the actual Content-Length.
-
-
-"100 Continue" Response Headers
--------------------------------
-
-Eventlet's WSGI server supports sending (optional) headers with HTTP "100 Continue"
-provisional responses. This is useful in such cases where a WSGI server expects
-to complete a PUT request as a single HTTP request/response pair, and also wants to
-communicate back to client as part of the same HTTP transaction. An example is
-where the HTTP server wants to pass hints back to the client about characteristics
-of data payload it can accept. As an example, an HTTP server may pass a hint in a
-header the accompanying "100 Continue" response to the client indicating it can or
-cannot accept encrypted data payloads, and thus client can make the encrypted vs
-unencrypted decision before starting to send the data).
-
-This works well for WSGI servers as the WSGI specification mandates HTTP
-expect/continue mechanism (PEP333).
-
-To define the "100 Continue" response headers, one may call
-:func:`set_hundred_continue_response_header` on :samp:`env['wsgi.input']`
-as shown in the following example::
-
- from eventlet import wsgi
- import eventlet
-
- def wsgi_app(env, start_response):
- # Define "100 Continue" response headers
- env['wsgi.input'].set_hundred_continue_response_headers(
- [('Hundred-Continue-Header-1', 'H1'),
- ('Hundred-Continue-Header-k', 'Hk')])
- # The following read() causes "100 Continue" response to
- # the client. Headers 'Hundred-Continue-Header-1' and
- # 'Hundred-Continue-Header-K' are sent with the response
- # following the "HTTP/1.1 100 Continue\r\n" status line
- text = env['wsgi.input'].read()
- start_response('200 OK', [('Content-Length', str(len(text)))])
- return [text]
-
-You can find a more elaborate example in the file:
-``tests/wsgi_test.py``, :func:`test_024a_expect_100_continue_with_headers`.
-
-
-Per HTTP RFC 7231 (http://tools.ietf.org/html/rfc7231#section-6.2) a client is
-required to be able to process one or more 100 continue responses. A sample
-use case might be a user protocol where the server may want to use a 100-continue
-response to indicate to a client that it is working on a request and the
-client should not timeout.
-
-To support multiple 100-continue responses, evenlet wsgi module exports
-the API :func:`send_hundred_continue_response`.
-
-Sample use cases for chunked and non-chunked HTTP scenarios are included
-in the wsgi test case ``tests/wsgi_test.py``,
-:func:`test_024b_expect_100_continue_with_headers_multiple_chunked` and
-:func:`test_024c_expect_100_continue_with_headers_multiple_nonchunked`.
-
diff --git a/doc/_sources/modules/zmq.txt b/doc/_sources/modules/zmq.txt
deleted file mode 100644
index c9e925a..0000000
--- a/doc/_sources/modules/zmq.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-:mod:`eventlet.green.zmq` -- ØMQ support
-========================================
-
-.. automodule:: eventlet.green.zmq
- :show-inheritance:
-
-.. currentmodule:: eventlet.green.zmq
-
-.. autofunction:: Context
-
-.. autoclass:: _Context
- :show-inheritance:
-
- .. automethod:: socket
-
-.. autoclass:: Socket
- :show-inheritance:
- :inherited-members:
-
- .. automethod:: recv
-
- .. automethod:: send
-
-.. module:: zmq
-
-:mod:`zmq` -- The pyzmq ØMQ python bindings
-===========================================
-
-:mod:`pyzmq <zmq>` [1]_ Is a python binding to the C++ ØMQ [2]_ library written in Cython [3]_. The following is
-auto generated :mod:`pyzmq's <zmq>` from documentation.
-
-.. autoclass:: zmq.core.context.Context
- :members:
-
-.. autoclass:: zmq.core.socket.Socket
-
-.. autoclass:: zmq.core.poll.Poller
- :members:
-
-
-.. [1] http://github.com/zeromq/pyzmq
-.. [2] http://www.zeromq.com
-.. [3] http://www.cython.org
diff --git a/doc/_sources/patching.txt b/doc/_sources/patching.txt
deleted file mode 100644
index 9b37797..0000000
--- a/doc/_sources/patching.txt
+++ /dev/null
@@ -1,70 +0,0 @@
-Greening The World
-==================
-
-One of the challenges of writing a library like Eventlet is that the built-in networking libraries don't natively support the sort of cooperative yielding that we need. What we must do instead is patch standard library modules in certain key places so that they do cooperatively yield. We've in the past considered doing this automatically upon importing Eventlet, but have decided against that course of action because it is un-Pythonic to change the behavior of module A simply by importing module B.
-
-Therefore, the application using Eventlet must explicitly green the world for itself, using one or both of the convenient methods provided.
-
-.. _import-green:
-
-Import Green
---------------
-
-The first way of greening an application is to import networking-related libraries from the ``eventlet.green`` package. It contains libraries that have the same interfaces as common standard ones, but they are modified to behave well with green threads. Using this method is a good engineering practice, because the true dependencies are apparent in every file::
-
- from eventlet.green import socket
- from eventlet.green import threading
- from eventlet.green import asyncore
-
-This works best if every library can be imported green in this manner. If ``eventlet.green`` lacks a module (for example, non-python-standard modules), then :func:`~eventlet.patcher.import_patched` function can come to the rescue. It is a replacement for the builtin import statement that greens any module on import.
-
-.. function:: eventlet.patcher.import_patched(module_name, *additional_modules, **kw_additional_modules)
-
- Imports a module in a greened manner, so that the module's use of networking libraries like socket will use Eventlet's green versions instead. The only required argument is the name of the module to be imported::
-
- import eventlet
- httplib2 = eventlet.import_patched('httplib2')
-
- Under the hood, it works by temporarily swapping out the "normal" versions of the libraries in sys.modules for an eventlet.green equivalent. When the import of the to-be-patched module completes, the state of sys.modules is restored. Therefore, if the patched module contains the statement 'import socket', import_patched will have it reference eventlet.green.socket. One weakness of this approach is that it doesn't work for late binding (i.e. imports that happen during runtime). Late binding of imports is fortunately rarely done (it's slow and against `PEP-8 <http://www.python.org/dev/peps/pep-0008/>`_), so in most cases import_patched will work just fine.
-
- One other aspect of import_patched is the ability to specify exactly which modules are patched. Doing so may provide a slight performance benefit since only the needed modules are imported, whereas import_patched with no arguments imports a bunch of modules in case they're needed. The *additional_modules* and *kw_additional_modules* arguments are both sequences of name/module pairs. Either or both can be used::
-
- from eventlet.green import socket
- from eventlet.green import SocketServer
- BaseHTTPServer = eventlet.import_patched('BaseHTTPServer',
- ('socket', socket),
- ('SocketServer', SocketServer))
- BaseHTTPServer = eventlet.import_patched('BaseHTTPServer',
- socket=socket, SocketServer=SocketServer)
-
-.. _monkey-patch:
-
-Monkeypatching the Standard Library
-----------------------------------------
-
-The other way of greening an application is simply to monkeypatch the standard
-library. This has the disadvantage of appearing quite magical, but the advantage of avoiding the late-binding problem.
-
-.. function:: eventlet.patcher.monkey_patch(os=None, select=None, socket=None, thread=None, time=None, psycopg=None)
-
- This function monkeypatches the key system modules by replacing their key elements with green equivalents. If no arguments are specified, everything is patched::
-
- import eventlet
- eventlet.monkey_patch()
-
- The keyword arguments afford some control over which modules are patched, in case that's important. Most patch the single module of the same name (e.g. time=True means that the time module is patched [time.sleep is patched by eventlet.sleep]). The exceptions to this rule are *socket*, which also patches the :mod:`ssl` module if present; and *thread*, which patches :mod:`thread`, :mod:`threading`, and :mod:`Queue`.
-
- Here's an example of using monkey_patch to patch only a few modules::
-
- import eventlet
- eventlet.monkey_patch(socket=True, select=True)
-
- It is important to call :func:`~eventlet.patcher.monkey_patch` as early in the lifetime of the application as possible. Try to do it as one of the first lines in the main module. The reason for this is that sometimes there is a class that inherits from a class that needs to be greened -- e.g. a class that inherits from socket.socket -- and inheritance is done at import time, so therefore the monkeypatching should happen before the derived class is defined. It's safe to call monkey_patch multiple times.
-
- The psycopg monkeypatching relies on Daniele Varrazzo's green psycopg2 branch; see `the announcement <https://lists.secondlife.com/pipermail/eventletdev/2010-April/000800.html>`_ for more information.
-
-.. function:: eventlet.patcher.is_monkey_patched(module)
-
- Returns whether or not the specified module is currently monkeypatched. *module* can either be the module itself or the module's name.
-
- Based entirely off the name of the module, so if you import a module some other way than with the import keyword (including :func:`~eventlet.patcher.import_patched`), is_monkey_patched might not be correct about that particular module.
diff --git a/doc/_sources/ssl.txt b/doc/_sources/ssl.txt
deleted file mode 100644
index f89ec54..0000000
--- a/doc/_sources/ssl.txt
+++ /dev/null
@@ -1,58 +0,0 @@
-Using SSL With Eventlet
-========================
-
-Eventlet makes it easy to use non-blocking SSL sockets. If you're using Python 2.6 or later, you're all set, eventlet wraps the built-in ssl module. If on Python 2.5 or 2.4, you have to install pyOpenSSL_ to use eventlet.
-
-In either case, the ``green`` modules handle SSL sockets transparently, just like their standard counterparts. As an example, :mod:`eventlet.green.urllib2` can be used to fetch https urls in as non-blocking a fashion as you please::
-
- from eventlet.green import urllib2
- from eventlet import spawn
- bodies = [spawn(urllib2.urlopen, url)
- for url in ("https://secondlife.com","https://google.com")]
- for b in bodies:
- print(b.wait().read())
-
-
-With Python 2.6
-----------------
-
-To use ssl sockets directly in Python 2.6, use :mod:`eventlet.green.ssl`, which is a non-blocking wrapper around the standard Python :mod:`ssl` module, and which has the same interface. See the standard documentation for instructions on use.
-
-With Python 2.5 or Earlier
----------------------------
-
-Prior to Python 2.6, there is no :mod:`ssl`, so SSL support is much weaker. Eventlet relies on pyOpenSSL to implement its SSL support on these older versions, so be sure to install pyOpenSSL, or you'll get an ImportError whenever your system tries to make an SSL connection.
-
-Once pyOpenSSL is installed, you can then use the ``eventlet.green`` modules, like :mod:`eventlet.green.httplib` to fetch https urls. You can also use :func:`eventlet.green.socket.ssl`, which is a nonblocking wrapper for :func:`socket.ssl`.
-
-PyOpenSSL
-----------
-
-:mod:`eventlet.green.OpenSSL` has exactly the same interface as pyOpenSSL_ `(docs) <http://pyopenssl.sourceforge.net/pyOpenSSL.html/>`_, and works in all versions of Python. This module is much more powerful than :func:`socket.ssl`, and may have some advantages over :mod:`ssl`, depending on your needs.
-
-Here's an example of a server::
-
- from eventlet.green import socket
- from eventlet.green.OpenSSL import SSL
-
- # insecure context, only for example purposes
- context = SSL.Context(SSL.SSLv23_METHOD)
- context.set_verify(SSL.VERIFY_NONE, lambda *x: True))
-
- # create underlying green socket and wrap it in ssl
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- connection = SSL.Connection(context, sock)
-
- # configure as server
- connection.set_accept_state()
- connection.bind(('127.0.0.1', 80443))
- connection.listen(50)
-
- # accept one client connection then close up shop
- client_conn, addr = connection.accept()
- print(client_conn.read(100))
- client_conn.shutdown()
- client_conn.close()
- connection.close()
-
-.. _pyOpenSSL: https://launchpad.net/pyopenssl
diff --git a/doc/_sources/testing.txt b/doc/_sources/testing.txt
deleted file mode 100644
index 30f045f..0000000
--- a/doc/_sources/testing.txt
+++ /dev/null
@@ -1,94 +0,0 @@
-Testing Eventlet
-================
-
-Eventlet is tested using `Nose <http://somethingaboutorange.com/mrl/projects/nose/>`_. To run tests, simply install nose, and then, in the eventlet tree, do:
-
-.. code-block:: sh
-
- $ python setup.py test
-
-If you want access to all the nose plugins via command line, you can run:
-
-.. code-block:: sh
-
- $ python setup.py nosetests
-
-Lastly, you can just use nose directly if you want:
-
-.. code-block:: sh
-
- $ nosetests
-
-That's it! The output from running nose is the same as unittest's output, if the entire directory was one big test file.
-
-Many tests are skipped based on environmental factors; for example, it makes no sense to test kqueue-specific functionality when your OS does not support it. These are printed as S's during execution, and in the summary printed after the tests run it will tell you how many were skipped.
-
-Doctests
---------
-
-To run the doctests included in many of the eventlet modules, use this command:
-
-.. code-block :: sh
-
- $ nosetests --with-doctest eventlet/*.py
-
-Currently there are 16 doctests.
-
-Standard Library Tests
-----------------------
-
-Eventlet provides the ability to test itself with the standard Python networking tests. This verifies that the libraries it wraps work at least as well as the standard ones do. The directory tests/stdlib contains a bunch of stubs that import the standard lib tests from your system and run them. If you do not have any tests in your python distribution, they'll simply fail to import.
-
-There's a convenience module called all.py designed to handle the impedance mismatch between Nose and the standard tests:
-
-.. code-block:: sh
-
- $ nosetests tests/stdlib/all.py
-
-That will run all the tests, though the output will be a little weird because it will look like Nose is running about 20 tests, each of which consists of a bunch of sub-tests. Not all test modules are present in all versions of Python, so there will be an occasional printout of "Not importing %s, it doesn't exist in this installation/version of Python".
-
-If you see "Ran 0 tests in 0.001s", it means that your Python installation lacks its own tests. This is usually the case for Linux distributions. One way to get the missing tests is to download a source tarball (of the same version you have installed on your system!) and copy its Lib/test directory into the correct place on your PYTHONPATH.
-
-
-Testing Eventlet Hubs
----------------------
-
-When you run the tests, Eventlet will use the most appropriate hub for the current platform to do its dispatch. It's sometimes useful when making changes to Eventlet to test those changes on hubs other than the default. You can do this with the ``EVENTLET_HUB`` environment variable.
-
-.. code-block:: sh
-
- $ EVENTLET_HUB=epolls nosetests
-
-See :ref:`understanding_hubs` for the full list of hubs.
-
-
-Writing Tests
--------------
-
-What follows are some notes on writing tests, in no particular order.
-
-The filename convention when writing a test for module `foo` is to name the test `foo_test.py`. We don't yet have a convention for tests that are of finer granularity, but a sensible one might be `foo_class_test.py`.
-
-If you are writing a test that involves a client connecting to a spawned server, it is best to not use a hardcoded port because that makes it harder to parallelize tests. Instead bind the server to 0, and then look up its port when connecting the client, like this::
-
- server_sock = eventlet.listener(('127.0.0.1', 0))
- client_sock = eventlet.connect(('localhost', server_sock.getsockname()[1]))
-
-Coverage
---------
-
-Coverage.py is an awesome tool for evaluating how much code was exercised by unit tests. Nose supports it if both are installed, so it's easy to generate coverage reports for eventlet. Here's how:
-
-.. code-block:: sh
-
- nosetests --with-coverage --cover-package=eventlet
-
-After running the tests to completion, this will emit a huge wodge of module names and line numbers. For some reason, the ``--cover-inclusive`` option breaks everything rather than serving its purpose of limiting the coverage to the local files, so don't use that.
-
-The html option is quite useful because it generates nicely-formatted HTML files that are much easier to read than line-number soup. Here's a command that generates the annotation, dumping the html files into a directory called "cover":
-
-.. code-block:: sh
-
- coverage html -d cover --omit='tempmod,<console>,tests'
-
-(``tempmod`` and ``console`` are omitted because they get thrown away at the completion of their unit tests and coverage.py isn't smart enough to detect this.)
diff --git a/doc/_sources/threading.txt b/doc/_sources/threading.txt
deleted file mode 100644
index 3a0486e..0000000
--- a/doc/_sources/threading.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-Threads
-========
-
-Eventlet is thread-safe and can be used in conjunction with normal Python threads. The way this works is that coroutines are confined to their 'parent' Python thread. It's like each thread contains its own little world of coroutines that can switch between themselves but not between coroutines in other threads.
-
-.. image:: /images/threading_illustration.png
-
-You can only communicate cross-thread using the "real" thread primitives and pipes. Fortunately, there's little reason to use threads for concurrency when you're already using coroutines.
-
-The vast majority of the times you'll want to use threads are to wrap some operation that is not "green", such as a C library that uses its own OS calls to do socket operations. The :mod:`~eventlet.tpool` module is provided to make these uses simpler.
-
-The optional :ref:`pyevent hub <understanding_hubs>` is not compatible with threads.
-
-Tpool - Simple thread pool
----------------------------
-
-The simplest thing to do with :mod:`~eventlet.tpool` is to :func:`~eventlet.tpool.execute` a function with it. The function will be run in a random thread in the pool, while the calling coroutine blocks on its completion::
-
- >>> import thread
- >>> from eventlet import tpool
- >>> def my_func(starting_ident):
- ... print("running in new thread:", starting_ident != thread.get_ident())
- ...
- >>> tpool.execute(my_func, thread.get_ident())
- running in new thread: True
-
-By default there are 20 threads in the pool, but you can configure this by setting the environment variable ``EVENTLET_THREADPOOL_SIZE`` to the desired pool size before importing tpool.
-
-.. automodule:: eventlet.tpool
- :members:
diff --git a/doc/_sources/zeromq.txt b/doc/_sources/zeromq.txt
deleted file mode 100644
index 96db4b9..0000000
--- a/doc/_sources/zeromq.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-Zeromq
-######
-
-What is ØMQ?
-============
-
-"A ØMQ socket is what you get when you take a normal TCP socket, inject it with a mix of radioactive isotopes stolen
-from a secret Soviet atomic research project, bombard it with 1950-era cosmic rays, and put it into the hands of a drug-addled
-comic book author with a badly-disguised fetish for bulging muscles clad in spandex."
-
-Key differences to conventional sockets
-Generally speaking, conventional sockets present a synchronous interface to either connection-oriented reliable byte streams (SOCK_STREAM),
-or connection-less unreliable datagrams (SOCK_DGRAM). In comparison, 0MQ sockets present an abstraction of an asynchronous message queue,
-with the exact queueing semantics depending on the socket type in use. Where conventional sockets transfer streams of bytes or discrete datagrams,
-0MQ sockets transfer discrete messages.
-
-0MQ sockets being asynchronous means that the timings of the physical connection setup and teardown,
-reconnect and effective delivery are transparent to the user and organized by 0MQ itself.
-Further, messages may be queued in the event that a peer is unavailable to receive them.
-
-Conventional sockets allow only strict one-to-one (two peers), many-to-one (many clients, one server),
-or in some cases one-to-many (multicast) relationships. With the exception of ZMQ::PAIR,
-0MQ sockets may be connected to multiple endpoints using connect(),
-while simultaneously accepting incoming connections from multiple endpoints bound to the socket using bind(), thus allowing many-to-many relationships.
-
-API documentation
-=================
-
-ØMQ support is provided in the :mod:`eventlet.green.zmq` module \ No newline at end of file
diff --git a/doc/_static/documentation_options.js b/doc/_static/documentation_options.js
index 20a86e9..24fd75f 100644
--- a/doc/_static/documentation_options.js
+++ b/doc/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: '0.32.0',
+ VERSION: '0.33.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/doc/_static/jquery-1.11.1.js b/doc/_static/jquery-1.11.1.js
deleted file mode 100644
index d4b67f7..0000000
--- a/doc/_static/jquery-1.11.1.js
+++ /dev/null
@@ -1,10308 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.11.1
- * http://jquery.com/
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- *
- * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2014-05-01T17:42Z
- */
-
-(function( global, factory ) {
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
- // For CommonJS and CommonJS-like environments where a proper window is present,
- // execute the factory and get jQuery
- // For environments that do not inherently posses a window with a document
- // (such as Node.js), expose a jQuery-making factory as module.exports
- // This accentuates the need for the creation of a real window
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Can't do this because several apps including ASP.NET trace
-// the stack via arguments.caller.callee and Firefox dies if
-// you try to trace through "use strict" call chains. (#13335)
-// Support: Firefox 18+
-//
-
-var deletedIds = [];
-
-var slice = deletedIds.slice;
-
-var concat = deletedIds.concat;
-
-var push = deletedIds.push;
-
-var indexOf = deletedIds.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var support = {};
-
-
-
-var
- version = "1.11.1",
-
- // Define a local copy of jQuery
- jQuery = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- // Need init if jQuery is called (just allow error to be thrown if not included)
- return new jQuery.fn.init( selector, context );
- },
-
- // Support: Android<4.1, IE<9
- // Make sure we trim BOM and NBSP
- rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
-
- // Matches dashed string for camelizing
- rmsPrefix = /^-ms-/,
- rdashAlpha = /-([\da-z])/gi,
-
- // Used by jQuery.camelCase as callback to replace()
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
-
-jQuery.fn = jQuery.prototype = {
- // The current version of jQuery being used
- jquery: version,
-
- constructor: jQuery,
-
- // Start with an empty selector
- selector: "",
-
- // The default length of a jQuery object is 0
- length: 0,
-
- toArray: function() {
- return slice.call( this );
- },
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num != null ?
-
- // Return just the one element from the set
- ( num < 0 ? this[ num + this.length ] : this[ num ] ) :
-
- // Return all the elements in a clean array
- slice.call( this );
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
-
- // Build a new jQuery matched element set
- var ret = jQuery.merge( this.constructor(), elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
- ret.context = this.context;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function( elem, i ) {
- return callback.call( elem, i, elem );
- }));
- },
-
- slice: function() {
- return this.pushStack( slice.apply( this, arguments ) );
- },
-
- first: function() {
- return this.eq( 0 );
- },
-
- last: function() {
- return this.eq( -1 );
- },
-
- eq: function( i ) {
- var len = this.length,
- j = +i + ( i < 0 ? len : 0 );
- return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] );
- },
-
- end: function() {
- return this.prevObject || this.constructor(null);
- },
-
- // For internal use only.
- // Behaves like an Array's method, not like a jQuery method.
- push: push,
- sort: deletedIds.sort,
- splice: deletedIds.splice
-};
-
-jQuery.extend = jQuery.fn.extend = function() {
- var src, copyIsArray, copy, name, options, clone,
- target = arguments[0] || {},
- i = 1,
- length = arguments.length,
- deep = false;
-
- // Handle a deep copy situation
- if ( typeof target === "boolean" ) {
- deep = target;
-
- // skip the boolean and the target
- target = arguments[ i ] || {};
- i++;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
- target = {};
- }
-
- // extend jQuery itself if only one argument is passed
- if ( i === length ) {
- target = this;
- i--;
- }
-
- for ( ; i < length; i++ ) {
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null ) {
- // Extend the base object
- for ( name in options ) {
- src = target[ name ];
- copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy ) {
- continue;
- }
-
- // Recurse if we're merging plain objects or arrays
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
- if ( copyIsArray ) {
- copyIsArray = false;
- clone = src && jQuery.isArray(src) ? src : [];
-
- } else {
- clone = src && jQuery.isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- target[ name ] = jQuery.extend( deep, clone, copy );
-
- // Don't bring in undefined values
- } else if ( copy !== undefined ) {
- target[ name ] = copy;
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
-
-jQuery.extend({
- // Unique for each copy of jQuery on the page
- expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
-
- // Assume jQuery is ready without the ready module
- isReady: true,
-
- error: function( msg ) {
- throw new Error( msg );
- },
-
- noop: function() {},
-
- // See test/unit/core.js for details concerning isFunction.
- // Since version 1.3, DOM methods and functions like alert
- // aren't supported. They return false on IE (#2968).
- isFunction: function( obj ) {
- return jQuery.type(obj) === "function";
- },
-
- isArray: Array.isArray || function( obj ) {
- return jQuery.type(obj) === "array";
- },
-
- isWindow: function( obj ) {
- /* jshint eqeqeq: false */
- return obj != null && obj == obj.window;
- },
-
- isNumeric: function( obj ) {
- // parseFloat NaNs numeric-cast false positives (null|true|false|"")
- // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
- // subtraction forces infinities to NaN
- return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0;
- },
-
- isEmptyObject: function( obj ) {
- var name;
- for ( name in obj ) {
- return false;
- }
- return true;
- },
-
- isPlainObject: function( obj ) {
- var key;
-
- // Must be an Object.
- // Because of IE, we also have to check the presence of the constructor property.
- // Make sure that DOM nodes and window objects don't pass through, as well
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- try {
- // Not own constructor property must be Object
- if ( obj.constructor &&
- !hasOwn.call(obj, "constructor") &&
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
- return false;
- }
- } catch ( e ) {
- // IE8,9 Will throw exceptions on certain host objects #9897
- return false;
- }
-
- // Support: IE<9
- // Handle iteration over inherited properties before own properties.
- if ( support.ownLast ) {
- for ( key in obj ) {
- return hasOwn.call( obj, key );
- }
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
- for ( key in obj ) {}
-
- return key === undefined || hasOwn.call( obj, key );
- },
-
- type: function( obj ) {
- if ( obj == null ) {
- return obj + "";
- }
- return typeof obj === "object" || typeof obj === "function" ?
- class2type[ toString.call(obj) ] || "object" :
- typeof obj;
- },
-
- // Evaluates a script in a global context
- // Workarounds based on findings by Jim Driscoll
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
- globalEval: function( data ) {
- if ( data && jQuery.trim( data ) ) {
- // We use execScript on Internet Explorer
- // We use an anonymous function so that context is window
- // rather than jQuery in Firefox
- ( window.execScript || function( data ) {
- window[ "eval" ].call( window, data );
- } )( data );
- }
- },
-
- // Convert dashed to camelCase; used by the css and data modules
- // Microsoft forgot to hump their vendor prefix (#9572)
- camelCase: function( string ) {
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
- },
-
- // args is for internal usage only
- each: function( obj, callback, args ) {
- var value,
- i = 0,
- length = obj.length,
- isArray = isArraylike( obj );
-
- if ( args ) {
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback.apply( obj[ i ], args );
-
- if ( value === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- value = callback.apply( obj[ i ], args );
-
- if ( value === false ) {
- break;
- }
- }
- }
-
- // A special, fast, case for the most common use of each
- } else {
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback.call( obj[ i ], i, obj[ i ] );
-
- if ( value === false ) {
- break;
- }
- }
- } else {
- for ( i in obj ) {
- value = callback.call( obj[ i ], i, obj[ i ] );
-
- if ( value === false ) {
- break;
- }
- }
- }
- }
-
- return obj;
- },
-
- // Support: Android<4.1, IE<9
- trim: function( text ) {
- return text == null ?
- "" :
- ( text + "" ).replace( rtrim, "" );
- },
-
- // results is for internal usage only
- makeArray: function( arr, results ) {
- var ret = results || [];
-
- if ( arr != null ) {
- if ( isArraylike( Object(arr) ) ) {
- jQuery.merge( ret,
- typeof arr === "string" ?
- [ arr ] : arr
- );
- } else {
- push.call( ret, arr );
- }
- }
-
- return ret;
- },
-
- inArray: function( elem, arr, i ) {
- var len;
-
- if ( arr ) {
- if ( indexOf ) {
- return indexOf.call( arr, elem, i );
- }
-
- len = arr.length;
- i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
-
- for ( ; i < len; i++ ) {
- // Skip accessing in sparse arrays
- if ( i in arr && arr[ i ] === elem ) {
- return i;
- }
- }
- }
-
- return -1;
- },
-
- merge: function( first, second ) {
- var len = +second.length,
- j = 0,
- i = first.length;
-
- while ( j < len ) {
- first[ i++ ] = second[ j++ ];
- }
-
- // Support: IE<9
- // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists)
- if ( len !== len ) {
- while ( second[j] !== undefined ) {
- first[ i++ ] = second[ j++ ];
- }
- }
-
- first.length = i;
-
- return first;
- },
-
- grep: function( elems, callback, invert ) {
- var callbackInverse,
- matches = [],
- i = 0,
- length = elems.length,
- callbackExpect = !invert;
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( ; i < length; i++ ) {
- callbackInverse = !callback( elems[ i ], i );
- if ( callbackInverse !== callbackExpect ) {
- matches.push( elems[ i ] );
- }
- }
-
- return matches;
- },
-
- // arg is for internal usage only
- map: function( elems, callback, arg ) {
- var value,
- i = 0,
- length = elems.length,
- isArray = isArraylike( elems ),
- ret = [];
-
- // Go through the array, translating each of the items to their new values
- if ( isArray ) {
- for ( ; i < length; i++ ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
-
- // Go through every key on the object,
- } else {
- for ( i in elems ) {
- value = callback( elems[ i ], i, arg );
-
- if ( value != null ) {
- ret.push( value );
- }
- }
- }
-
- // Flatten any nested arrays
- return concat.apply( [], ret );
- },
-
- // A global GUID counter for objects
- guid: 1,
-
- // Bind a function to a context, optionally partially applying any
- // arguments.
- proxy: function( fn, context ) {
- var args, proxy, tmp;
-
- if ( typeof context === "string" ) {
- tmp = fn[ context ];
- context = fn;
- fn = tmp;
- }
-
- // Quick check to determine if target is callable, in the spec
- // this throws a TypeError, but we will just return undefined.
- if ( !jQuery.isFunction( fn ) ) {
- return undefined;
- }
-
- // Simulated bind
- args = slice.call( arguments, 2 );
- proxy = function() {
- return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
- };
-
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || jQuery.guid++;
-
- return proxy;
- },
-
- now: function() {
- return +( new Date() );
- },
-
- // jQuery.support is not used in Core but other projects attach their
- // properties to it so it needs to exist.
- support: support
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-function isArraylike( obj ) {
- var length = obj.length,
- type = jQuery.type( obj );
-
- if ( type === "function" || jQuery.isWindow( obj ) ) {
- return false;
- }
-
- if ( obj.nodeType === 1 && length ) {
- return true;
- }
-
- return type === "array" || length === 0 ||
- typeof length === "number" && length > 0 && ( length - 1 ) in obj;
-}
-var Sizzle =
-/*!
- * Sizzle CSS Selector Engine v1.10.19
- * http://sizzlejs.com/
- *
- * Copyright 2013 jQuery Foundation, Inc. and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2014-04-18
- */
-(function( window ) {
-
-var i,
- support,
- Expr,
- getText,
- isXML,
- tokenize,
- compile,
- select,
- outermostContext,
- sortInput,
- hasDuplicate,
-
- // Local document vars
- setDocument,
- document,
- docElem,
- documentIsHTML,
- rbuggyQSA,
- rbuggyMatches,
- matches,
- contains,
-
- // Instance-specific data
- expando = "sizzle" + -(new Date()),
- preferredDoc = window.document,
- dirruns = 0,
- done = 0,
- classCache = createCache(),
- tokenCache = createCache(),
- compilerCache = createCache(),
- sortOrder = function( a, b ) {
- if ( a === b ) {
- hasDuplicate = true;
- }
- return 0;
- },
-
- // General-purpose constants
- strundefined = typeof undefined,
- MAX_NEGATIVE = 1 << 31,
-
- // Instance methods
- hasOwn = ({}).hasOwnProperty,
- arr = [],
- pop = arr.pop,
- push_native = arr.push,
- push = arr.push,
- slice = arr.slice,
- // Use a stripped-down indexOf if we can't use a native one
- indexOf = arr.indexOf || function( elem ) {
- var i = 0,
- len = this.length;
- for ( ; i < len; i++ ) {
- if ( this[i] === elem ) {
- return i;
- }
- }
- return -1;
- },
-
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
-
- // Regular expressions
-
- // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
- whitespace = "[\\x20\\t\\r\\n\\f]",
- // http://www.w3.org/TR/css3-syntax/#characters
- characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
- // Loosely modeled on CSS identifier characters
- // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
- // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
- identifier = characterEncoding.replace( "w", "w#" ),
-
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
- attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
- // Operator (capture 2)
- "*([*^$|!~]?=)" + whitespace +
- // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
- "*\\]",
-
- pseudos = ":(" + characterEncoding + ")(?:\\((" +
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
- // 1. quoted (capture 3; capture 4 or capture 5)
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
- // 2. simple (capture 6)
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
- // 3. anything else (capture 2)
- ".*" +
- ")\\)|)",
-
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
-
- rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
-
- rpseudo = new RegExp( pseudos ),
- ridentifier = new RegExp( "^" + identifier + "$" ),
-
- matchExpr = {
- "ID": new RegExp( "^#(" + characterEncoding + ")" ),
- "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
- "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
- "ATTR": new RegExp( "^" + attributes ),
- "PSEUDO": new RegExp( "^" + pseudos ),
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
- "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
- "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
- // For use in libraries implementing .is()
- // We use this for POS matching in `select`
- "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
- whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
- },
-
- rinputs = /^(?:input|select|textarea|button)$/i,
- rheader = /^h\d$/i,
-
- rnative = /^[^{]+\{\s*\[native \w/,
-
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
- rsibling = /[+~]/,
- rescape = /'|\\/g,
-
- // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
- runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
- funescape = function( _, escaped, escapedWhitespace ) {
- var high = "0x" + escaped - 0x10000;
- // NaN means non-codepoint
- // Support: Firefox<24
- // Workaround erroneous numeric interpretation of +"0x"
- return high !== high || escapedWhitespace ?
- escaped :
- high < 0 ?
- // BMP codepoint
- String.fromCharCode( high + 0x10000 ) :
- // Supplemental Plane codepoint (surrogate pair)
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
- };
-
-// Optimize for push.apply( _, NodeList )
-try {
- push.apply(
- (arr = slice.call( preferredDoc.childNodes )),
- preferredDoc.childNodes
- );
- // Support: Android<4.0
- // Detect silently failing push.apply
- arr[ preferredDoc.childNodes.length ].nodeType;
-} catch ( e ) {
- push = { apply: arr.length ?
-
- // Leverage slice if possible
- function( target, els ) {
- push_native.apply( target, slice.call(els) );
- } :
-
- // Support: IE<9
- // Otherwise append directly
- function( target, els ) {
- var j = target.length,
- i = 0;
- // Can't trust NodeList.length
- while ( (target[j++] = els[i++]) ) {}
- target.length = j - 1;
- }
- };
-}
-
-function Sizzle( selector, context, results, seed ) {
- var match, elem, m, nodeType,
- // QSA vars
- i, groups, old, nid, newContext, newSelector;
-
- if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
- setDocument( context );
- }
-
- context = context || document;
- results = results || [];
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
-
- if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
- return [];
- }
-
- if ( documentIsHTML && !seed ) {
-
- // Shortcuts
- if ( (match = rquickExpr.exec( selector )) ) {
- // Speed-up: Sizzle("#ID")
- if ( (m = match[1]) ) {
- if ( nodeType === 9 ) {
- elem = context.getElementById( m );
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document (jQuery #6963)
- if ( elem && elem.parentNode ) {
- // Handle the case where IE, Opera, and Webkit return items
- // by name instead of ID
- if ( elem.id === m ) {
- results.push( elem );
- return results;
- }
- } else {
- return results;
- }
- } else {
- // Context is not a document
- if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
- contains( context, elem ) && elem.id === m ) {
- results.push( elem );
- return results;
- }
- }
-
- // Speed-up: Sizzle("TAG")
- } else if ( match[2] ) {
- push.apply( results, context.getElementsByTagName( selector ) );
- return results;
-
- // Speed-up: Sizzle(".CLASS")
- } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {
- push.apply( results, context.getElementsByClassName( m ) );
- return results;
- }
- }
-
- // QSA path
- if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
- nid = old = expando;
- newContext = context;
- newSelector = nodeType === 9 && selector;
-
- // qSA works strangely on Element-rooted queries
- // We can work around this by specifying an extra ID on the root
- // and working up from there (Thanks to Andrew Dupont for the technique)
- // IE 8 doesn't work on object elements
- if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
- groups = tokenize( selector );
-
- if ( (old = context.getAttribute("id")) ) {
- nid = old.replace( rescape, "\\$&" );
- } else {
- context.setAttribute( "id", nid );
- }
- nid = "[id='" + nid + "'] ";
-
- i = groups.length;
- while ( i-- ) {
- groups[i] = nid + toSelector( groups[i] );
- }
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context;
- newSelector = groups.join(",");
- }
-
- if ( newSelector ) {
- try {
- push.apply( results,
- newContext.querySelectorAll( newSelector )
- );
- return results;
- } catch(qsaError) {
- } finally {
- if ( !old ) {
- context.removeAttribute("id");
- }
- }
- }
- }
- }
-
- // All others
- return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
- * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- * deleting the oldest entry
- */
-function createCache() {
- var keys = [];
-
- function cache( key, value ) {
- // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
- if ( keys.push( key + " " ) > Expr.cacheLength ) {
- // Only keep the most recent entries
- delete cache[ keys.shift() ];
- }
- return (cache[ key + " " ] = value);
- }
- return cache;
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
- fn[ expando ] = true;
- return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
- var div = document.createElement("div");
-
- try {
- return !!fn( div );
- } catch (e) {
- return false;
- } finally {
- // Remove from its parent by default
- if ( div.parentNode ) {
- div.parentNode.removeChild( div );
- }
- // release memory in IE
- div = null;
- }
-}
-
-/**
- * Adds the same handler for all of the specified attrs
- * @param {String} attrs Pipe-separated list of attributes
- * @param {Function} handler The method that will be applied
- */
-function addHandle( attrs, handler ) {
- var arr = attrs.split("|"),
- i = attrs.length;
-
- while ( i-- ) {
- Expr.attrHandle[ arr[i] ] = handler;
- }
-}
-
-/**
- * Checks document order of two siblings
- * @param {Element} a
- * @param {Element} b
- * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
- */
-function siblingCheck( a, b ) {
- var cur = b && a,
- diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
- ( ~b.sourceIndex || MAX_NEGATIVE ) -
- ( ~a.sourceIndex || MAX_NEGATIVE );
-
- // Use IE sourceIndex if available on both nodes
- if ( diff ) {
- return diff;
- }
-
- // Check if b follows a
- if ( cur ) {
- while ( (cur = cur.nextSibling) ) {
- if ( cur === b ) {
- return -1;
- }
- }
- }
-
- return a ? 1 : -1;
-}
-
-/**
- * Returns a function to use in pseudos for input types
- * @param {String} type
- */
-function createInputPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for buttons
- * @param {String} type
- */
-function createButtonPseudo( type ) {
- return function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return (name === "input" || name === "button") && elem.type === type;
- };
-}
-
-/**
- * Returns a function to use in pseudos for positionals
- * @param {Function} fn
- */
-function createPositionalPseudo( fn ) {
- return markFunction(function( argument ) {
- argument = +argument;
- return markFunction(function( seed, matches ) {
- var j,
- matchIndexes = fn( [], seed.length, argument ),
- i = matchIndexes.length;
-
- // Match elements found at the specified indexes
- while ( i-- ) {
- if ( seed[ (j = matchIndexes[i]) ] ) {
- seed[j] = !(matches[j] = seed[j]);
- }
- }
- });
- });
-}
-
-/**
- * Checks a node for validity as a Sizzle context
- * @param {Element|Object=} context
- * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
- */
-function testContext( context ) {
- return context && typeof context.getElementsByTagName !== strundefined && context;
-}
-
-// Expose support vars for convenience
-support = Sizzle.support = {};
-
-/**
- * Detects XML nodes
- * @param {Element|Object} elem An element or a document
- * @returns {Boolean} True iff elem is a non-HTML XML node
- */
-isXML = Sizzle.isXML = function( elem ) {
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = elem && (elem.ownerDocument || elem).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
- var hasCompare,
- doc = node ? node.ownerDocument || node : preferredDoc,
- parent = doc.defaultView;
-
- // If no document and documentElement is available, return
- if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
- return document;
- }
-
- // Set our document
- document = doc;
- docElem = doc.documentElement;
-
- // Support tests
- documentIsHTML = !isXML( doc );
-
- // Support: IE>8
- // If iframe document is assigned to "document" variable and if iframe has been reloaded,
- // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936
- // IE6-8 do not support the defaultView property so parent will be undefined
- if ( parent && parent !== parent.top ) {
- // IE11 does not have attachEvent, so all must suffer
- if ( parent.addEventListener ) {
- parent.addEventListener( "unload", function() {
- setDocument();
- }, false );
- } else if ( parent.attachEvent ) {
- parent.attachEvent( "onunload", function() {
- setDocument();
- });
- }
- }
-
- /* Attributes
- ---------------------------------------------------------------------- */
-
- // Support: IE<8
- // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)
- support.attributes = assert(function( div ) {
- div.className = "i";
- return !div.getAttribute("className");
- });
-
- /* getElement(s)By*
- ---------------------------------------------------------------------- */
-
- // Check if getElementsByTagName("*") returns only elements
- support.getElementsByTagName = assert(function( div ) {
- div.appendChild( doc.createComment("") );
- return !div.getElementsByTagName("*").length;
- });
-
- // Check if getElementsByClassName can be trusted
- support.getElementsByClassName = rnative.test( doc.getElementsByClassName ) && assert(function( div ) {
- div.innerHTML = "<div class='a'></div><div class='a i'></div>";
-
- // Support: Safari<4
- // Catch class over-caching
- div.firstChild.className = "i";
- // Support: Opera<10
- // Catch gEBCN failure to find non-leading classes
- return div.getElementsByClassName("i").length === 2;
- });
-
- // Support: IE<10
- // Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
- // so use a roundabout getElementsByName test
- support.getById = assert(function( div ) {
- docElem.appendChild( div ).id = expando;
- return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
- });
-
- // ID find and filter
- if ( support.getById ) {
- Expr.find["ID"] = function( id, context ) {
- if ( typeof context.getElementById !== strundefined && documentIsHTML ) {
- var m = context.getElementById( id );
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- return m && m.parentNode ? [ m ] : [];
- }
- };
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- return elem.getAttribute("id") === attrId;
- };
- };
- } else {
- // Support: IE6/7
- // getElementById is not reliable as a find shortcut
- delete Expr.find["ID"];
-
- Expr.filter["ID"] = function( id ) {
- var attrId = id.replace( runescape, funescape );
- return function( elem ) {
- var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
- return node && node.value === attrId;
- };
- };
- }
-
- // Tag
- Expr.find["TAG"] = support.getElementsByTagName ?
- function( tag, context ) {
- if ( typeof context.getElementsByTagName !== strundefined ) {
- return context.getElementsByTagName( tag );
- }
- } :
- function( tag, context ) {
- var elem,
- tmp = [],
- i = 0,
- results = context.getElementsByTagName( tag );
-
- // Filter out possible comments
- if ( tag === "*" ) {
- while ( (elem = results[i++]) ) {
- if ( elem.nodeType === 1 ) {
- tmp.push( elem );
- }
- }
-
- return tmp;
- }
- return results;
- };
-
- // Class
- Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
- if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {
- return context.getElementsByClassName( className );
- }
- };
-
- /* QSA/matchesSelector
- ---------------------------------------------------------------------- */
-
- // QSA and matchesSelector support
-
- // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
- rbuggyMatches = [];
-
- // qSa(:focus) reports false when true (Chrome 21)
- // We allow this because of a bug in IE8/9 that throws an error
- // whenever `document.activeElement` is accessed on an iframe
- // So, we allow :focus to pass through QSA all the time to avoid the IE error
- // See http://bugs.jquery.com/ticket/13378
- rbuggyQSA = [];
-
- if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) {
- // Build QSA regex
- // Regex strategy adopted from Diego Perini
- assert(function( div ) {
- // Select is set to empty string on purpose
- // This is to test IE's treatment of not explicitly
- // setting a boolean content attribute,
- // since its presence should be enough
- // http://bugs.jquery.com/ticket/12359
- div.innerHTML = "<select msallowclip=''><option selected=''></option></select>";
-
- // Support: IE8, Opera 11-12.16
- // Nothing should be selected when empty strings follow ^= or $= or *=
- // The test attribute must be unknown in Opera but "safe" for WinRT
- // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
- if ( div.querySelectorAll("[msallowclip^='']").length ) {
- rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
- }
-
- // Support: IE8
- // Boolean attributes and "value" are not treated correctly
- if ( !div.querySelectorAll("[selected]").length ) {
- rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
- }
-
- // Webkit/Opera - :checked should return selected option elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":checked").length ) {
- rbuggyQSA.push(":checked");
- }
- });
-
- assert(function( div ) {
- // Support: Windows 8 Native Apps
- // The type and name attributes are restricted during .innerHTML assignment
- var input = doc.createElement("input");
- input.setAttribute( "type", "hidden" );
- div.appendChild( input ).setAttribute( "name", "D" );
-
- // Support: IE8
- // Enforce case-sensitivity of name attribute
- if ( div.querySelectorAll("[name=d]").length ) {
- rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
- }
-
- // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
- // IE8 throws error here and will not see later tests
- if ( !div.querySelectorAll(":enabled").length ) {
- rbuggyQSA.push( ":enabled", ":disabled" );
- }
-
- // Opera 10-11 does not throw on post-comma invalid pseudos
- div.querySelectorAll("*,:x");
- rbuggyQSA.push(",.*:");
- });
- }
-
- if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
- docElem.webkitMatchesSelector ||
- docElem.mozMatchesSelector ||
- docElem.oMatchesSelector ||
- docElem.msMatchesSelector) )) ) {
-
- assert(function( div ) {
- // Check to see if it's possible to do matchesSelector
- // on a disconnected node (IE 9)
- support.disconnectedMatch = matches.call( div, "div" );
-
- // This should fail with an exception
- // Gecko does not error, returns false instead
- matches.call( div, "[s!='']:x" );
- rbuggyMatches.push( "!=", pseudos );
- });
- }
-
- rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
- rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
-
- /* Contains
- ---------------------------------------------------------------------- */
- hasCompare = rnative.test( docElem.compareDocumentPosition );
-
- // Element contains another
- // Purposefully does not implement inclusive descendent
- // As in, an element does not contain itself
- contains = hasCompare || rnative.test( docElem.contains ) ?
- function( a, b ) {
- var adown = a.nodeType === 9 ? a.documentElement : a,
- bup = b && b.parentNode;
- return a === bup || !!( bup && bup.nodeType === 1 && (
- adown.contains ?
- adown.contains( bup ) :
- a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
- ));
- } :
- function( a, b ) {
- if ( b ) {
- while ( (b = b.parentNode) ) {
- if ( b === a ) {
- return true;
- }
- }
- }
- return false;
- };
-
- /* Sorting
- ---------------------------------------------------------------------- */
-
- // Document order sorting
- sortOrder = hasCompare ?
- function( a, b ) {
-
- // Flag for duplicate removal
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- // Sort on method existence if only one input has compareDocumentPosition
- var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
- if ( compare ) {
- return compare;
- }
-
- // Calculate position if both inputs belong to the same document
- compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
- a.compareDocumentPosition( b ) :
-
- // Otherwise we know they are disconnected
- 1;
-
- // Disconnected nodes
- if ( compare & 1 ||
- (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
-
- // Choose the first element that is related to our preferred document
- if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
- return -1;
- }
- if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
- return 1;
- }
-
- // Maintain original order
- return sortInput ?
- ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
- 0;
- }
-
- return compare & 4 ? -1 : 1;
- } :
- function( a, b ) {
- // Exit early if the nodes are identical
- if ( a === b ) {
- hasDuplicate = true;
- return 0;
- }
-
- var cur,
- i = 0,
- aup = a.parentNode,
- bup = b.parentNode,
- ap = [ a ],
- bp = [ b ];
-
- // Parentless nodes are either documents or disconnected
- if ( !aup || !bup ) {
- return a === doc ? -1 :
- b === doc ? 1 :
- aup ? -1 :
- bup ? 1 :
- sortInput ?
- ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
- 0;
-
- // If the nodes are siblings, we can do a quick check
- } else if ( aup === bup ) {
- return siblingCheck( a, b );
- }
-
- // Otherwise we need full lists of their ancestors for comparison
- cur = a;
- while ( (cur = cur.parentNode) ) {
- ap.unshift( cur );
- }
- cur = b;
- while ( (cur = cur.parentNode) ) {
- bp.unshift( cur );
- }
-
- // Walk down the tree looking for a discrepancy
- while ( ap[i] === bp[i] ) {
- i++;
- }
-
- return i ?
- // Do a sibling check if the nodes have a common ancestor
- siblingCheck( ap[i], bp[i] ) :
-
- // Otherwise nodes in our document sort first
- ap[i] === preferredDoc ? -1 :
- bp[i] === preferredDoc ? 1 :
- 0;
- };
-
- return doc;
-};
-
-Sizzle.matches = function( expr, elements ) {
- return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- // Make sure that attribute selectors are quoted
- expr = expr.replace( rattributeQuotes, "='$1']" );
-
- if ( support.matchesSelector && documentIsHTML &&
- ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
- ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
-
- try {
- var ret = matches.call( elem, expr );
-
- // IE 9's matchesSelector returns false on disconnected nodes
- if ( ret || support.disconnectedMatch ||
- // As well, disconnected nodes are said to be in a document
- // fragment in IE 9
- elem.document && elem.document.nodeType !== 11 ) {
- return ret;
- }
- } catch(e) {}
- }
-
- return Sizzle( expr, document, null, [ elem ] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
- // Set document vars if needed
- if ( ( context.ownerDocument || context ) !== document ) {
- setDocument( context );
- }
- return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
- // Set document vars if needed
- if ( ( elem.ownerDocument || elem ) !== document ) {
- setDocument( elem );
- }
-
- var fn = Expr.attrHandle[ name.toLowerCase() ],
- // Don't get fooled by Object.prototype properties (jQuery #13807)
- val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
- fn( elem, name, !documentIsHTML ) :
- undefined;
-
- return val !== undefined ?
- val :
- support.attributes || !documentIsHTML ?
- elem.getAttribute( name ) :
- (val = elem.getAttributeNode(name)) && val.specified ?
- val.value :
- null;
-};
-
-Sizzle.error = function( msg ) {
- throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-/**
- * Document sorting and removing duplicates
- * @param {ArrayLike} results
- */
-Sizzle.uniqueSort = function( results ) {
- var elem,
- duplicates = [],
- j = 0,
- i = 0;
-
- // Unless we *know* we can detect duplicates, assume their presence
- hasDuplicate = !support.detectDuplicates;
- sortInput = !support.sortStable && results.slice( 0 );
- results.sort( sortOrder );
-
- if ( hasDuplicate ) {
- while ( (elem = results[i++]) ) {
- if ( elem === results[ i ] ) {
- j = duplicates.push( i );
- }
- }
- while ( j-- ) {
- results.splice( duplicates[ j ], 1 );
- }
- }
-
- // Clear input after sorting to release objects
- // See https://github.com/jquery/sizzle/pull/225
- sortInput = null;
-
- return results;
-};
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
- var node,
- ret = "",
- i = 0,
- nodeType = elem.nodeType;
-
- if ( !nodeType ) {
- // If no nodeType, this is expected to be an array
- while ( (node = elem[i++]) ) {
- // Do not traverse comment nodes
- ret += getText( node );
- }
- } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
- // Use textContent for elements
- // innerText usage removed for consistency of new lines (jQuery #11153)
- if ( typeof elem.textContent === "string" ) {
- return elem.textContent;
- } else {
- // Traverse its children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- ret += getText( elem );
- }
- }
- } else if ( nodeType === 3 || nodeType === 4 ) {
- return elem.nodeValue;
- }
- // Do not include comment or processing instruction nodes
-
- return ret;
-};
-
-Expr = Sizzle.selectors = {
-
- // Can be adjusted by the user
- cacheLength: 50,
-
- createPseudo: markFunction,
-
- match: matchExpr,
-
- attrHandle: {},
-
- find: {},
-
- relative: {
- ">": { dir: "parentNode", first: true },
- " ": { dir: "parentNode" },
- "+": { dir: "previousSibling", first: true },
- "~": { dir: "previousSibling" }
- },
-
- preFilter: {
- "ATTR": function( match ) {
- match[1] = match[1].replace( runescape, funescape );
-
- // Move the given value to match[3] whether quoted or unquoted
- match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
-
- if ( match[2] === "~=" ) {
- match[3] = " " + match[3] + " ";
- }
-
- return match.slice( 0, 4 );
- },
-
- "CHILD": function( match ) {
- /* matches from matchExpr["CHILD"]
- 1 type (only|nth|...)
- 2 what (child|of-type)
- 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
- 4 xn-component of xn+y argument ([+-]?\d*n|)
- 5 sign of xn-component
- 6 x of xn-component
- 7 sign of y-component
- 8 y of y-component
- */
- match[1] = match[1].toLowerCase();
-
- if ( match[1].slice( 0, 3 ) === "nth" ) {
- // nth-* requires argument
- if ( !match[3] ) {
- Sizzle.error( match[0] );
- }
-
- // numeric x and y parameters for Expr.filter.CHILD
- // remember that false/true cast respectively to 0/1
- match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
- match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
- // other types prohibit arguments
- } else if ( match[3] ) {
- Sizzle.error( match[0] );
- }
-
- return match;
- },
-
- "PSEUDO": function( match ) {
- var excess,
- unquoted = !match[6] && match[2];
-
- if ( matchExpr["CHILD"].test( match[0] ) ) {
- return null;
- }
-
- // Accept quoted arguments as-is
- if ( match[3] ) {
- match[2] = match[4] || match[5] || "";
-
- // Strip excess characters from unquoted arguments
- } else if ( unquoted && rpseudo.test( unquoted ) &&
- // Get excess from tokenize (recursively)
- (excess = tokenize( unquoted, true )) &&
- // advance to the next closing parenthesis
- (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
- // excess is a negative index
- match[0] = match[0].slice( 0, excess );
- match[2] = unquoted.slice( 0, excess );
- }
-
- // Return only captures needed by the pseudo filter method (type and argument)
- return match.slice( 0, 3 );
- }
- },
-
- filter: {
-
- "TAG": function( nodeNameSelector ) {
- var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
- return nodeNameSelector === "*" ?
- function() { return true; } :
- function( elem ) {
- return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
- };
- },
-
- "CLASS": function( className ) {
- var pattern = classCache[ className + " " ];
-
- return pattern ||
- (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
- classCache( className, function( elem ) {
- return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" );
- });
- },
-
- "ATTR": function( name, operator, check ) {
- return function( elem ) {
- var result = Sizzle.attr( elem, name );
-
- if ( result == null ) {
- return operator === "!=";
- }
- if ( !operator ) {
- return true;
- }
-
- result += "";
-
- return operator === "=" ? result === check :
- operator === "!=" ? result !== check :
- operator === "^=" ? check && result.indexOf( check ) === 0 :
- operator === "*=" ? check && result.indexOf( check ) > -1 :
- operator === "$=" ? check && result.slice( -check.length ) === check :
- operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
- operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
- false;
- };
- },
-
- "CHILD": function( type, what, argument, first, last ) {
- var simple = type.slice( 0, 3 ) !== "nth",
- forward = type.slice( -4 ) !== "last",
- ofType = what === "of-type";
-
- return first === 1 && last === 0 ?
-
- // Shortcut for :nth-*(n)
- function( elem ) {
- return !!elem.parentNode;
- } :
-
- function( elem, context, xml ) {
- var cache, outerCache, node, diff, nodeIndex, start,
- dir = simple !== forward ? "nextSibling" : "previousSibling",
- parent = elem.parentNode,
- name = ofType && elem.nodeName.toLowerCase(),
- useCache = !xml && !ofType;
-
- if ( parent ) {
-
- // :(first|last|only)-(child|of-type)
- if ( simple ) {
- while ( dir ) {
- node = elem;
- while ( (node = node[ dir ]) ) {
- if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
- return false;
- }
- }
- // Reverse direction for :only-* (if we haven't yet done so)
- start = dir = type === "only" && !start && "nextSibling";
- }
- return true;
- }
-
- start = [ forward ? parent.firstChild : parent.lastChild ];
-
- // non-xml :nth-child(...) stores cache data on `parent`
- if ( forward && useCache ) {
- // Seek `elem` from a previously-cached index
- outerCache = parent[ expando ] || (parent[ expando ] = {});
- cache = outerCache[ type ] || [];
- nodeIndex = cache[0] === dirruns && cache[1];
- diff = cache[0] === dirruns && cache[2];
- node = nodeIndex && parent.childNodes[ nodeIndex ];
-
- while ( (node = ++nodeIndex && node && node[ dir ] ||
-
- // Fallback to seeking `elem` from the start
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- // When found, cache indexes on `parent` and break
- if ( node.nodeType === 1 && ++diff && node === elem ) {
- outerCache[ type ] = [ dirruns, nodeIndex, diff ];
- break;
- }
- }
-
- // Use previously-cached element index if available
- } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
- diff = cache[1];
-
- // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
- } else {
- // Use the same loop as above to seek `elem` from the start
- while ( (node = ++nodeIndex && node && node[ dir ] ||
- (diff = nodeIndex = 0) || start.pop()) ) {
-
- if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
- // Cache the index of each encountered element
- if ( useCache ) {
- (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
- }
-
- if ( node === elem ) {
- break;
- }
- }
- }
- }
-
- // Incorporate the offset, then check against cycle size
- diff -= last;
- return diff === first || ( diff % first === 0 && diff / first >= 0 );
- }
- };
- },
-
- "PSEUDO": function( pseudo, argument ) {
- // pseudo-class names are case-insensitive
- // http://www.w3.org/TR/selectors/#pseudo-classes
- // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
- // Remember that setFilters inherits from pseudos
- var args,
- fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
- Sizzle.error( "unsupported pseudo: " + pseudo );
-
- // The user may use createPseudo to indicate that
- // arguments are needed to create the filter function
- // just as Sizzle does
- if ( fn[ expando ] ) {
- return fn( argument );
- }
-
- // But maintain support for old signatures
- if ( fn.length > 1 ) {
- args = [ pseudo, pseudo, "", argument ];
- return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
- markFunction(function( seed, matches ) {
- var idx,
- matched = fn( seed, argument ),
- i = matched.length;
- while ( i-- ) {
- idx = indexOf.call( seed, matched[i] );
- seed[ idx ] = !( matches[ idx ] = matched[i] );
- }
- }) :
- function( elem ) {
- return fn( elem, 0, args );
- };
- }
-
- return fn;
- }
- },
-
- pseudos: {
- // Potentially complex pseudos
- "not": markFunction(function( selector ) {
- // Trim the selector passed to compile
- // to avoid treating leading and trailing
- // spaces as combinators
- var input = [],
- results = [],
- matcher = compile( selector.replace( rtrim, "$1" ) );
-
- return matcher[ expando ] ?
- markFunction(function( seed, matches, context, xml ) {
- var elem,
- unmatched = matcher( seed, null, xml, [] ),
- i = seed.length;
-
- // Match elements unmatched by `matcher`
- while ( i-- ) {
- if ( (elem = unmatched[i]) ) {
- seed[i] = !(matches[i] = elem);
- }
- }
- }) :
- function( elem, context, xml ) {
- input[0] = elem;
- matcher( input, null, xml, results );
- return !results.pop();
- };
- }),
-
- "has": markFunction(function( selector ) {
- return function( elem ) {
- return Sizzle( selector, elem ).length > 0;
- };
- }),
-
- "contains": markFunction(function( text ) {
- return function( elem ) {
- return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
- };
- }),
-
- // "Whether an element is represented by a :lang() selector
- // is based solely on the element's language value
- // being equal to the identifier C,
- // or beginning with the identifier C immediately followed by "-".
- // The matching of C against the element's language value is performed case-insensitively.
- // The identifier C does not have to be a valid language name."
- // http://www.w3.org/TR/selectors/#lang-pseudo
- "lang": markFunction( function( lang ) {
- // lang value must be a valid identifier
- if ( !ridentifier.test(lang || "") ) {
- Sizzle.error( "unsupported lang: " + lang );
- }
- lang = lang.replace( runescape, funescape ).toLowerCase();
- return function( elem ) {
- var elemLang;
- do {
- if ( (elemLang = documentIsHTML ?
- elem.lang :
- elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
-
- elemLang = elemLang.toLowerCase();
- return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
- }
- } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
- return false;
- };
- }),
-
- // Miscellaneous
- "target": function( elem ) {
- var hash = window.location && window.location.hash;
- return hash && hash.slice( 1 ) === elem.id;
- },
-
- "root": function( elem ) {
- return elem === docElem;
- },
-
- "focus": function( elem ) {
- return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
- },
-
- // Boolean properties
- "enabled": function( elem ) {
- return elem.disabled === false;
- },
-
- "disabled": function( elem ) {
- return elem.disabled === true;
- },
-
- "checked": function( elem ) {
- // In CSS3, :checked should return both checked and selected elements
- // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
- var nodeName = elem.nodeName.toLowerCase();
- return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
- },
-
- "selected": function( elem ) {
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- if ( elem.parentNode ) {
- elem.parentNode.selectedIndex;
- }
-
- return elem.selected === true;
- },
-
- // Contents
- "empty": function( elem ) {
- // http://www.w3.org/TR/selectors/#empty-pseudo
- // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
- // but not by others (comment: 8; processing instruction: 7; etc.)
- // nodeType < 6 works because attributes (2) do not appear as children
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
- if ( elem.nodeType < 6 ) {
- return false;
- }
- }
- return true;
- },
-
- "parent": function( elem ) {
- return !Expr.pseudos["empty"]( elem );
- },
-
- // Element/input types
- "header": function( elem ) {
- return rheader.test( elem.nodeName );
- },
-
- "input": function( elem ) {
- return rinputs.test( elem.nodeName );
- },
-
- "button": function( elem ) {
- var name = elem.nodeName.toLowerCase();
- return name === "input" && elem.type === "button" || name === "button";
- },
-
- "text": function( elem ) {
- var attr;
- return elem.nodeName.toLowerCase() === "input" &&
- elem.type === "text" &&
-
- // Support: IE<8
- // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
- ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
- },
-
- // Position-in-collection
- "first": createPositionalPseudo(function() {
- return [ 0 ];
- }),
-
- "last": createPositionalPseudo(function( matchIndexes, length ) {
- return [ length - 1 ];
- }),
-
- "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
- return [ argument < 0 ? argument + length : argument ];
- }),
-
- "even": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 0;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "odd": createPositionalPseudo(function( matchIndexes, length ) {
- var i = 1;
- for ( ; i < length; i += 2 ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; --i >= 0; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- }),
-
- "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
- var i = argument < 0 ? argument + length : argument;
- for ( ; ++i < length; ) {
- matchIndexes.push( i );
- }
- return matchIndexes;
- })
- }
-};
-
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
- Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
- Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-// Easy API for creating new setFilters
-function setFilters() {}
-setFilters.prototype = Expr.filters = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
- var matched, match, tokens, type,
- soFar, groups, preFilters,
- cached = tokenCache[ selector + " " ];
-
- if ( cached ) {
- return parseOnly ? 0 : cached.slice( 0 );
- }
-
- soFar = selector;
- groups = [];
- preFilters = Expr.preFilter;
-
- while ( soFar ) {
-
- // Comma and first run
- if ( !matched || (match = rcomma.exec( soFar )) ) {
- if ( match ) {
- // Don't consume trailing commas as valid
- soFar = soFar.slice( match[0].length ) || soFar;
- }
- groups.push( (tokens = []) );
- }
-
- matched = false;
-
- // Combinators
- if ( (match = rcombinators.exec( soFar )) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- // Cast descendant combinators to space
- type: match[0].replace( rtrim, " " )
- });
- soFar = soFar.slice( matched.length );
- }
-
- // Filters
- for ( type in Expr.filter ) {
- if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
- (match = preFilters[ type ]( match ))) ) {
- matched = match.shift();
- tokens.push({
- value: matched,
- type: type,
- matches: match
- });
- soFar = soFar.slice( matched.length );
- }
- }
-
- if ( !matched ) {
- break;
- }
- }
-
- // Return the length of the invalid excess
- // if we're just parsing
- // Otherwise, throw an error or return tokens
- return parseOnly ?
- soFar.length :
- soFar ?
- Sizzle.error( selector ) :
- // Cache the tokens
- tokenCache( selector, groups ).slice( 0 );
-};
-
-function toSelector( tokens ) {
- var i = 0,
- len = tokens.length,
- selector = "";
- for ( ; i < len; i++ ) {
- selector += tokens[i].value;
- }
- return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
- var dir = combinator.dir,
- checkNonElements = base && dir === "parentNode",
- doneName = done++;
-
- return combinator.first ?
- // Check against closest ancestor/preceding element
- function( elem, context, xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- return matcher( elem, context, xml );
- }
- }
- } :
-
- // Check against all ancestor/preceding elements
- function( elem, context, xml ) {
- var oldCache, outerCache,
- newCache = [ dirruns, doneName ];
-
- // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
- if ( xml ) {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- if ( matcher( elem, context, xml ) ) {
- return true;
- }
- }
- }
- } else {
- while ( (elem = elem[ dir ]) ) {
- if ( elem.nodeType === 1 || checkNonElements ) {
- outerCache = elem[ expando ] || (elem[ expando ] = {});
- if ( (oldCache = outerCache[ dir ]) &&
- oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
-
- // Assign to newCache so results back-propagate to previous elements
- return (newCache[ 2 ] = oldCache[ 2 ]);
- } else {
- // Reuse newcache so results back-propagate to previous elements
- outerCache[ dir ] = newCache;
-
- // A match means we're done; a fail means we have to keep checking
- if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
- return true;
- }
- }
- }
- }
- }
- };
-}
-
-function elementMatcher( matchers ) {
- return matchers.length > 1 ?
- function( elem, context, xml ) {
- var i = matchers.length;
- while ( i-- ) {
- if ( !matchers[i]( elem, context, xml ) ) {
- return false;
- }
- }
- return true;
- } :
- matchers[0];
-}
-
-function multipleContexts( selector, contexts, results ) {
- var i = 0,
- len = contexts.length;
- for ( ; i < len; i++ ) {
- Sizzle( selector, contexts[i], results );
- }
- return results;
-}
-
-function condense( unmatched, map, filter, context, xml ) {
- var elem,
- newUnmatched = [],
- i = 0,
- len = unmatched.length,
- mapped = map != null;
-
- for ( ; i < len; i++ ) {
- if ( (elem = unmatched[i]) ) {
- if ( !filter || filter( elem, context, xml ) ) {
- newUnmatched.push( elem );
- if ( mapped ) {
- map.push( i );
- }
- }
- }
- }
-
- return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
- if ( postFilter && !postFilter[ expando ] ) {
- postFilter = setMatcher( postFilter );
- }
- if ( postFinder && !postFinder[ expando ] ) {
- postFinder = setMatcher( postFinder, postSelector );
- }
- return markFunction(function( seed, results, context, xml ) {
- var temp, i, elem,
- preMap = [],
- postMap = [],
- preexisting = results.length,
-
- // Get initial elements from seed or context
- elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
- // Prefilter to get matcher input, preserving a map for seed-results synchronization
- matcherIn = preFilter && ( seed || !selector ) ?
- condense( elems, preMap, preFilter, context, xml ) :
- elems,
-
- matcherOut = matcher ?
- // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
- postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
- // ...intermediate processing is necessary
- [] :
-
- // ...otherwise use results directly
- results :
- matcherIn;
-
- // Find primary matches
- if ( matcher ) {
- matcher( matcherIn, matcherOut, context, xml );
- }
-
- // Apply postFilter
- if ( postFilter ) {
- temp = condense( matcherOut, postMap );
- postFilter( temp, [], context, xml );
-
- // Un-match failing elements by moving them back to matcherIn
- i = temp.length;
- while ( i-- ) {
- if ( (elem = temp[i]) ) {
- matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
- }
- }
- }
-
- if ( seed ) {
- if ( postFinder || preFilter ) {
- if ( postFinder ) {
- // Get the final matcherOut by condensing this intermediate into postFinder contexts
- temp = [];
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) ) {
- // Restore matcherIn since elem is not yet a final match
- temp.push( (matcherIn[i] = elem) );
- }
- }
- postFinder( null, (matcherOut = []), temp, xml );
- }
-
- // Move matched elements from seed to results to keep them synchronized
- i = matcherOut.length;
- while ( i-- ) {
- if ( (elem = matcherOut[i]) &&
- (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
-
- seed[temp] = !(results[temp] = elem);
- }
- }
- }
-
- // Add elements to results, through postFinder if defined
- } else {
- matcherOut = condense(
- matcherOut === results ?
- matcherOut.splice( preexisting, matcherOut.length ) :
- matcherOut
- );
- if ( postFinder ) {
- postFinder( null, results, matcherOut, xml );
- } else {
- push.apply( results, matcherOut );
- }
- }
- });
-}
-
-function matcherFromTokens( tokens ) {
- var checkContext, matcher, j,
- len = tokens.length,
- leadingRelative = Expr.relative[ tokens[0].type ],
- implicitRelative = leadingRelative || Expr.relative[" "],
- i = leadingRelative ? 1 : 0,
-
- // The foundational matcher ensures that elements are reachable from top-level context(s)
- matchContext = addCombinator( function( elem ) {
- return elem === checkContext;
- }, implicitRelative, true ),
- matchAnyContext = addCombinator( function( elem ) {
- return indexOf.call( checkContext, elem ) > -1;
- }, implicitRelative, true ),
- matchers = [ function( elem, context, xml ) {
- return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
- (checkContext = context).nodeType ?
- matchContext( elem, context, xml ) :
- matchAnyContext( elem, context, xml ) );
- } ];
-
- for ( ; i < len; i++ ) {
- if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
- matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
- } else {
- matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
- // Return special upon seeing a positional matcher
- if ( matcher[ expando ] ) {
- // Find the next relative operator (if any) for proper handling
- j = ++i;
- for ( ; j < len; j++ ) {
- if ( Expr.relative[ tokens[j].type ] ) {
- break;
- }
- }
- return setMatcher(
- i > 1 && elementMatcher( matchers ),
- i > 1 && toSelector(
- // If the preceding token was a descendant combinator, insert an implicit any-element `*`
- tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
- ).replace( rtrim, "$1" ),
- matcher,
- i < j && matcherFromTokens( tokens.slice( i, j ) ),
- j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
- j < len && toSelector( tokens )
- );
- }
- matchers.push( matcher );
- }
- }
-
- return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
- var bySet = setMatchers.length > 0,
- byElement = elementMatchers.length > 0,
- superMatcher = function( seed, context, xml, results, outermost ) {
- var elem, j, matcher,
- matchedCount = 0,
- i = "0",
- unmatched = seed && [],
- setMatched = [],
- contextBackup = outermostContext,
- // We must always have either seed elements or outermost context
- elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
- // Use integer dirruns iff this is the outermost matcher
- dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
- len = elems.length;
-
- if ( outermost ) {
- outermostContext = context !== document && context;
- }
-
- // Add elements passing elementMatchers directly to results
- // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
- // Support: IE<9, Safari
- // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
- for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
- if ( byElement && elem ) {
- j = 0;
- while ( (matcher = elementMatchers[j++]) ) {
- if ( matcher( elem, context, xml ) ) {
- results.push( elem );
- break;
- }
- }
- if ( outermost ) {
- dirruns = dirrunsUnique;
- }
- }
-
- // Track unmatched elements for set filters
- if ( bySet ) {
- // They will have gone through all possible matchers
- if ( (elem = !matcher && elem) ) {
- matchedCount--;
- }
-
- // Lengthen the array for every element, matched or not
- if ( seed ) {
- unmatched.push( elem );
- }
- }
- }
-
- // Apply set filters to unmatched elements
- matchedCount += i;
- if ( bySet && i !== matchedCount ) {
- j = 0;
- while ( (matcher = setMatchers[j++]) ) {
- matcher( unmatched, setMatched, context, xml );
- }
-
- if ( seed ) {
- // Reintegrate element matches to eliminate the need for sorting
- if ( matchedCount > 0 ) {
- while ( i-- ) {
- if ( !(unmatched[i] || setMatched[i]) ) {
- setMatched[i] = pop.call( results );
- }
- }
- }
-
- // Discard index placeholder values to get only actual matches
- setMatched = condense( setMatched );
- }
-
- // Add matches to results
- push.apply( results, setMatched );
-
- // Seedless set matches succeeding multiple successful matchers stipulate sorting
- if ( outermost && !seed && setMatched.length > 0 &&
- ( matchedCount + setMatchers.length ) > 1 ) {
-
- Sizzle.uniqueSort( results );
- }
- }
-
- // Override manipulation of globals by nested matchers
- if ( outermost ) {
- dirruns = dirrunsUnique;
- outermostContext = contextBackup;
- }
-
- return unmatched;
- };
-
- return bySet ?
- markFunction( superMatcher ) :
- superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
- var i,
- setMatchers = [],
- elementMatchers = [],
- cached = compilerCache[ selector + " " ];
-
- if ( !cached ) {
- // Generate a function of recursive functions that can be used to check each element
- if ( !match ) {
- match = tokenize( selector );
- }
- i = match.length;
- while ( i-- ) {
- cached = matcherFromTokens( match[i] );
- if ( cached[ expando ] ) {
- setMatchers.push( cached );
- } else {
- elementMatchers.push( cached );
- }
- }
-
- // Cache the compiled function
- cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-
- // Save selector and tokenization
- cached.selector = selector;
- }
- return cached;
-};
-
-/**
- * A low-level selection function that works with Sizzle's compiled
- * selector functions
- * @param {String|Function} selector A selector or a pre-compiled
- * selector function built with Sizzle.compile
- * @param {Element} context
- * @param {Array} [results]
- * @param {Array} [seed] A set of elements to match against
- */
-select = Sizzle.select = function( selector, context, results, seed ) {
- var i, tokens, token, type, find,
- compiled = typeof selector === "function" && selector,
- match = !seed && tokenize( (selector = compiled.selector || selector) );
-
- results = results || [];
-
- // Try to minimize operations if there is no seed and only one group
- if ( match.length === 1 ) {
-
- // Take a shortcut and set the context if the root selector is an ID
- tokens = match[0] = match[0].slice( 0 );
- if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
- support.getById && context.nodeType === 9 && documentIsHTML &&
- Expr.relative[ tokens[1].type ] ) {
-
- context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
- if ( !context ) {
- return results;
-
- // Precompiled matchers will still verify ancestry, so step up a level
- } else if ( compiled ) {
- context = context.parentNode;
- }
-
- selector = selector.slice( tokens.shift().value.length );
- }
-
- // Fetch a seed set for right-to-left matching
- i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
- while ( i-- ) {
- token = tokens[i];
-
- // Abort if we hit a combinator
- if ( Expr.relative[ (type = token.type) ] ) {
- break;
- }
- if ( (find = Expr.find[ type ]) ) {
- // Search, expanding context for leading sibling combinators
- if ( (seed = find(
- token.matches[0].replace( runescape, funescape ),
- rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
- )) ) {
-
- // If seed is empty or no tokens remain, we can return early
- tokens.splice( i, 1 );
- selector = seed.length && toSelector( tokens );
- if ( !selector ) {
- push.apply( results, seed );
- return results;
- }
-
- break;
- }
- }
- }
- }
-
- // Compile and execute a filtering function if one is not provided
- // Provide `match` to avoid retokenization if we modified the selector above
- ( compiled || compile( selector, match ) )(
- seed,
- context,
- !documentIsHTML,
- results,
- rsibling.test( selector ) && testContext( context.parentNode ) || context
- );
- return results;
-};
-
-// One-time assignments
-
-// Sort stability
-support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
-
-// Support: Chrome<14
-// Always assume duplicates if they aren't passed to the comparison function
-support.detectDuplicates = !!hasDuplicate;
-
-// Initialize against the default document
-setDocument();
-
-// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
-// Detached nodes confoundingly follow *each other*
-support.sortDetached = assert(function( div1 ) {
- // Should return 1, but returns 4 (following)
- return div1.compareDocumentPosition( document.createElement("div") ) & 1;
-});
-
-// Support: IE<8
-// Prevent attribute/property "interpolation"
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !assert(function( div ) {
- div.innerHTML = "<a href='#'></a>";
- return div.firstChild.getAttribute("href") === "#" ;
-}) ) {
- addHandle( "type|href|height|width", function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
- }
- });
-}
-
-// Support: IE<9
-// Use defaultValue in place of getAttribute("value")
-if ( !support.attributes || !assert(function( div ) {
- div.innerHTML = "<input/>";
- div.firstChild.setAttribute( "value", "" );
- return div.firstChild.getAttribute( "value" ) === "";
-}) ) {
- addHandle( "value", function( elem, name, isXML ) {
- if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
- return elem.defaultValue;
- }
- });
-}
-
-// Support: IE<9
-// Use getAttributeNode to fetch booleans when getAttribute lies
-if ( !assert(function( div ) {
- return div.getAttribute("disabled") == null;
-}) ) {
- addHandle( booleans, function( elem, name, isXML ) {
- var val;
- if ( !isXML ) {
- return elem[ name ] === true ? name.toLowerCase() :
- (val = elem.getAttributeNode( name )) && val.specified ?
- val.value :
- null;
- }
- });
-}
-
-return Sizzle;
-
-})( window );
-
-
-
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.pseudos;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-
-var rneedsContext = jQuery.expr.match.needsContext;
-
-var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
-
-
-
-var risSimple = /^.[^:#\[\.,]*$/;
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, not ) {
- if ( jQuery.isFunction( qualifier ) ) {
- return jQuery.grep( elements, function( elem, i ) {
- /* jshint -W018 */
- return !!qualifier.call( elem, i, elem ) !== not;
- });
-
- }
-
- if ( qualifier.nodeType ) {
- return jQuery.grep( elements, function( elem ) {
- return ( elem === qualifier ) !== not;
- });
-
- }
-
- if ( typeof qualifier === "string" ) {
- if ( risSimple.test( qualifier ) ) {
- return jQuery.filter( qualifier, elements, not );
- }
-
- qualifier = jQuery.filter( qualifier, elements );
- }
-
- return jQuery.grep( elements, function( elem ) {
- return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;
- });
-}
-
-jQuery.filter = function( expr, elems, not ) {
- var elem = elems[ 0 ];
-
- if ( not ) {
- expr = ":not(" + expr + ")";
- }
-
- return elems.length === 1 && elem.nodeType === 1 ?
- jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
- jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
- return elem.nodeType === 1;
- }));
-};
-
-jQuery.fn.extend({
- find: function( selector ) {
- var i,
- ret = [],
- self = this,
- len = self.length;
-
- if ( typeof selector !== "string" ) {
- return this.pushStack( jQuery( selector ).filter(function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( self[ i ], this ) ) {
- return true;
- }
- }
- }) );
- }
-
- for ( i = 0; i < len; i++ ) {
- jQuery.find( selector, self[ i ], ret );
- }
-
- // Needed because $( selector, context ) becomes $( context ).find( selector )
- ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
- ret.selector = this.selector ? this.selector + " " + selector : selector;
- return ret;
- },
- filter: function( selector ) {
- return this.pushStack( winnow(this, selector || [], false) );
- },
- not: function( selector ) {
- return this.pushStack( winnow(this, selector || [], true) );
- },
- is: function( selector ) {
- return !!winnow(
- this,
-
- // If this is a positional/relative selector, check membership in the returned set
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
- typeof selector === "string" && rneedsContext.test( selector ) ?
- jQuery( selector ) :
- selector || [],
- false
- ).length;
- }
-});
-
-
-// Initialize a jQuery object
-
-
-// A central reference to the root jQuery(document)
-var rootjQuery,
-
- // Use the correct document accordingly with window argument (sandbox)
- document = window.document,
-
- // A simple way to check for HTML strings
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
- // Strict HTML recognition (#11290: must start with <)
- rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
-
- init = jQuery.fn.init = function( selector, context ) {
- var match, elem;
-
- // HANDLE: $(""), $(null), $(undefined), $(false)
- if ( !selector ) {
- return this;
- }
-
- // Handle HTML strings
- if ( typeof selector === "string" ) {
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
- // Assume that strings that start and end with <> are HTML and skip the regex check
- match = [ null, selector, null ];
-
- } else {
- match = rquickExpr.exec( selector );
- }
-
- // Match html or make sure no context is specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] ) {
- context = context instanceof jQuery ? context[0] : context;
-
- // scripts is true for back-compat
- // Intentionally let the error be thrown if parseHTML is not present
- jQuery.merge( this, jQuery.parseHTML(
- match[1],
- context && context.nodeType ? context.ownerDocument || context : document,
- true
- ) );
-
- // HANDLE: $(html, props)
- if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
- for ( match in context ) {
- // Properties of context are called as methods if possible
- if ( jQuery.isFunction( this[ match ] ) ) {
- this[ match ]( context[ match ] );
-
- // ...and otherwise set as attributes
- } else {
- this.attr( match, context[ match ] );
- }
- }
- }
-
- return this;
-
- // HANDLE: $(#id)
- } else {
- elem = document.getElementById( match[2] );
-
- // Check parentNode to catch when Blackberry 4.6 returns
- // nodes that are no longer in the document #6963
- if ( elem && elem.parentNode ) {
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id !== match[2] ) {
- return rootjQuery.find( selector );
- }
-
- // Otherwise, we inject the element directly into the jQuery object
- this.length = 1;
- this[0] = elem;
- }
-
- this.context = document;
- this.selector = selector;
- return this;
- }
-
- // HANDLE: $(expr, $(...))
- } else if ( !context || context.jquery ) {
- return ( context || rootjQuery ).find( selector );
-
- // HANDLE: $(expr, context)
- // (which is just equivalent to: $(context).find(expr)
- } else {
- return this.constructor( context ).find( selector );
- }
-
- // HANDLE: $(DOMElement)
- } else if ( selector.nodeType ) {
- this.context = this[0] = selector;
- this.length = 1;
- return this;
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) ) {
- return typeof rootjQuery.ready !== "undefined" ?
- rootjQuery.ready( selector ) :
- // Execute immediately if ready is not present
- selector( jQuery );
- }
-
- if ( selector.selector !== undefined ) {
- this.selector = selector.selector;
- this.context = selector.context;
- }
-
- return jQuery.makeArray( selector, this );
- };
-
-// Give the init function the jQuery prototype for later instantiation
-init.prototype = jQuery.fn;
-
-// Initialize central reference
-rootjQuery = jQuery( document );
-
-
-var rparentsprev = /^(?:parents|prev(?:Until|All))/,
- // methods guaranteed to produce a unique set when starting from a unique set
- guaranteedUnique = {
- children: true,
- contents: true,
- next: true,
- prev: true
- };
-
-jQuery.extend({
- dir: function( elem, dir, until ) {
- var matched = [],
- cur = elem[ dir ];
-
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
- if ( cur.nodeType === 1 ) {
- matched.push( cur );
- }
- cur = cur[dir];
- }
- return matched;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType === 1 && n !== elem ) {
- r.push( n );
- }
- }
-
- return r;
- }
-});
-
-jQuery.fn.extend({
- has: function( target ) {
- var i,
- targets = jQuery( target, this ),
- len = targets.length;
-
- return this.filter(function() {
- for ( i = 0; i < len; i++ ) {
- if ( jQuery.contains( this, targets[i] ) ) {
- return true;
- }
- }
- });
- },
-
- closest: function( selectors, context ) {
- var cur,
- i = 0,
- l = this.length,
- matched = [],
- pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
- jQuery( selectors, context || this.context ) :
- 0;
-
- for ( ; i < l; i++ ) {
- for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
- // Always skip document fragments
- if ( cur.nodeType < 11 && (pos ?
- pos.index(cur) > -1 :
-
- // Don't pass non-elements to Sizzle
- cur.nodeType === 1 &&
- jQuery.find.matchesSelector(cur, selectors)) ) {
-
- matched.push( cur );
- break;
- }
- }
- }
-
- return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
-
- // No argument, return index in parent
- if ( !elem ) {
- return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1;
- }
-
- // index in selector
- if ( typeof elem === "string" ) {
- return jQuery.inArray( this[0], jQuery( elem ) );
- }
-
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem.jquery ? elem[0] : elem, this );
- },
-
- add: function( selector, context ) {
- return this.pushStack(
- jQuery.unique(
- jQuery.merge( this.get(), jQuery( selector, context ) )
- )
- );
- },
-
- addBack: function( selector ) {
- return this.add( selector == null ?
- this.prevObject : this.prevObject.filter(selector)
- );
- }
-});
-
-function sibling( cur, dir ) {
- do {
- cur = cur[ dir ];
- } while ( cur && cur.nodeType !== 1 );
-
- return cur;
-}
-
-jQuery.each({
- parent: function( elem ) {
- var parent = elem.parentNode;
- return parent && parent.nodeType !== 11 ? parent : null;
- },
- parents: function( elem ) {
- return jQuery.dir( elem, "parentNode" );
- },
- parentsUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "parentNode", until );
- },
- next: function( elem ) {
- return sibling( elem, "nextSibling" );
- },
- prev: function( elem ) {
- return sibling( elem, "previousSibling" );
- },
- nextAll: function( elem ) {
- return jQuery.dir( elem, "nextSibling" );
- },
- prevAll: function( elem ) {
- return jQuery.dir( elem, "previousSibling" );
- },
- nextUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "nextSibling", until );
- },
- prevUntil: function( elem, i, until ) {
- return jQuery.dir( elem, "previousSibling", until );
- },
- siblings: function( elem ) {
- return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
- },
- children: function( elem ) {
- return jQuery.sibling( elem.firstChild );
- },
- contents: function( elem ) {
- return jQuery.nodeName( elem, "iframe" ) ?
- elem.contentDocument || elem.contentWindow.document :
- jQuery.merge( [], elem.childNodes );
- }
-}, function( name, fn ) {
- jQuery.fn[ name ] = function( until, selector ) {
- var ret = jQuery.map( this, fn, until );
-
- if ( name.slice( -5 ) !== "Until" ) {
- selector = until;
- }
-
- if ( selector && typeof selector === "string" ) {
- ret = jQuery.filter( selector, ret );
- }
-
- if ( this.length > 1 ) {
- // Remove duplicates
- if ( !guaranteedUnique[ name ] ) {
- ret = jQuery.unique( ret );
- }
-
- // Reverse order for parents* and prev-derivatives
- if ( rparentsprev.test( name ) ) {
- ret = ret.reverse();
- }
- }
-
- return this.pushStack( ret );
- };
-});
-var rnotwhite = (/\S+/g);
-
-
-
-// String to Object options format cache
-var optionsCache = {};
-
-// Convert String-formatted options into Object-formatted ones and store in cache
-function createOptions( options ) {
- var object = optionsCache[ options ] = {};
- jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
- object[ flag ] = true;
- });
- return object;
-}
-
-/*
- * Create a callback list using the following parameters:
- *
- * options: an optional list of space-separated options that will change how
- * the callback list behaves or a more traditional option object
- *
- * By default a callback list will act like an event callback list and can be
- * "fired" multiple times.
- *
- * Possible options:
- *
- * once: will ensure the callback list can only be fired once (like a Deferred)
- *
- * memory: will keep track of previous values and will call any callback added
- * after the list has been fired right away with the latest "memorized"
- * values (like a Deferred)
- *
- * unique: will ensure a callback can only be added once (no duplicate in the list)
- *
- * stopOnFalse: interrupt callings when a callback returns false
- *
- */
-jQuery.Callbacks = function( options ) {
-
- // Convert options from String-formatted to Object-formatted if needed
- // (we check in cache first)
- options = typeof options === "string" ?
- ( optionsCache[ options ] || createOptions( options ) ) :
- jQuery.extend( {}, options );
-
- var // Flag to know if list is currently firing
- firing,
- // Last fire value (for non-forgettable lists)
- memory,
- // Flag to know if list was already fired
- fired,
- // End of the loop when firing
- firingLength,
- // Index of currently firing callback (modified by remove if needed)
- firingIndex,
- // First callback to fire (used internally by add and fireWith)
- firingStart,
- // Actual callback list
- list = [],
- // Stack of fire calls for repeatable lists
- stack = !options.once && [],
- // Fire callbacks
- fire = function( data ) {
- memory = options.memory && data;
- fired = true;
- firingIndex = firingStart || 0;
- firingStart = 0;
- firingLength = list.length;
- firing = true;
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
- if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
- memory = false; // To prevent further calls using add
- break;
- }
- }
- firing = false;
- if ( list ) {
- if ( stack ) {
- if ( stack.length ) {
- fire( stack.shift() );
- }
- } else if ( memory ) {
- list = [];
- } else {
- self.disable();
- }
- }
- },
- // Actual Callbacks object
- self = {
- // Add a callback or a collection of callbacks to the list
- add: function() {
- if ( list ) {
- // First, we save the current length
- var start = list.length;
- (function add( args ) {
- jQuery.each( args, function( _, arg ) {
- var type = jQuery.type( arg );
- if ( type === "function" ) {
- if ( !options.unique || !self.has( arg ) ) {
- list.push( arg );
- }
- } else if ( arg && arg.length && type !== "string" ) {
- // Inspect recursively
- add( arg );
- }
- });
- })( arguments );
- // Do we need to add the callbacks to the
- // current firing batch?
- if ( firing ) {
- firingLength = list.length;
- // With memory, if we're not firing then
- // we should call right away
- } else if ( memory ) {
- firingStart = start;
- fire( memory );
- }
- }
- return this;
- },
- // Remove a callback from the list
- remove: function() {
- if ( list ) {
- jQuery.each( arguments, function( _, arg ) {
- var index;
- while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
- list.splice( index, 1 );
- // Handle firing indexes
- if ( firing ) {
- if ( index <= firingLength ) {
- firingLength--;
- }
- if ( index <= firingIndex ) {
- firingIndex--;
- }
- }
- }
- });
- }
- return this;
- },
- // Check if a given callback is in the list.
- // If no argument is given, return whether or not list has callbacks attached.
- has: function( fn ) {
- return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length );
- },
- // Remove all callbacks from the list
- empty: function() {
- list = [];
- firingLength = 0;
- return this;
- },
- // Have the list do nothing anymore
- disable: function() {
- list = stack = memory = undefined;
- return this;
- },
- // Is it disabled?
- disabled: function() {
- return !list;
- },
- // Lock the list in its current state
- lock: function() {
- stack = undefined;
- if ( !memory ) {
- self.disable();
- }
- return this;
- },
- // Is it locked?
- locked: function() {
- return !stack;
- },
- // Call all callbacks with the given context and arguments
- fireWith: function( context, args ) {
- if ( list && ( !fired || stack ) ) {
- args = args || [];
- args = [ context, args.slice ? args.slice() : args ];
- if ( firing ) {
- stack.push( args );
- } else {
- fire( args );
- }
- }
- return this;
- },
- // Call all the callbacks with the given arguments
- fire: function() {
- self.fireWith( this, arguments );
- return this;
- },
- // To know if the callbacks have already been called at least once
- fired: function() {
- return !!fired;
- }
- };
-
- return self;
-};
-
-
-jQuery.extend({
-
- Deferred: function( func ) {
- var tuples = [
- // action, add listener, listener list, final state
- [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
- [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
- [ "notify", "progress", jQuery.Callbacks("memory") ]
- ],
- state = "pending",
- promise = {
- state: function() {
- return state;
- },
- always: function() {
- deferred.done( arguments ).fail( arguments );
- return this;
- },
- then: function( /* fnDone, fnFail, fnProgress */ ) {
- var fns = arguments;
- return jQuery.Deferred(function( newDefer ) {
- jQuery.each( tuples, function( i, tuple ) {
- var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
- // deferred[ done | fail | progress ] for forwarding actions to newDefer
- deferred[ tuple[1] ](function() {
- var returned = fn && fn.apply( this, arguments );
- if ( returned && jQuery.isFunction( returned.promise ) ) {
- returned.promise()
- .done( newDefer.resolve )
- .fail( newDefer.reject )
- .progress( newDefer.notify );
- } else {
- newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments );
- }
- });
- });
- fns = null;
- }).promise();
- },
- // Get a promise for this deferred
- // If obj is provided, the promise aspect is added to the object
- promise: function( obj ) {
- return obj != null ? jQuery.extend( obj, promise ) : promise;
- }
- },
- deferred = {};
-
- // Keep pipe for back-compat
- promise.pipe = promise.then;
-
- // Add list-specific methods
- jQuery.each( tuples, function( i, tuple ) {
- var list = tuple[ 2 ],
- stateString = tuple[ 3 ];
-
- // promise[ done | fail | progress ] = list.add
- promise[ tuple[1] ] = list.add;
-
- // Handle state
- if ( stateString ) {
- list.add(function() {
- // state = [ resolved | rejected ]
- state = stateString;
-
- // [ reject_list | resolve_list ].disable; progress_list.lock
- }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
- }
-
- // deferred[ resolve | reject | notify ]
- deferred[ tuple[0] ] = function() {
- deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments );
- return this;
- };
- deferred[ tuple[0] + "With" ] = list.fireWith;
- });
-
- // Make the deferred a promise
- promise.promise( deferred );
-
- // Call given func if any
- if ( func ) {
- func.call( deferred, deferred );
- }
-
- // All done!
- return deferred;
- },
-
- // Deferred helper
- when: function( subordinate /* , ..., subordinateN */ ) {
- var i = 0,
- resolveValues = slice.call( arguments ),
- length = resolveValues.length,
-
- // the count of uncompleted subordinates
- remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
-
- // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
- deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
-
- // Update function for both resolve and progress values
- updateFunc = function( i, contexts, values ) {
- return function( value ) {
- contexts[ i ] = this;
- values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
- if ( values === progressValues ) {
- deferred.notifyWith( contexts, values );
-
- } else if ( !(--remaining) ) {
- deferred.resolveWith( contexts, values );
- }
- };
- },
-
- progressValues, progressContexts, resolveContexts;
-
- // add listeners to Deferred subordinates; treat others as resolved
- if ( length > 1 ) {
- progressValues = new Array( length );
- progressContexts = new Array( length );
- resolveContexts = new Array( length );
- for ( ; i < length; i++ ) {
- if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
- resolveValues[ i ].promise()
- .done( updateFunc( i, resolveContexts, resolveValues ) )
- .fail( deferred.reject )
- .progress( updateFunc( i, progressContexts, progressValues ) );
- } else {
- --remaining;
- }
- }
- }
-
- // if we're not waiting on anything, resolve the master
- if ( !remaining ) {
- deferred.resolveWith( resolveContexts, resolveValues );
- }
-
- return deferred.promise();
- }
-});
-
-
-// The deferred used on DOM ready
-var readyList;
-
-jQuery.fn.ready = function( fn ) {
- // Add the callback
- jQuery.ready.promise().done( fn );
-
- return this;
-};
-
-jQuery.extend({
- // Is the DOM ready to be used? Set to true once it occurs.
- isReady: false,
-
- // A counter to track how many items to wait for before
- // the ready event fires. See #6781
- readyWait: 1,
-
- // Hold (or release) the ready event
- holdReady: function( hold ) {
- if ( hold ) {
- jQuery.readyWait++;
- } else {
- jQuery.ready( true );
- }
- },
-
- // Handle when the DOM is ready
- ready: function( wait ) {
-
- // Abort if there are pending holds or we're already ready
- if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
- return;
- }
-
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
- if ( !document.body ) {
- return setTimeout( jQuery.ready );
- }
-
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If a normal DOM Ready event fired, decrement, and wait if need be
- if ( wait !== true && --jQuery.readyWait > 0 ) {
- return;
- }
-
- // If there are functions bound, to execute
- readyList.resolveWith( document, [ jQuery ] );
-
- // Trigger any bound ready events
- if ( jQuery.fn.triggerHandler ) {
- jQuery( document ).triggerHandler( "ready" );
- jQuery( document ).off( "ready" );
- }
- }
-});
-
-/**
- * Clean-up method for dom ready events
- */
-function detach() {
- if ( document.addEventListener ) {
- document.removeEventListener( "DOMContentLoaded", completed, false );
- window.removeEventListener( "load", completed, false );
-
- } else {
- document.detachEvent( "onreadystatechange", completed );
- window.detachEvent( "onload", completed );
- }
-}
-
-/**
- * The ready event handler and self cleanup method
- */
-function completed() {
- // readyState === "complete" is good enough for us to call the dom ready in oldIE
- if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
- detach();
- jQuery.ready();
- }
-}
-
-jQuery.ready.promise = function( obj ) {
- if ( !readyList ) {
-
- readyList = jQuery.Deferred();
-
- // Catch cases where $(document).ready() is called after the browser event has already occurred.
- // we once tried to use readyState "interactive" here, but it caused issues like the one
- // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
- if ( document.readyState === "complete" ) {
- // Handle it asynchronously to allow scripts the opportunity to delay ready
- setTimeout( jQuery.ready );
-
- // Standards-based browsers support DOMContentLoaded
- } else if ( document.addEventListener ) {
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", completed, false );
-
- // A fallback to window.onload, that will always work
- window.addEventListener( "load", completed, false );
-
- // If IE event model is used
- } else {
- // Ensure firing before onload, maybe late but safe also for iframes
- document.attachEvent( "onreadystatechange", completed );
-
- // A fallback to window.onload, that will always work
- window.attachEvent( "onload", completed );
-
- // If IE and not a frame
- // continually check to see if the document is ready
- var top = false;
-
- try {
- top = window.frameElement == null && document.documentElement;
- } catch(e) {}
-
- if ( top && top.doScroll ) {
- (function doScrollCheck() {
- if ( !jQuery.isReady ) {
-
- try {
- // Use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- top.doScroll("left");
- } catch(e) {
- return setTimeout( doScrollCheck, 50 );
- }
-
- // detach all dom ready events
- detach();
-
- // and execute any waiting functions
- jQuery.ready();
- }
- })();
- }
- }
- }
- return readyList.promise( obj );
-};
-
-
-var strundefined = typeof undefined;
-
-
-
-// Support: IE<9
-// Iteration over object's inherited properties before its own
-var i;
-for ( i in jQuery( support ) ) {
- break;
-}
-support.ownLast = i !== "0";
-
-// Note: most support tests are defined in their respective modules.
-// false until the test is run
-support.inlineBlockNeedsLayout = false;
-
-// Execute ASAP in case we need to set body.style.zoom
-jQuery(function() {
- // Minified: var a,b,c,d
- var val, div, body, container;
-
- body = document.getElementsByTagName( "body" )[ 0 ];
- if ( !body || !body.style ) {
- // Return for frameset docs that don't have a body
- return;
- }
-
- // Setup
- div = document.createElement( "div" );
- container = document.createElement( "div" );
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
- body.appendChild( container ).appendChild( div );
-
- if ( typeof div.style.zoom !== strundefined ) {
- // Support: IE<8
- // Check if natively block-level elements act like inline-block
- // elements when setting their display to 'inline' and giving
- // them layout
- div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
-
- support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
- if ( val ) {
- // Prevent IE 6 from affecting layout for positioned elements #11048
- // Prevent IE from shrinking the body in IE 7 mode #12869
- // Support: IE<8
- body.style.zoom = 1;
- }
- }
-
- body.removeChild( container );
-});
-
-
-
-
-(function() {
- var div = document.createElement( "div" );
-
- // Execute the test only if not already executed in another module.
- if (support.deleteExpando == null) {
- // Support: IE<9
- support.deleteExpando = true;
- try {
- delete div.test;
- } catch( e ) {
- support.deleteExpando = false;
- }
- }
-
- // Null elements to avoid leaks in IE.
- div = null;
-})();
-
-
-/**
- * Determines whether an object can have data
- */
-jQuery.acceptData = function( elem ) {
- var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ],
- nodeType = +elem.nodeType || 1;
-
- // Do not set data on non-element DOM nodes because it will not be cleared (#8335).
- return nodeType !== 1 && nodeType !== 9 ?
- false :
-
- // Nodes accept data unless otherwise specified; rejection can be conditional
- !noData || noData !== true && elem.getAttribute("classid") === noData;
-};
-
-
-var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- rmultiDash = /([A-Z])/g;
-
-function dataAttr( elem, key, data ) {
- // If nothing was found internally, try to fetch any
- // data from the HTML5 data-* attribute
- if ( data === undefined && elem.nodeType === 1 ) {
-
- var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
- data = elem.getAttribute( name );
-
- if ( typeof data === "string" ) {
- try {
- data = data === "true" ? true :
- data === "false" ? false :
- data === "null" ? null :
- // Only convert to a number if it doesn't change the string
- +data + "" === data ? +data :
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
- data;
- } catch( e ) {}
-
- // Make sure we set the data so it isn't changed later
- jQuery.data( elem, key, data );
-
- } else {
- data = undefined;
- }
- }
-
- return data;
-}
-
-// checks a cache object for emptiness
-function isEmptyDataObject( obj ) {
- var name;
- for ( name in obj ) {
-
- // if the public data object is empty, the private is still empty
- if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
- continue;
- }
- if ( name !== "toJSON" ) {
- return false;
- }
- }
-
- return true;
-}
-
-function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var ret, thisCache,
- internalKey = jQuery.expando,
-
- // We have to handle DOM nodes and JS objects differently because IE6-7
- // can't GC object references properly across the DOM-JS boundary
- isNode = elem.nodeType,
-
- // Only DOM nodes need the global jQuery cache; JS object data is
- // attached directly to the object so GC can occur automatically
- cache = isNode ? jQuery.cache : elem,
-
- // Only defining an ID for JS objects if its cache already exists allows
- // the code to shortcut on the same path as a DOM node with no cache
- id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
-
- // Avoid doing any more work than we need to when trying to get data on an
- // object that has no data at all
- if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
- return;
- }
-
- if ( !id ) {
- // Only DOM nodes need a new unique ID for each element since their data
- // ends up in the global cache
- if ( isNode ) {
- id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++;
- } else {
- id = internalKey;
- }
- }
-
- if ( !cache[ id ] ) {
- // Avoid exposing jQuery metadata on plain JS objects when the object
- // is serialized using JSON.stringify
- cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
- }
-
- // An object can be passed to jQuery.data instead of a key/value pair; this gets
- // shallow copied over onto the existing cache
- if ( typeof name === "object" || typeof name === "function" ) {
- if ( pvt ) {
- cache[ id ] = jQuery.extend( cache[ id ], name );
- } else {
- cache[ id ].data = jQuery.extend( cache[ id ].data, name );
- }
- }
-
- thisCache = cache[ id ];
-
- // jQuery data() is stored in a separate object inside the object's internal data
- // cache in order to avoid key collisions between internal data and user-defined
- // data.
- if ( !pvt ) {
- if ( !thisCache.data ) {
- thisCache.data = {};
- }
-
- thisCache = thisCache.data;
- }
-
- if ( data !== undefined ) {
- thisCache[ jQuery.camelCase( name ) ] = data;
- }
-
- // Check for both converted-to-camel and non-converted data property names
- // If a data property was specified
- if ( typeof name === "string" ) {
-
- // First Try to find as-is property data
- ret = thisCache[ name ];
-
- // Test for null|undefined property data
- if ( ret == null ) {
-
- // Try to find the camelCased property
- ret = thisCache[ jQuery.camelCase( name ) ];
- }
- } else {
- ret = thisCache;
- }
-
- return ret;
-}
-
-function internalRemoveData( elem, name, pvt ) {
- if ( !jQuery.acceptData( elem ) ) {
- return;
- }
-
- var thisCache, i,
- isNode = elem.nodeType,
-
- // See jQuery.data for more information
- cache = isNode ? jQuery.cache : elem,
- id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
-
- // If there is already no cache entry for this object, there is no
- // purpose in continuing
- if ( !cache[ id ] ) {
- return;
- }
-
- if ( name ) {
-
- thisCache = pvt ? cache[ id ] : cache[ id ].data;
-
- if ( thisCache ) {
-
- // Support array or space separated string names for data keys
- if ( !jQuery.isArray( name ) ) {
-
- // try the string as a key before any manipulation
- if ( name in thisCache ) {
- name = [ name ];
- } else {
-
- // split the camel cased version by spaces unless a key with the spaces exists
- name = jQuery.camelCase( name );
- if ( name in thisCache ) {
- name = [ name ];
- } else {
- name = name.split(" ");
- }
- }
- } else {
- // If "name" is an array of keys...
- // When data is initially created, via ("key", "val") signature,
- // keys will be converted to camelCase.
- // Since there is no way to tell _how_ a key was added, remove
- // both plain key and camelCase key. #12786
- // This will only penalize the array argument path.
- name = name.concat( jQuery.map( name, jQuery.camelCase ) );
- }
-
- i = name.length;
- while ( i-- ) {
- delete thisCache[ name[i] ];
- }
-
- // If there is no data left in the cache, we want to continue
- // and let the cache object itself get destroyed
- if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {
- return;
- }
- }
- }
-
- // See jQuery.data for more information
- if ( !pvt ) {
- delete cache[ id ].data;
-
- // Don't destroy the parent cache unless the internal data object
- // had been the only thing left in it
- if ( !isEmptyDataObject( cache[ id ] ) ) {
- return;
- }
- }
-
- // Destroy the cache
- if ( isNode ) {
- jQuery.cleanData( [ elem ], true );
-
- // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
- /* jshint eqeqeq: false */
- } else if ( support.deleteExpando || cache != cache.window ) {
- /* jshint eqeqeq: true */
- delete cache[ id ];
-
- // When all else fails, null
- } else {
- cache[ id ] = null;
- }
-}
-
-jQuery.extend({
- cache: {},
-
- // The following elements (space-suffixed to avoid Object.prototype collisions)
- // throw uncatchable exceptions if you attempt to set expando properties
- noData: {
- "applet ": true,
- "embed ": true,
- // ...but Flash objects (which have this classid) *can* handle expandos
- "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
- },
-
- hasData: function( elem ) {
- elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
- return !!elem && !isEmptyDataObject( elem );
- },
-
- data: function( elem, name, data ) {
- return internalData( elem, name, data );
- },
-
- removeData: function( elem, name ) {
- return internalRemoveData( elem, name );
- },
-
- // For internal use only.
- _data: function( elem, name, data ) {
- return internalData( elem, name, data, true );
- },
-
- _removeData: function( elem, name ) {
- return internalRemoveData( elem, name, true );
- }
-});
-
-jQuery.fn.extend({
- data: function( key, value ) {
- var i, name, data,
- elem = this[0],
- attrs = elem && elem.attributes;
-
- // Special expections of .data basically thwart jQuery.access,
- // so implement the relevant behavior ourselves
-
- // Gets all values
- if ( key === undefined ) {
- if ( this.length ) {
- data = jQuery.data( elem );
-
- if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
- i = attrs.length;
- while ( i-- ) {
-
- // Support: IE11+
- // The attrs elements can be null (#14894)
- if ( attrs[ i ] ) {
- name = attrs[ i ].name;
- if ( name.indexOf( "data-" ) === 0 ) {
- name = jQuery.camelCase( name.slice(5) );
- dataAttr( elem, name, data[ name ] );
- }
- }
- }
- jQuery._data( elem, "parsedAttrs", true );
- }
- }
-
- return data;
- }
-
- // Sets multiple values
- if ( typeof key === "object" ) {
- return this.each(function() {
- jQuery.data( this, key );
- });
- }
-
- return arguments.length > 1 ?
-
- // Sets one value
- this.each(function() {
- jQuery.data( this, key, value );
- }) :
-
- // Gets one value
- // Try to fetch any internally stored data first
- elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined;
- },
-
- removeData: function( key ) {
- return this.each(function() {
- jQuery.removeData( this, key );
- });
- }
-});
-
-
-jQuery.extend({
- queue: function( elem, type, data ) {
- var queue;
-
- if ( elem ) {
- type = ( type || "fx" ) + "queue";
- queue = jQuery._data( elem, type );
-
- // Speed up dequeue by getting out quickly if this is just a lookup
- if ( data ) {
- if ( !queue || jQuery.isArray(data) ) {
- queue = jQuery._data( elem, type, jQuery.makeArray(data) );
- } else {
- queue.push( data );
- }
- }
- return queue || [];
- }
- },
-
- dequeue: function( elem, type ) {
- type = type || "fx";
-
- var queue = jQuery.queue( elem, type ),
- startLength = queue.length,
- fn = queue.shift(),
- hooks = jQuery._queueHooks( elem, type ),
- next = function() {
- jQuery.dequeue( elem, type );
- };
-
- // If the fx queue is dequeued, always remove the progress sentinel
- if ( fn === "inprogress" ) {
- fn = queue.shift();
- startLength--;
- }
-
- if ( fn ) {
-
- // Add a progress sentinel to prevent the fx queue from being
- // automatically dequeued
- if ( type === "fx" ) {
- queue.unshift( "inprogress" );
- }
-
- // clear up the last queue stop function
- delete hooks.stop;
- fn.call( elem, next, hooks );
- }
-
- if ( !startLength && hooks ) {
- hooks.empty.fire();
- }
- },
-
- // not intended for public consumption - generates a queueHooks object, or returns the current one
- _queueHooks: function( elem, type ) {
- var key = type + "queueHooks";
- return jQuery._data( elem, key ) || jQuery._data( elem, key, {
- empty: jQuery.Callbacks("once memory").add(function() {
- jQuery._removeData( elem, type + "queue" );
- jQuery._removeData( elem, key );
- })
- });
- }
-});
-
-jQuery.fn.extend({
- queue: function( type, data ) {
- var setter = 2;
-
- if ( typeof type !== "string" ) {
- data = type;
- type = "fx";
- setter--;
- }
-
- if ( arguments.length < setter ) {
- return jQuery.queue( this[0], type );
- }
-
- return data === undefined ?
- this :
- this.each(function() {
- var queue = jQuery.queue( this, type, data );
-
- // ensure a hooks for this queue
- jQuery._queueHooks( this, type );
-
- if ( type === "fx" && queue[0] !== "inprogress" ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- dequeue: function( type ) {
- return this.each(function() {
- jQuery.dequeue( this, type );
- });
- },
- clearQueue: function( type ) {
- return this.queue( type || "fx", [] );
- },
- // Get a promise resolved when queues of a certain type
- // are emptied (fx is the type by default)
- promise: function( type, obj ) {
- var tmp,
- count = 1,
- defer = jQuery.Deferred(),
- elements = this,
- i = this.length,
- resolve = function() {
- if ( !( --count ) ) {
- defer.resolveWith( elements, [ elements ] );
- }
- };
-
- if ( typeof type !== "string" ) {
- obj = type;
- type = undefined;
- }
- type = type || "fx";
-
- while ( i-- ) {
- tmp = jQuery._data( elements[ i ], type + "queueHooks" );
- if ( tmp && tmp.empty ) {
- count++;
- tmp.empty.add( resolve );
- }
- }
- resolve();
- return defer.promise( obj );
- }
-});
-var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
-
-var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
-
-var isHidden = function( elem, el ) {
- // isHidden might be called from jQuery#filter function;
- // in that case, element will be second argument
- elem = el || elem;
- return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
- };
-
-
-
-// Multifunctional method to get and set values of a collection
-// The value/s can optionally be executed if it's a function
-var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
- var i = 0,
- length = elems.length,
- bulk = key == null;
-
- // Sets many values
- if ( jQuery.type( key ) === "object" ) {
- chainable = true;
- for ( i in key ) {
- jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
- }
-
- // Sets one value
- } else if ( value !== undefined ) {
- chainable = true;
-
- if ( !jQuery.isFunction( value ) ) {
- raw = true;
- }
-
- if ( bulk ) {
- // Bulk operations run against the entire set
- if ( raw ) {
- fn.call( elems, value );
- fn = null;
-
- // ...except when executing function values
- } else {
- bulk = fn;
- fn = function( elem, key, value ) {
- return bulk.call( jQuery( elem ), value );
- };
- }
- }
-
- if ( fn ) {
- for ( ; i < length; i++ ) {
- fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
- }
- }
- }
-
- return chainable ?
- elems :
-
- // Gets
- bulk ?
- fn.call( elems ) :
- length ? fn( elems[0], key ) : emptyGet;
-};
-var rcheckableType = (/^(?:checkbox|radio)$/i);
-
-
-
-(function() {
- // Minified: var a,b,c
- var input = document.createElement( "input" ),
- div = document.createElement( "div" ),
- fragment = document.createDocumentFragment();
-
- // Setup
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
-
- // IE strips leading whitespace when .innerHTML is used
- support.leadingWhitespace = div.firstChild.nodeType === 3;
-
- // Make sure that tbody elements aren't automatically inserted
- // IE will insert them into empty tables
- support.tbody = !div.getElementsByTagName( "tbody" ).length;
-
- // Make sure that link elements get serialized correctly by innerHTML
- // This requires a wrapper element in IE
- support.htmlSerialize = !!div.getElementsByTagName( "link" ).length;
-
- // Makes sure cloning an html5 element does not cause problems
- // Where outerHTML is undefined, this still works
- support.html5Clone =
- document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav></:nav>";
-
- // Check if a disconnected checkbox will retain its checked
- // value of true after appended to the DOM (IE6/7)
- input.type = "checkbox";
- input.checked = true;
- fragment.appendChild( input );
- support.appendChecked = input.checked;
-
- // Make sure textarea (and checkbox) defaultValue is properly cloned
- // Support: IE6-IE11+
- div.innerHTML = "<textarea>x</textarea>";
- support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
-
- // #11217 - WebKit loses check when the name is after the checked attribute
- fragment.appendChild( div );
- div.innerHTML = "<input type='radio' checked='checked' name='t'/>";
-
- // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
- // old WebKit doesn't clone checked state correctly in fragments
- support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
- // Support: IE<9
- // Opera does not clone events (and typeof div.attachEvent === undefined).
- // IE9-10 clones events bound via attachEvent, but they don't trigger with .click()
- support.noCloneEvent = true;
- if ( div.attachEvent ) {
- div.attachEvent( "onclick", function() {
- support.noCloneEvent = false;
- });
-
- div.cloneNode( true ).click();
- }
-
- // Execute the test only if not already executed in another module.
- if (support.deleteExpando == null) {
- // Support: IE<9
- support.deleteExpando = true;
- try {
- delete div.test;
- } catch( e ) {
- support.deleteExpando = false;
- }
- }
-})();
-
-
-(function() {
- var i, eventName,
- div = document.createElement( "div" );
-
- // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event)
- for ( i in { submit: true, change: true, focusin: true }) {
- eventName = "on" + i;
-
- if ( !(support[ i + "Bubbles" ] = eventName in window) ) {
- // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
- div.setAttribute( eventName, "t" );
- support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false;
- }
- }
-
- // Null elements to avoid leaks in IE.
- div = null;
-})();
-
-
-var rformElems = /^(?:input|select|textarea)$/i,
- rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
- rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
- rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
-
-function returnTrue() {
- return true;
-}
-
-function returnFalse() {
- return false;
-}
-
-function safeActiveElement() {
- try {
- return document.activeElement;
- } catch ( err ) { }
-}
-
-/*
- * Helper functions for managing events -- not part of the public interface.
- * Props to Dean Edwards' addEvent library for many of the ideas.
- */
-jQuery.event = {
-
- global: {},
-
- add: function( elem, types, handler, data, selector ) {
- var tmp, events, t, handleObjIn,
- special, eventHandle, handleObj,
- handlers, type, namespaces, origType,
- elemData = jQuery._data( elem );
-
- // Don't attach events to noData or text/comment nodes (but allow plain objects)
- if ( !elemData ) {
- return;
- }
-
- // Caller can pass in an object of custom data in lieu of the handler
- if ( handler.handler ) {
- handleObjIn = handler;
- handler = handleObjIn.handler;
- selector = handleObjIn.selector;
- }
-
- // Make sure that the handler has a unique ID, used to find/remove it later
- if ( !handler.guid ) {
- handler.guid = jQuery.guid++;
- }
-
- // Init the element's event structure and main handler, if this is the first
- if ( !(events = elemData.events) ) {
- events = elemData.events = {};
- }
- if ( !(eventHandle = elemData.handle) ) {
- eventHandle = elemData.handle = function( e ) {
- // Discard the second event of a jQuery.event.trigger() and
- // when an event is called after a page has unloaded
- return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ?
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
- undefined;
- };
- // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
- eventHandle.elem = elem;
- }
-
- // Handle multiple events separated by a space
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[t] ) || [];
- type = origType = tmp[1];
- namespaces = ( tmp[2] || "" ).split( "." ).sort();
-
- // There *must* be a type, no attaching namespace-only handlers
- if ( !type ) {
- continue;
- }
-
- // If event changes its type, use the special event handlers for the changed type
- special = jQuery.event.special[ type ] || {};
-
- // If selector defined, determine special event api type, otherwise given type
- type = ( selector ? special.delegateType : special.bindType ) || type;
-
- // Update special based on newly reset type
- special = jQuery.event.special[ type ] || {};
-
- // handleObj is passed to all event handlers
- handleObj = jQuery.extend({
- type: type,
- origType: origType,
- data: data,
- handler: handler,
- guid: handler.guid,
- selector: selector,
- needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
- namespace: namespaces.join(".")
- }, handleObjIn );
-
- // Init the event handler queue if we're the first
- if ( !(handlers = events[ type ]) ) {
- handlers = events[ type ] = [];
- handlers.delegateCount = 0;
-
- // Only use addEventListener/attachEvent if the special events handler returns false
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
- // Bind the global event handler to the element
- if ( elem.addEventListener ) {
- elem.addEventListener( type, eventHandle, false );
-
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, eventHandle );
- }
- }
- }
-
- if ( special.add ) {
- special.add.call( elem, handleObj );
-
- if ( !handleObj.handler.guid ) {
- handleObj.handler.guid = handler.guid;
- }
- }
-
- // Add to the element's handler list, delegates in front
- if ( selector ) {
- handlers.splice( handlers.delegateCount++, 0, handleObj );
- } else {
- handlers.push( handleObj );
- }
-
- // Keep track of which events have ever been used, for event optimization
- jQuery.event.global[ type ] = true;
- }
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- // Detach an event or set of events from an element
- remove: function( elem, types, handler, selector, mappedTypes ) {
- var j, handleObj, tmp,
- origCount, t, events,
- special, handlers, type,
- namespaces, origType,
- elemData = jQuery.hasData( elem ) && jQuery._data( elem );
-
- if ( !elemData || !(events = elemData.events) ) {
- return;
- }
-
- // Once for each type.namespace in types; type may be omitted
- types = ( types || "" ).match( rnotwhite ) || [ "" ];
- t = types.length;
- while ( t-- ) {
- tmp = rtypenamespace.exec( types[t] ) || [];
- type = origType = tmp[1];
- namespaces = ( tmp[2] || "" ).split( "." ).sort();
-
- // Unbind all events (on this namespace, if provided) for the element
- if ( !type ) {
- for ( type in events ) {
- jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
- }
- continue;
- }
-
- special = jQuery.event.special[ type ] || {};
- type = ( selector ? special.delegateType : special.bindType ) || type;
- handlers = events[ type ] || [];
- tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" );
-
- // Remove matching events
- origCount = j = handlers.length;
- while ( j-- ) {
- handleObj = handlers[ j ];
-
- if ( ( mappedTypes || origType === handleObj.origType ) &&
- ( !handler || handler.guid === handleObj.guid ) &&
- ( !tmp || tmp.test( handleObj.namespace ) ) &&
- ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
- handlers.splice( j, 1 );
-
- if ( handleObj.selector ) {
- handlers.delegateCount--;
- }
- if ( special.remove ) {
- special.remove.call( elem, handleObj );
- }
- }
- }
-
- // Remove generic event handler if we removed something and no more handlers exist
- // (avoids potential for endless recursion during removal of special event handlers)
- if ( origCount && !handlers.length ) {
- if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
- jQuery.removeEvent( elem, type, elemData.handle );
- }
-
- delete events[ type ];
- }
- }
-
- // Remove the expando if it's no longer used
- if ( jQuery.isEmptyObject( events ) ) {
- delete elemData.handle;
-
- // removeData also checks for emptiness and clears the expando if empty
- // so use it instead of delete
- jQuery._removeData( elem, "events" );
- }
- },
-
- trigger: function( event, data, elem, onlyHandlers ) {
- var handle, ontype, cur,
- bubbleType, special, tmp, i,
- eventPath = [ elem || document ],
- type = hasOwn.call( event, "type" ) ? event.type : event,
- namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : [];
-
- cur = tmp = elem = elem || document;
-
- // Don't do events on text and comment nodes
- if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
- return;
- }
-
- // focus/blur morphs to focusin/out; ensure we're not firing them right now
- if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
- return;
- }
-
- if ( type.indexOf(".") >= 0 ) {
- // Namespaced trigger; create a regexp to match event type in handle()
- namespaces = type.split(".");
- type = namespaces.shift();
- namespaces.sort();
- }
- ontype = type.indexOf(":") < 0 && "on" + type;
-
- // Caller can pass in a jQuery.Event object, Object, or just an event type string
- event = event[ jQuery.expando ] ?
- event :
- new jQuery.Event( type, typeof event === "object" && event );
-
- // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
- event.isTrigger = onlyHandlers ? 2 : 3;
- event.namespace = namespaces.join(".");
- event.namespace_re = event.namespace ?
- new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
- null;
-
- // Clean up the event in case it is being reused
- event.result = undefined;
- if ( !event.target ) {
- event.target = elem;
- }
-
- // Clone any incoming data and prepend the event, creating the handler arg list
- data = data == null ?
- [ event ] :
- jQuery.makeArray( data, [ event ] );
-
- // Allow special events to draw outside the lines
- special = jQuery.event.special[ type ] || {};
- if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
- return;
- }
-
- // Determine event propagation path in advance, per W3C events spec (#9951)
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
-
- bubbleType = special.delegateType || type;
- if ( !rfocusMorph.test( bubbleType + type ) ) {
- cur = cur.parentNode;
- }
- for ( ; cur; cur = cur.parentNode ) {
- eventPath.push( cur );
- tmp = cur;
- }
-
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
- if ( tmp === (elem.ownerDocument || document) ) {
- eventPath.push( tmp.defaultView || tmp.parentWindow || window );
- }
- }
-
- // Fire handlers on the event path
- i = 0;
- while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) {
-
- event.type = i > 1 ?
- bubbleType :
- special.bindType || type;
-
- // jQuery handler
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
- if ( handle ) {
- handle.apply( cur, data );
- }
-
- // Native handler
- handle = ontype && cur[ ontype ];
- if ( handle && handle.apply && jQuery.acceptData( cur ) ) {
- event.result = handle.apply( cur, data );
- if ( event.result === false ) {
- event.preventDefault();
- }
- }
- }
- event.type = type;
-
- // If nobody prevented the default action, do it now
- if ( !onlyHandlers && !event.isDefaultPrevented() ) {
-
- if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
- jQuery.acceptData( elem ) ) {
-
- // Call a native DOM method on the target with the same name name as the event.
- // Can't use an .isFunction() check here because IE6/7 fails that test.
- // Don't do default actions on window, that's where global variables be (#6170)
- if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) {
-
- // Don't re-trigger an onFOO event when we call its FOO() method
- tmp = elem[ ontype ];
-
- if ( tmp ) {
- elem[ ontype ] = null;
- }
-
- // Prevent re-triggering of the same event, since we already bubbled it above
- jQuery.event.triggered = type;
- try {
- elem[ type ]();
- } catch ( e ) {
- // IE<9 dies on focus/blur to hidden element (#1486,#12518)
- // only reproducible on winXP IE8 native, not IE9 in IE8 mode
- }
- jQuery.event.triggered = undefined;
-
- if ( tmp ) {
- elem[ ontype ] = tmp;
- }
- }
- }
- }
-
- return event.result;
- },
-
- dispatch: function( event ) {
-
- // Make a writable jQuery.Event from the native event object
- event = jQuery.event.fix( event );
-
- var i, ret, handleObj, matched, j,
- handlerQueue = [],
- args = slice.call( arguments ),
- handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [],
- special = jQuery.event.special[ event.type ] || {};
-
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
- args[0] = event;
- event.delegateTarget = this;
-
- // Call the preDispatch hook for the mapped type, and let it bail if desired
- if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
- return;
- }
-
- // Determine handlers
- handlerQueue = jQuery.event.handlers.call( this, event, handlers );
-
- // Run delegates first; they may want to stop propagation beneath us
- i = 0;
- while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) {
- event.currentTarget = matched.elem;
-
- j = 0;
- while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) {
-
- // Triggered event must either 1) have no namespace, or
- // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
- if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) {
-
- event.handleObj = handleObj;
- event.data = handleObj.data;
-
- ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
- .apply( matched.elem, args );
-
- if ( ret !== undefined ) {
- if ( (event.result = ret) === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
- }
- }
-
- // Call the postDispatch hook for the mapped type
- if ( special.postDispatch ) {
- special.postDispatch.call( this, event );
- }
-
- return event.result;
- },
-
- handlers: function( event, handlers ) {
- var sel, handleObj, matches, i,
- handlerQueue = [],
- delegateCount = handlers.delegateCount,
- cur = event.target;
-
- // Find delegate handlers
- // Black-hole SVG <use> instance trees (#13180)
- // Avoid non-left-click bubbling in Firefox (#3861)
- if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
-
- /* jshint eqeqeq: false */
- for ( ; cur != this; cur = cur.parentNode || this ) {
- /* jshint eqeqeq: true */
-
- // Don't check non-elements (#13208)
- // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
- if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) {
- matches = [];
- for ( i = 0; i < delegateCount; i++ ) {
- handleObj = handlers[ i ];
-
- // Don't conflict with Object.prototype properties (#13203)
- sel = handleObj.selector + " ";
-
- if ( matches[ sel ] === undefined ) {
- matches[ sel ] = handleObj.needsContext ?
- jQuery( sel, this ).index( cur ) >= 0 :
- jQuery.find( sel, this, null, [ cur ] ).length;
- }
- if ( matches[ sel ] ) {
- matches.push( handleObj );
- }
- }
- if ( matches.length ) {
- handlerQueue.push({ elem: cur, handlers: matches });
- }
- }
- }
- }
-
- // Add the remaining (directly-bound) handlers
- if ( delegateCount < handlers.length ) {
- handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) });
- }
-
- return handlerQueue;
- },
-
- fix: function( event ) {
- if ( event[ jQuery.expando ] ) {
- return event;
- }
-
- // Create a writable copy of the event object and normalize some properties
- var i, prop, copy,
- type = event.type,
- originalEvent = event,
- fixHook = this.fixHooks[ type ];
-
- if ( !fixHook ) {
- this.fixHooks[ type ] = fixHook =
- rmouseEvent.test( type ) ? this.mouseHooks :
- rkeyEvent.test( type ) ? this.keyHooks :
- {};
- }
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
-
- event = new jQuery.Event( originalEvent );
-
- i = copy.length;
- while ( i-- ) {
- prop = copy[ i ];
- event[ prop ] = originalEvent[ prop ];
- }
-
- // Support: IE<9
- // Fix target property (#1925)
- if ( !event.target ) {
- event.target = originalEvent.srcElement || document;
- }
-
- // Support: Chrome 23+, Safari?
- // Target should not be a text node (#504, #13143)
- if ( event.target.nodeType === 3 ) {
- event.target = event.target.parentNode;
- }
-
- // Support: IE<9
- // For mouse/key events, metaKey==false if it's undefined (#3368, #11328)
- event.metaKey = !!event.metaKey;
-
- return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
- },
-
- // Includes some event props shared by KeyEvent and MouseEvent
- props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
-
- fixHooks: {},
-
- keyHooks: {
- props: "char charCode key keyCode".split(" "),
- filter: function( event, original ) {
-
- // Add which for key events
- if ( event.which == null ) {
- event.which = original.charCode != null ? original.charCode : original.keyCode;
- }
-
- return event;
- }
- },
-
- mouseHooks: {
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
- filter: function( event, original ) {
- var body, eventDoc, doc,
- button = original.button,
- fromElement = original.fromElement;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && original.clientX != null ) {
- eventDoc = event.target.ownerDocument || document;
- doc = eventDoc.documentElement;
- body = eventDoc.body;
-
- event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
- event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
- }
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && fromElement ) {
- event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
- }
-
- // Add which for click: 1 === left; 2 === middle; 3 === right
- // Note: button is not normalized, so don't use it
- if ( !event.which && button !== undefined ) {
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
- }
-
- return event;
- }
- },
-
- special: {
- load: {
- // Prevent triggered image.load events from bubbling to window.load
- noBubble: true
- },
- focus: {
- // Fire native event if possible so blur/focus sequence is correct
- trigger: function() {
- if ( this !== safeActiveElement() && this.focus ) {
- try {
- this.focus();
- return false;
- } catch ( e ) {
- // Support: IE<9
- // If we error on focus to hidden element (#1486, #12518),
- // let .trigger() run the handlers
- }
- }
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- if ( this === safeActiveElement() && this.blur ) {
- this.blur();
- return false;
- }
- },
- delegateType: "focusout"
- },
- click: {
- // For checkbox, fire native event so checked state will be right
- trigger: function() {
- if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
- this.click();
- return false;
- }
- },
-
- // For cross-browser consistency, don't fire native .click() on links
- _default: function( event ) {
- return jQuery.nodeName( event.target, "a" );
- }
- },
-
- beforeunload: {
- postDispatch: function( event ) {
-
- // Support: Firefox 20+
- // Firefox doesn't alert if the returnValue field is not set.
- if ( event.result !== undefined && event.originalEvent ) {
- event.originalEvent.returnValue = event.result;
- }
- }
- }
- },
-
- simulate: function( type, elem, event, bubble ) {
- // Piggyback on a donor event to simulate a different one.
- // Fake originalEvent to avoid donor's stopPropagation, but if the
- // simulated event prevents default then we do the same on the donor.
- var e = jQuery.extend(
- new jQuery.Event(),
- event,
- {
- type: type,
- isSimulated: true,
- originalEvent: {}
- }
- );
- if ( bubble ) {
- jQuery.event.trigger( e, null, elem );
- } else {
- jQuery.event.dispatch.call( elem, e );
- }
- if ( e.isDefaultPrevented() ) {
- event.preventDefault();
- }
- }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
- function( elem, type, handle ) {
- if ( elem.removeEventListener ) {
- elem.removeEventListener( type, handle, false );
- }
- } :
- function( elem, type, handle ) {
- var name = "on" + type;
-
- if ( elem.detachEvent ) {
-
- // #8545, #7054, preventing memory leaks for custom events in IE6-8
- // detachEvent needed property on element, by name of that event, to properly expose it to GC
- if ( typeof elem[ name ] === strundefined ) {
- elem[ name ] = null;
- }
-
- elem.detachEvent( name, handle );
- }
- };
-
-jQuery.Event = function( src, props ) {
- // Allow instantiation without the 'new' keyword
- if ( !(this instanceof jQuery.Event) ) {
- return new jQuery.Event( src, props );
- }
-
- // Event object
- if ( src && src.type ) {
- this.originalEvent = src;
- this.type = src.type;
-
- // Events bubbling up the document may have been marked as prevented
- // by a handler lower down the tree; reflect the correct value.
- this.isDefaultPrevented = src.defaultPrevented ||
- src.defaultPrevented === undefined &&
- // Support: IE < 9, Android < 4.0
- src.returnValue === false ?
- returnTrue :
- returnFalse;
-
- // Event type
- } else {
- this.type = src;
- }
-
- // Put explicitly provided properties onto the event object
- if ( props ) {
- jQuery.extend( this, props );
- }
-
- // Create a timestamp if incoming event doesn't have one
- this.timeStamp = src && src.timeStamp || jQuery.now();
-
- // Mark it as fixed
- this[ jQuery.expando ] = true;
-};
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
- isDefaultPrevented: returnFalse,
- isPropagationStopped: returnFalse,
- isImmediatePropagationStopped: returnFalse,
-
- preventDefault: function() {
- var e = this.originalEvent;
-
- this.isDefaultPrevented = returnTrue;
- if ( !e ) {
- return;
- }
-
- // If preventDefault exists, run it on the original event
- if ( e.preventDefault ) {
- e.preventDefault();
-
- // Support: IE
- // Otherwise set the returnValue property of the original event to false
- } else {
- e.returnValue = false;
- }
- },
- stopPropagation: function() {
- var e = this.originalEvent;
-
- this.isPropagationStopped = returnTrue;
- if ( !e ) {
- return;
- }
- // If stopPropagation exists, run it on the original event
- if ( e.stopPropagation ) {
- e.stopPropagation();
- }
-
- // Support: IE
- // Set the cancelBubble property of the original event to true
- e.cancelBubble = true;
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
-
- this.isImmediatePropagationStopped = returnTrue;
-
- if ( e && e.stopImmediatePropagation ) {
- e.stopImmediatePropagation();
- }
-
- this.stopPropagation();
- }
-};
-
-// Create mouseenter/leave events using mouseover/out and event-time checks
-jQuery.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
-}, function( orig, fix ) {
- jQuery.event.special[ orig ] = {
- delegateType: fix,
- bindType: fix,
-
- handle: function( event ) {
- var ret,
- target = this,
- related = event.relatedTarget,
- handleObj = event.handleObj;
-
- // For mousenter/leave call the handler if related is outside the target.
- // NB: No relatedTarget if the mouse left/entered the browser window
- if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
- event.type = handleObj.origType;
- ret = handleObj.handler.apply( this, arguments );
- event.type = fix;
- }
- return ret;
- }
- };
-});
-
-// IE submit delegation
-if ( !support.submitBubbles ) {
-
- jQuery.event.special.submit = {
- setup: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Lazy-add a submit handler when a descendant form may potentially be submitted
- jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
- // Node name check avoids a VML-related crash in IE (#9807)
- var elem = e.target,
- form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
- if ( form && !jQuery._data( form, "submitBubbles" ) ) {
- jQuery.event.add( form, "submit._submit", function( event ) {
- event._submit_bubble = true;
- });
- jQuery._data( form, "submitBubbles", true );
- }
- });
- // return undefined since we don't need an event listener
- },
-
- postDispatch: function( event ) {
- // If form was submitted by the user, bubble the event up the tree
- if ( event._submit_bubble ) {
- delete event._submit_bubble;
- if ( this.parentNode && !event.isTrigger ) {
- jQuery.event.simulate( "submit", this.parentNode, event, true );
- }
- }
- },
-
- teardown: function() {
- // Only need this for delegated form submit events
- if ( jQuery.nodeName( this, "form" ) ) {
- return false;
- }
-
- // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
- jQuery.event.remove( this, "._submit" );
- }
- };
-}
-
-// IE change delegation and checkbox/radio fix
-if ( !support.changeBubbles ) {
-
- jQuery.event.special.change = {
-
- setup: function() {
-
- if ( rformElems.test( this.nodeName ) ) {
- // IE doesn't fire change on a check/radio until blur; trigger it on click
- // after a propertychange. Eat the blur-change in special.change.handle.
- // This still fires onchange a second time for check/radio after blur.
- if ( this.type === "checkbox" || this.type === "radio" ) {
- jQuery.event.add( this, "propertychange._change", function( event ) {
- if ( event.originalEvent.propertyName === "checked" ) {
- this._just_changed = true;
- }
- });
- jQuery.event.add( this, "click._change", function( event ) {
- if ( this._just_changed && !event.isTrigger ) {
- this._just_changed = false;
- }
- // Allow triggered, simulated change events (#11500)
- jQuery.event.simulate( "change", this, event, true );
- });
- }
- return false;
- }
- // Delegated event; lazy-add a change handler on descendant inputs
- jQuery.event.add( this, "beforeactivate._change", function( e ) {
- var elem = e.target;
-
- if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) {
- jQuery.event.add( elem, "change._change", function( event ) {
- if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
- jQuery.event.simulate( "change", this.parentNode, event, true );
- }
- });
- jQuery._data( elem, "changeBubbles", true );
- }
- });
- },
-
- handle: function( event ) {
- var elem = event.target;
-
- // Swallow native change events from checkbox/radio, we already triggered them above
- if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
- return event.handleObj.handler.apply( this, arguments );
- }
- },
-
- teardown: function() {
- jQuery.event.remove( this, "._change" );
-
- return !rformElems.test( this.nodeName );
- }
- };
-}
-
-// Create "bubbling" focus and blur events
-if ( !support.focusinBubbles ) {
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
- // Attach a single capturing handler on the document while someone wants focusin/focusout
- var handler = function( event ) {
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
- };
-
- jQuery.event.special[ fix ] = {
- setup: function() {
- var doc = this.ownerDocument || this,
- attaches = jQuery._data( doc, fix );
-
- if ( !attaches ) {
- doc.addEventListener( orig, handler, true );
- }
- jQuery._data( doc, fix, ( attaches || 0 ) + 1 );
- },
- teardown: function() {
- var doc = this.ownerDocument || this,
- attaches = jQuery._data( doc, fix ) - 1;
-
- if ( !attaches ) {
- doc.removeEventListener( orig, handler, true );
- jQuery._removeData( doc, fix );
- } else {
- jQuery._data( doc, fix, attaches );
- }
- }
- };
- });
-}
-
-jQuery.fn.extend({
-
- on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
- var type, origFn;
-
- // Types can be a map of types/handlers
- if ( typeof types === "object" ) {
- // ( types-Object, selector, data )
- if ( typeof selector !== "string" ) {
- // ( types-Object, data )
- data = data || selector;
- selector = undefined;
- }
- for ( type in types ) {
- this.on( type, selector, data, types[ type ], one );
- }
- return this;
- }
-
- if ( data == null && fn == null ) {
- // ( types, fn )
- fn = selector;
- data = selector = undefined;
- } else if ( fn == null ) {
- if ( typeof selector === "string" ) {
- // ( types, selector, fn )
- fn = data;
- data = undefined;
- } else {
- // ( types, data, fn )
- fn = data;
- data = selector;
- selector = undefined;
- }
- }
- if ( fn === false ) {
- fn = returnFalse;
- } else if ( !fn ) {
- return this;
- }
-
- if ( one === 1 ) {
- origFn = fn;
- fn = function( event ) {
- // Can use an empty set, since event contains the info
- jQuery().off( event );
- return origFn.apply( this, arguments );
- };
- // Use same guid so caller can remove using origFn
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
- }
- return this.each( function() {
- jQuery.event.add( this, types, fn, data, selector );
- });
- },
- one: function( types, selector, data, fn ) {
- return this.on( types, selector, data, fn, 1 );
- },
- off: function( types, selector, fn ) {
- var handleObj, type;
- if ( types && types.preventDefault && types.handleObj ) {
- // ( event ) dispatched jQuery.Event
- handleObj = types.handleObj;
- jQuery( types.delegateTarget ).off(
- handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
- handleObj.selector,
- handleObj.handler
- );
- return this;
- }
- if ( typeof types === "object" ) {
- // ( types-object [, selector] )
- for ( type in types ) {
- this.off( type, selector, types[ type ] );
- }
- return this;
- }
- if ( selector === false || typeof selector === "function" ) {
- // ( types [, fn] )
- fn = selector;
- selector = undefined;
- }
- if ( fn === false ) {
- fn = returnFalse;
- }
- return this.each(function() {
- jQuery.event.remove( this, types, fn, selector );
- });
- },
-
- trigger: function( type, data ) {
- return this.each(function() {
- jQuery.event.trigger( type, data, this );
- });
- },
- triggerHandler: function( type, data ) {
- var elem = this[0];
- if ( elem ) {
- return jQuery.event.trigger( type, data, elem, true );
- }
- }
-});
-
-
-function createSafeFragment( document ) {
- var list = nodeNames.split( "|" ),
- safeFrag = document.createDocumentFragment();
-
- if ( safeFrag.createElement ) {
- while ( list.length ) {
- safeFrag.createElement(
- list.pop()
- );
- }
- }
- return safeFrag;
-}
-
-var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
- "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
- rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
- rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
- rleadingWhitespace = /^\s+/,
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
- rtagName = /<([\w:]+)/,
- rtbody = /<tbody/i,
- rhtml = /<|&#?\w+;/,
- rnoInnerhtml = /<(?:script|style|link)/i,
- // checked="checked" or checked
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
- rscriptType = /^$|\/(?:java|ecma)script/i,
- rscriptTypeMasked = /^true\/(.*)/,
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
-
- // We have to close these tags to support XHTML (#13200)
- wrapMap = {
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
- legend: [ 1, "<fieldset>", "</fieldset>" ],
- area: [ 1, "<map>", "</map>" ],
- param: [ 1, "<object>", "</object>" ],
- thead: [ 1, "<table>", "</table>" ],
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-
- // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
- // unless wrapped in a div with non-breaking characters in front of it.
- _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
- },
- safeFragment = createSafeFragment( document ),
- fragmentDiv = safeFragment.appendChild( document.createElement("div") );
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-function getAll( context, tag ) {
- var elems, elem,
- i = 0,
- found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) :
- typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) :
- undefined;
-
- if ( !found ) {
- for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
- if ( !tag || jQuery.nodeName( elem, tag ) ) {
- found.push( elem );
- } else {
- jQuery.merge( found, getAll( elem, tag ) );
- }
- }
- }
-
- return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
- jQuery.merge( [ context ], found ) :
- found;
-}
-
-// Used in buildFragment, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
- if ( rcheckableType.test( elem.type ) ) {
- elem.defaultChecked = elem.checked;
- }
-}
-
-// Support: IE<8
-// Manipulating tables requires a tbody
-function manipulationTarget( elem, content ) {
- return jQuery.nodeName( elem, "table" ) &&
- jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
-
- elem.getElementsByTagName("tbody")[0] ||
- elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
- elem;
-}
-
-// Replace/restore the type attribute of script elements for safe DOM manipulation
-function disableScript( elem ) {
- elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
- return elem;
-}
-function restoreScript( elem ) {
- var match = rscriptTypeMasked.exec( elem.type );
- if ( match ) {
- elem.type = match[1];
- } else {
- elem.removeAttribute("type");
- }
- return elem;
-}
-
-// Mark scripts as having already been evaluated
-function setGlobalEval( elems, refElements ) {
- var elem,
- i = 0;
- for ( ; (elem = elems[i]) != null; i++ ) {
- jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
- }
-}
-
-function cloneCopyEvent( src, dest ) {
-
- if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
- return;
- }
-
- var type, i, l,
- oldData = jQuery._data( src ),
- curData = jQuery._data( dest, oldData ),
- events = oldData.events;
-
- if ( events ) {
- delete curData.handle;
- curData.events = {};
-
- for ( type in events ) {
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
- jQuery.event.add( dest, type, events[ type ][ i ] );
- }
- }
- }
-
- // make the cloned public data object a copy from the original
- if ( curData.data ) {
- curData.data = jQuery.extend( {}, curData.data );
- }
-}
-
-function fixCloneNodeIssues( src, dest ) {
- var nodeName, e, data;
-
- // We do not need to do anything for non-Elements
- if ( dest.nodeType !== 1 ) {
- return;
- }
-
- nodeName = dest.nodeName.toLowerCase();
-
- // IE6-8 copies events bound via attachEvent when using cloneNode.
- if ( !support.noCloneEvent && dest[ jQuery.expando ] ) {
- data = jQuery._data( dest );
-
- for ( e in data.events ) {
- jQuery.removeEvent( dest, e, data.handle );
- }
-
- // Event data gets referenced instead of copied if the expando gets copied too
- dest.removeAttribute( jQuery.expando );
- }
-
- // IE blanks contents when cloning scripts, and tries to evaluate newly-set text
- if ( nodeName === "script" && dest.text !== src.text ) {
- disableScript( dest ).text = src.text;
- restoreScript( dest );
-
- // IE6-10 improperly clones children of object elements using classid.
- // IE10 throws NoModificationAllowedError if parent is null, #12132.
- } else if ( nodeName === "object" ) {
- if ( dest.parentNode ) {
- dest.outerHTML = src.outerHTML;
- }
-
- // This path appears unavoidable for IE9. When cloning an object
- // element in IE9, the outerHTML strategy above is not sufficient.
- // If the src has innerHTML and the destination does not,
- // copy the src.innerHTML into the dest.innerHTML. #10324
- if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) {
- dest.innerHTML = src.innerHTML;
- }
-
- } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
- // IE6-8 fails to persist the checked state of a cloned checkbox
- // or radio button. Worse, IE6-7 fail to give the cloned element
- // a checked appearance if the defaultChecked value isn't also set
-
- dest.defaultChecked = dest.checked = src.checked;
-
- // IE6-7 get confused and end up setting the value of a cloned
- // checkbox/radio button to an empty string instead of "on"
- if ( dest.value !== src.value ) {
- dest.value = src.value;
- }
-
- // IE6-8 fails to return the selected option to the default selected
- // state when cloning options
- } else if ( nodeName === "option" ) {
- dest.defaultSelected = dest.selected = src.defaultSelected;
-
- // IE6-8 fails to set the defaultValue to the correct value when
- // cloning other types of input fields
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
- dest.defaultValue = src.defaultValue;
- }
-}
-
-jQuery.extend({
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
- var destElements, node, clone, i, srcElements,
- inPage = jQuery.contains( elem.ownerDocument, elem );
-
- if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
- clone = elem.cloneNode( true );
-
- // IE<=8 does not properly clone detached, unknown element nodes
- } else {
- fragmentDiv.innerHTML = elem.outerHTML;
- fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
- }
-
- if ( (!support.noCloneEvent || !support.noCloneChecked) &&
- (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-
- // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
- destElements = getAll( clone );
- srcElements = getAll( elem );
-
- // Fix all IE cloning issues
- for ( i = 0; (node = srcElements[i]) != null; ++i ) {
- // Ensure that the destination node is not null; Fixes #9587
- if ( destElements[i] ) {
- fixCloneNodeIssues( node, destElements[i] );
- }
- }
- }
-
- // Copy the events from the original to the clone
- if ( dataAndEvents ) {
- if ( deepDataAndEvents ) {
- srcElements = srcElements || getAll( elem );
- destElements = destElements || getAll( clone );
-
- for ( i = 0; (node = srcElements[i]) != null; i++ ) {
- cloneCopyEvent( node, destElements[i] );
- }
- } else {
- cloneCopyEvent( elem, clone );
- }
- }
-
- // Preserve script evaluation history
- destElements = getAll( clone, "script" );
- if ( destElements.length > 0 ) {
- setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
- }
-
- destElements = srcElements = node = null;
-
- // Return the cloned set
- return clone;
- },
-
- buildFragment: function( elems, context, scripts, selection ) {
- var j, elem, contains,
- tmp, tag, tbody, wrap,
- l = elems.length,
-
- // Ensure a safe fragment
- safe = createSafeFragment( context ),
-
- nodes = [],
- i = 0;
-
- for ( ; i < l; i++ ) {
- elem = elems[ i ];
-
- if ( elem || elem === 0 ) {
-
- // Add nodes directly
- if ( jQuery.type( elem ) === "object" ) {
- jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
-
- // Convert non-html into a text node
- } else if ( !rhtml.test( elem ) ) {
- nodes.push( context.createTextNode( elem ) );
-
- // Convert html into DOM nodes
- } else {
- tmp = tmp || safe.appendChild( context.createElement("div") );
-
- // Deserialize a standard representation
- tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase();
- wrap = wrapMap[ tag ] || wrapMap._default;
-
- tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[2];
-
- // Descend through wrappers to the right content
- j = wrap[0];
- while ( j-- ) {
- tmp = tmp.lastChild;
- }
-
- // Manually add leading whitespace removed by IE
- if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
- nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) );
- }
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( !support.tbody ) {
-
- // String was a <table>, *may* have spurious <tbody>
- elem = tag === "table" && !rtbody.test( elem ) ?
- tmp.firstChild :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] === "<table>" && !rtbody.test( elem ) ?
- tmp :
- 0;
-
- j = elem && elem.childNodes.length;
- while ( j-- ) {
- if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) {
- elem.removeChild( tbody );
- }
- }
- }
-
- jQuery.merge( nodes, tmp.childNodes );
-
- // Fix #12392 for WebKit and IE > 9
- tmp.textContent = "";
-
- // Fix #12392 for oldIE
- while ( tmp.firstChild ) {
- tmp.removeChild( tmp.firstChild );
- }
-
- // Remember the top-level container for proper cleanup
- tmp = safe.lastChild;
- }
- }
- }
-
- // Fix #11356: Clear elements from fragment
- if ( tmp ) {
- safe.removeChild( tmp );
- }
-
- // Reset defaultChecked for any radios and checkboxes
- // about to be appended to the DOM in IE 6/7 (#8060)
- if ( !support.appendChecked ) {
- jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked );
- }
-
- i = 0;
- while ( (elem = nodes[ i++ ]) ) {
-
- // #4087 - If origin and destination elements are the same, and this is
- // that element, do not do anything
- if ( selection && jQuery.inArray( elem, selection ) !== -1 ) {
- continue;
- }
-
- contains = jQuery.contains( elem.ownerDocument, elem );
-
- // Append to fragment
- tmp = getAll( safe.appendChild( elem ), "script" );
-
- // Preserve script evaluation history
- if ( contains ) {
- setGlobalEval( tmp );
- }
-
- // Capture executables
- if ( scripts ) {
- j = 0;
- while ( (elem = tmp[ j++ ]) ) {
- if ( rscriptType.test( elem.type || "" ) ) {
- scripts.push( elem );
- }
- }
- }
- }
-
- tmp = null;
-
- return safe;
- },
-
- cleanData: function( elems, /* internal */ acceptData ) {
- var elem, type, id, data,
- i = 0,
- internalKey = jQuery.expando,
- cache = jQuery.cache,
- deleteExpando = support.deleteExpando,
- special = jQuery.event.special;
-
- for ( ; (elem = elems[i]) != null; i++ ) {
- if ( acceptData || jQuery.acceptData( elem ) ) {
-
- id = elem[ internalKey ];
- data = id && cache[ id ];
-
- if ( data ) {
- if ( data.events ) {
- for ( type in data.events ) {
- if ( special[ type ] ) {
- jQuery.event.remove( elem, type );
-
- // This is a shortcut to avoid jQuery.event.remove's overhead
- } else {
- jQuery.removeEvent( elem, type, data.handle );
- }
- }
- }
-
- // Remove cache only if it was not already removed by jQuery.event.remove
- if ( cache[ id ] ) {
-
- delete cache[ id ];
-
- // IE does not allow us to delete expando properties from nodes,
- // nor does it have a removeAttribute function on Document nodes;
- // we must handle all of these cases
- if ( deleteExpando ) {
- delete elem[ internalKey ];
-
- } else if ( typeof elem.removeAttribute !== strundefined ) {
- elem.removeAttribute( internalKey );
-
- } else {
- elem[ internalKey ] = null;
- }
-
- deletedIds.push( id );
- }
- }
- }
- }
- }
-});
-
-jQuery.fn.extend({
- text: function( value ) {
- return access( this, function( value ) {
- return value === undefined ?
- jQuery.text( this ) :
- this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
- }, null, value, arguments.length );
- },
-
- append: function() {
- return this.domManip( arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.appendChild( elem );
- }
- });
- },
-
- prepend: function() {
- return this.domManip( arguments, function( elem ) {
- if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
- var target = manipulationTarget( this, elem );
- target.insertBefore( elem, target.firstChild );
- }
- });
- },
-
- before: function() {
- return this.domManip( arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this );
- }
- });
- },
-
- after: function() {
- return this.domManip( arguments, function( elem ) {
- if ( this.parentNode ) {
- this.parentNode.insertBefore( elem, this.nextSibling );
- }
- });
- },
-
- remove: function( selector, keepData /* Internal Use Only */ ) {
- var elem,
- elems = selector ? jQuery.filter( selector, this ) : this,
- i = 0;
-
- for ( ; (elem = elems[i]) != null; i++ ) {
-
- if ( !keepData && elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem ) );
- }
-
- if ( elem.parentNode ) {
- if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
- setGlobalEval( getAll( elem, "script" ) );
- }
- elem.parentNode.removeChild( elem );
- }
- }
-
- return this;
- },
-
- empty: function() {
- var elem,
- i = 0;
-
- for ( ; (elem = this[i]) != null; i++ ) {
- // Remove element nodes and prevent memory leaks
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- }
-
- // Remove any remaining nodes
- while ( elem.firstChild ) {
- elem.removeChild( elem.firstChild );
- }
-
- // If this is a select, ensure that it displays empty (#12336)
- // Support: IE<9
- if ( elem.options && jQuery.nodeName( elem, "select" ) ) {
- elem.options.length = 0;
- }
- }
-
- return this;
- },
-
- clone: function( dataAndEvents, deepDataAndEvents ) {
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
- return this.map(function() {
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
- });
- },
-
- html: function( value ) {
- return access( this, function( value ) {
- var elem = this[ 0 ] || {},
- i = 0,
- l = this.length;
-
- if ( value === undefined ) {
- return elem.nodeType === 1 ?
- elem.innerHTML.replace( rinlinejQuery, "" ) :
- undefined;
- }
-
- // See if we can take a shortcut and just use innerHTML
- if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- ( support.htmlSerialize || !rnoshimcache.test( value ) ) &&
- ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
- !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) {
-
- value = value.replace( rxhtmlTag, "<$1></$2>" );
-
- try {
- for (; i < l; i++ ) {
- // Remove element nodes and prevent memory leaks
- elem = this[i] || {};
- if ( elem.nodeType === 1 ) {
- jQuery.cleanData( getAll( elem, false ) );
- elem.innerHTML = value;
- }
- }
-
- elem = 0;
-
- // If using innerHTML throws an exception, use the fallback method
- } catch(e) {}
- }
-
- if ( elem ) {
- this.empty().append( value );
- }
- }, null, value, arguments.length );
- },
-
- replaceWith: function() {
- var arg = arguments[ 0 ];
-
- // Make the changes, replacing each context element with the new content
- this.domManip( arguments, function( elem ) {
- arg = this.parentNode;
-
- jQuery.cleanData( getAll( this ) );
-
- if ( arg ) {
- arg.replaceChild( elem, this );
- }
- });
-
- // Force removal if there was no new content (e.g., from empty arguments)
- return arg && (arg.length || arg.nodeType) ? this : this.remove();
- },
-
- detach: function( selector ) {
- return this.remove( selector, true );
- },
-
- domManip: function( args, callback ) {
-
- // Flatten any nested arrays
- args = concat.apply( [], args );
-
- var first, node, hasScripts,
- scripts, doc, fragment,
- i = 0,
- l = this.length,
- set = this,
- iNoClone = l - 1,
- value = args[0],
- isFunction = jQuery.isFunction( value );
-
- // We can't cloneNode fragments that contain checked, in WebKit
- if ( isFunction ||
- ( l > 1 && typeof value === "string" &&
- !support.checkClone && rchecked.test( value ) ) ) {
- return this.each(function( index ) {
- var self = set.eq( index );
- if ( isFunction ) {
- args[0] = value.call( this, index, self.html() );
- }
- self.domManip( args, callback );
- });
- }
-
- if ( l ) {
- fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
- first = fragment.firstChild;
-
- if ( fragment.childNodes.length === 1 ) {
- fragment = first;
- }
-
- if ( first ) {
- scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
- hasScripts = scripts.length;
-
- // Use the original fragment for the last item instead of the first because it can end up
- // being emptied incorrectly in certain situations (#8070).
- for ( ; i < l; i++ ) {
- node = fragment;
-
- if ( i !== iNoClone ) {
- node = jQuery.clone( node, true, true );
-
- // Keep references to cloned scripts for later restoration
- if ( hasScripts ) {
- jQuery.merge( scripts, getAll( node, "script" ) );
- }
- }
-
- callback.call( this[i], node, i );
- }
-
- if ( hasScripts ) {
- doc = scripts[ scripts.length - 1 ].ownerDocument;
-
- // Reenable scripts
- jQuery.map( scripts, restoreScript );
-
- // Evaluate executable scripts on first document insertion
- for ( i = 0; i < hasScripts; i++ ) {
- node = scripts[ i ];
- if ( rscriptType.test( node.type || "" ) &&
- !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) {
-
- if ( node.src ) {
- // Optional AJAX dependency, but won't run scripts if not present
- if ( jQuery._evalUrl ) {
- jQuery._evalUrl( node.src );
- }
- } else {
- jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
- }
- }
- }
- }
-
- // Fix #11809: Avoid leaking memory
- fragment = first = null;
- }
- }
-
- return this;
- }
-});
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function( name, original ) {
- jQuery.fn[ name ] = function( selector ) {
- var elems,
- i = 0,
- ret = [],
- insert = jQuery( selector ),
- last = insert.length - 1;
-
- for ( ; i <= last; i++ ) {
- elems = i === last ? this : this.clone(true);
- jQuery( insert[i] )[ original ]( elems );
-
- // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
- push.apply( ret, elems.get() );
- }
-
- return this.pushStack( ret );
- };
-});
-
-
-var iframe,
- elemdisplay = {};
-
-/**
- * Retrieve the actual display of a element
- * @param {String} name nodeName of the element
- * @param {Object} doc Document object
- */
-// Called only from within defaultDisplay
-function actualDisplay( name, doc ) {
- var style,
- elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
-
- // getDefaultComputedStyle might be reliably used only on attached element
- display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
-
- // Use of this method is a temporary fix (more like optmization) until something better comes along,
- // since it was removed from specification and supported only in FF
- style.display : jQuery.css( elem[ 0 ], "display" );
-
- // We don't have any data stored on the element,
- // so use "detach" method as fast way to get rid of the element
- elem.detach();
-
- return display;
-}
-
-/**
- * Try to determine the default display value of an element
- * @param {String} nodeName
- */
-function defaultDisplay( nodeName ) {
- var doc = document,
- display = elemdisplay[ nodeName ];
-
- if ( !display ) {
- display = actualDisplay( nodeName, doc );
-
- // If the simple way fails, read from inside an iframe
- if ( display === "none" || !display ) {
-
- // Use the already-created iframe if possible
- iframe = (iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" )).appendTo( doc.documentElement );
-
- // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
- doc = ( iframe[ 0 ].contentWindow || iframe[ 0 ].contentDocument ).document;
-
- // Support: IE
- doc.write();
- doc.close();
-
- display = actualDisplay( nodeName, doc );
- iframe.detach();
- }
-
- // Store the correct default display
- elemdisplay[ nodeName ] = display;
- }
-
- return display;
-}
-
-
-(function() {
- var shrinkWrapBlocksVal;
-
- support.shrinkWrapBlocks = function() {
- if ( shrinkWrapBlocksVal != null ) {
- return shrinkWrapBlocksVal;
- }
-
- // Will be changed later if needed.
- shrinkWrapBlocksVal = false;
-
- // Minified: var b,c,d
- var div, body, container;
-
- body = document.getElementsByTagName( "body" )[ 0 ];
- if ( !body || !body.style ) {
- // Test fired too early or in an unsupported environment, exit.
- return;
- }
-
- // Setup
- div = document.createElement( "div" );
- container = document.createElement( "div" );
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
- body.appendChild( container ).appendChild( div );
-
- // Support: IE6
- // Check if elements with layout shrink-wrap their children
- if ( typeof div.style.zoom !== strundefined ) {
- // Reset CSS: box-sizing; display; margin; border
- div.style.cssText =
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
- "box-sizing:content-box;display:block;margin:0;border:0;" +
- "padding:1px;width:1px;zoom:1";
- div.appendChild( document.createElement( "div" ) ).style.width = "5px";
- shrinkWrapBlocksVal = div.offsetWidth !== 3;
- }
-
- body.removeChild( container );
-
- return shrinkWrapBlocksVal;
- };
-
-})();
-var rmargin = (/^margin/);
-
-var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
-
-
-
-var getStyles, curCSS,
- rposition = /^(top|right|bottom|left)$/;
-
-if ( window.getComputedStyle ) {
- getStyles = function( elem ) {
- return elem.ownerDocument.defaultView.getComputedStyle( elem, null );
- };
-
- curCSS = function( elem, name, computed ) {
- var width, minWidth, maxWidth, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
-
- // getPropertyValue is only needed for .css('filter') in IE9, see #12537
- ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
-
- if ( computed ) {
-
- if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
- ret = jQuery.style( elem, name );
- }
-
- // A tribute to the "awesome hack by Dean Edwards"
- // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
- // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
- // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
- if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
-
- // Remember the original values
- width = style.width;
- minWidth = style.minWidth;
- maxWidth = style.maxWidth;
-
- // Put in the new values to get a computed value out
- style.minWidth = style.maxWidth = style.width = ret;
- ret = computed.width;
-
- // Revert the changed values
- style.width = width;
- style.minWidth = minWidth;
- style.maxWidth = maxWidth;
- }
- }
-
- // Support: IE
- // IE returns zIndex value as an integer.
- return ret === undefined ?
- ret :
- ret + "";
- };
-} else if ( document.documentElement.currentStyle ) {
- getStyles = function( elem ) {
- return elem.currentStyle;
- };
-
- curCSS = function( elem, name, computed ) {
- var left, rs, rsLeft, ret,
- style = elem.style;
-
- computed = computed || getStyles( elem );
- ret = computed ? computed[ name ] : undefined;
-
- // Avoid setting ret to empty string here
- // so we don't default to auto
- if ( ret == null && style && style[ name ] ) {
- ret = style[ name ];
- }
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- // but not position css attributes, as those are proportional to the parent element instead
- // and we can't measure the parent instead because it might trigger a "stacking dolls" problem
- if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
-
- // Remember the original values
- left = style.left;
- rs = elem.runtimeStyle;
- rsLeft = rs && rs.left;
-
- // Put in the new values to get a computed value out
- if ( rsLeft ) {
- rs.left = elem.currentStyle.left;
- }
- style.left = name === "fontSize" ? "1em" : ret;
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- if ( rsLeft ) {
- rs.left = rsLeft;
- }
- }
-
- // Support: IE
- // IE returns zIndex value as an integer.
- return ret === undefined ?
- ret :
- ret + "" || "auto";
- };
-}
-
-
-
-
-function addGetHookIf( conditionFn, hookFn ) {
- // Define the hook, we'll check on the first run if it's really needed.
- return {
- get: function() {
- var condition = conditionFn();
-
- if ( condition == null ) {
- // The test was not ready at this point; screw the hook this time
- // but check again when needed next time.
- return;
- }
-
- if ( condition ) {
- // Hook not needed (or it's not possible to use it due to missing dependency),
- // remove it.
- // Since there are no other hooks for marginRight, remove the whole object.
- delete this.get;
- return;
- }
-
- // Hook needed; redefine it so that the support test is not executed again.
-
- return (this.get = hookFn).apply( this, arguments );
- }
- };
-}
-
-
-(function() {
- // Minified: var b,c,d,e,f,g, h,i
- var div, style, a, pixelPositionVal, boxSizingReliableVal,
- reliableHiddenOffsetsVal, reliableMarginRightVal;
-
- // Setup
- div = document.createElement( "div" );
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
- a = div.getElementsByTagName( "a" )[ 0 ];
- style = a && a.style;
-
- // Finish early in limited (non-browser) environments
- if ( !style ) {
- return;
- }
-
- style.cssText = "float:left;opacity:.5";
-
- // Support: IE<9
- // Make sure that element opacity exists (as opposed to filter)
- support.opacity = style.opacity === "0.5";
-
- // Verify style float existence
- // (IE uses styleFloat instead of cssFloat)
- support.cssFloat = !!style.cssFloat;
-
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- support.boxSizing = style.boxSizing === "" || style.MozBoxSizing === "" ||
- style.WebkitBoxSizing === "";
-
- jQuery.extend(support, {
- reliableHiddenOffsets: function() {
- if ( reliableHiddenOffsetsVal == null ) {
- computeStyleTests();
- }
- return reliableHiddenOffsetsVal;
- },
-
- boxSizingReliable: function() {
- if ( boxSizingReliableVal == null ) {
- computeStyleTests();
- }
- return boxSizingReliableVal;
- },
-
- pixelPosition: function() {
- if ( pixelPositionVal == null ) {
- computeStyleTests();
- }
- return pixelPositionVal;
- },
-
- // Support: Android 2.3
- reliableMarginRight: function() {
- if ( reliableMarginRightVal == null ) {
- computeStyleTests();
- }
- return reliableMarginRightVal;
- }
- });
-
- function computeStyleTests() {
- // Minified: var b,c,d,j
- var div, body, container, contents;
-
- body = document.getElementsByTagName( "body" )[ 0 ];
- if ( !body || !body.style ) {
- // Test fired too early or in an unsupported environment, exit.
- return;
- }
-
- // Setup
- div = document.createElement( "div" );
- container = document.createElement( "div" );
- container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
- body.appendChild( container ).appendChild( div );
-
- div.style.cssText =
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
- "box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
- "border:1px;padding:1px;width:4px;position:absolute";
-
- // Support: IE<9
- // Assume reasonable values in the absence of getComputedStyle
- pixelPositionVal = boxSizingReliableVal = false;
- reliableMarginRightVal = true;
-
- // Check for getComputedStyle so that this code is not run in IE<9.
- if ( window.getComputedStyle ) {
- pixelPositionVal = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
- boxSizingReliableVal =
- ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
-
- // Support: Android 2.3
- // Div with explicit width and no margin-right incorrectly
- // gets computed margin-right based on width of container (#3333)
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- contents = div.appendChild( document.createElement( "div" ) );
-
- // Reset CSS: box-sizing; display; margin; border; padding
- contents.style.cssText = div.style.cssText =
- // Support: Firefox<29, Android 2.3
- // Vendor-prefix box-sizing
- "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
- "box-sizing:content-box;display:block;margin:0;border:0;padding:0";
- contents.style.marginRight = contents.style.width = "0";
- div.style.width = "1px";
-
- reliableMarginRightVal =
- !parseFloat( ( window.getComputedStyle( contents, null ) || {} ).marginRight );
- }
-
- // Support: IE8
- // Check if table cells still have offsetWidth/Height when they are set
- // to display:none and there are still other visible table cells in a
- // table row; if so, offsetWidth/Height are not reliable for use when
- // determining if an element has been hidden directly using
- // display:none (it is still safe to use offsets if a parent element is
- // hidden; don safety goggles and see bug #4512 for more information).
- div.innerHTML = "<table><tr><td></td><td>t</td></tr></table>";
- contents = div.getElementsByTagName( "td" );
- contents[ 0 ].style.cssText = "margin:0;border:0;padding:0;display:none";
- reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
- if ( reliableHiddenOffsetsVal ) {
- contents[ 0 ].style.display = "";
- contents[ 1 ].style.display = "none";
- reliableHiddenOffsetsVal = contents[ 0 ].offsetHeight === 0;
- }
-
- body.removeChild( container );
- }
-
-})();
-
-
-// A method for quickly swapping in/out CSS properties to get correct calculations.
-jQuery.swap = function( elem, options, callback, args ) {
- var ret, name,
- old = {};
-
- // Remember the old values, and insert the new ones
- for ( name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- ret = callback.apply( elem, args || [] );
-
- // Revert the old values
- for ( name in options ) {
- elem.style[ name ] = old[ name ];
- }
-
- return ret;
-};
-
-
-var
- ralpha = /alpha\([^)]*\)/i,
- ropacity = /opacity\s*=\s*([^)]*)/,
-
- // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
- // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
- rdisplayswap = /^(none|table(?!-c[ea]).+)/,
- rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
- rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),
-
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
- cssNormalTransform = {
- letterSpacing: "0",
- fontWeight: "400"
- },
-
- cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
-
-
-// return a css property mapped to a potentially vendor prefixed property
-function vendorPropName( style, name ) {
-
- // shortcut for names that are not vendor prefixed
- if ( name in style ) {
- return name;
- }
-
- // check for vendor prefixed names
- var capName = name.charAt(0).toUpperCase() + name.slice(1),
- origName = name,
- i = cssPrefixes.length;
-
- while ( i-- ) {
- name = cssPrefixes[ i ] + capName;
- if ( name in style ) {
- return name;
- }
- }
-
- return origName;
-}
-
-function showHide( elements, show ) {
- var display, elem, hidden,
- values = [],
- index = 0,
- length = elements.length;
-
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- values[ index ] = jQuery._data( elem, "olddisplay" );
- display = elem.style.display;
- if ( show ) {
- // Reset the inline display of this element to learn if it is
- // being hidden by cascaded rules or not
- if ( !values[ index ] && display === "none" ) {
- elem.style.display = "";
- }
-
- // Set elements which have been overridden with display: none
- // in a stylesheet to whatever the default browser style is
- // for such an element
- if ( elem.style.display === "" && isHidden( elem ) ) {
- values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
- }
- } else {
- hidden = isHidden( elem );
-
- if ( display && display !== "none" || !hidden ) {
- jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
- }
- }
- }
-
- // Set the display of most of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
- if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
- elem.style.display = show ? values[ index ] || "" : "none";
- }
- }
-
- return elements;
-}
-
-function setPositiveNumber( elem, value, subtract ) {
- var matches = rnumsplit.exec( value );
- return matches ?
- // Guard against undefined "subtract", e.g., when used as in cssHooks
- Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
- value;
-}
-
-function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
- var i = extra === ( isBorderBox ? "border" : "content" ) ?
- // If we already have the right measurement, avoid augmentation
- 4 :
- // Otherwise initialize for horizontal or vertical properties
- name === "width" ? 1 : 0,
-
- val = 0;
-
- for ( ; i < 4; i += 2 ) {
- // both box models exclude margin, so add it if we want it
- if ( extra === "margin" ) {
- val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
- }
-
- if ( isBorderBox ) {
- // border-box includes padding, so remove it if we want content
- if ( extra === "content" ) {
- val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
- }
-
- // at this point, extra isn't border nor margin, so remove border
- if ( extra !== "margin" ) {
- val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- } else {
- // at this point, extra isn't content, so add padding
- val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
-
- // at this point, extra isn't content nor padding, so add border
- if ( extra !== "padding" ) {
- val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
- }
- }
- }
-
- return val;
-}
-
-function getWidthOrHeight( elem, name, extra ) {
-
- // Start with offset property, which is equivalent to the border-box value
- var valueIsBorderBox = true,
- val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
- styles = getStyles( elem ),
- isBorderBox = support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
-
- // some non-html elements return undefined for offsetWidth, so check for null/undefined
- // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
- // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
- if ( val <= 0 || val == null ) {
- // Fall back to computed then uncomputed css if necessary
- val = curCSS( elem, name, styles );
- if ( val < 0 || val == null ) {
- val = elem.style[ name ];
- }
-
- // Computed unit is not pixels. Stop here and return.
- if ( rnumnonpx.test(val) ) {
- return val;
- }
-
- // we need the check for style in case a browser which returns unreliable values
- // for getComputedStyle silently falls back to the reliable elem.style
- valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );
-
- // Normalize "", auto, and prepare for extra
- val = parseFloat( val ) || 0;
- }
-
- // use the active box-sizing model to add/subtract irrelevant styles
- return ( val +
- augmentWidthOrHeight(
- elem,
- name,
- extra || ( isBorderBox ? "border" : "content" ),
- valueIsBorderBox,
- styles
- )
- ) + "px";
-}
-
-jQuery.extend({
- // Add in style property hooks for overriding the default
- // behavior of getting and setting a style property
- cssHooks: {
- opacity: {
- get: function( elem, computed ) {
- if ( computed ) {
- // We should always get a number back from opacity
- var ret = curCSS( elem, "opacity" );
- return ret === "" ? "1" : ret;
- }
- }
- }
- },
-
- // Don't automatically add "px" to these possibly-unitless properties
- cssNumber: {
- "columnCount": true,
- "fillOpacity": true,
- "flexGrow": true,
- "flexShrink": true,
- "fontWeight": true,
- "lineHeight": true,
- "opacity": true,
- "order": true,
- "orphans": true,
- "widows": true,
- "zIndex": true,
- "zoom": true
- },
-
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {
- // normalize float css property
- "float": support.cssFloat ? "cssFloat" : "styleFloat"
- },
-
- // Get and set the style property on a DOM Node
- style: function( elem, name, value, extra ) {
- // Don't set styles on text and comment nodes
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
- return;
- }
-
- // Make sure that we're working with the right name
- var ret, type, hooks,
- origName = jQuery.camelCase( name ),
- style = elem.style;
-
- name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // Check if we're setting a value
- if ( value !== undefined ) {
- type = typeof value;
-
- // convert relative number strings (+= or -=) to relative numbers. #7345
- if ( type === "string" && (ret = rrelNum.exec( value )) ) {
- value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
- // Fixes bug #9237
- type = "number";
- }
-
- // Make sure that null and NaN values aren't set. See: #7116
- if ( value == null || value !== value ) {
- return;
- }
-
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
- if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
- value += "px";
- }
-
- // Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
- // but it would mean to define eight (for every problematic property) identical functions
- if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
- style[ name ] = "inherit";
- }
-
- // If a hook was provided, use that value, otherwise just set the specified value
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
-
- // Support: IE
- // Swallow errors from 'invalid' CSS values (#5509)
- try {
- style[ name ] = value;
- } catch(e) {}
- }
-
- } else {
- // If a hook was provided get the non-computed value from there
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
- return ret;
- }
-
- // Otherwise just get the value from the style object
- return style[ name ];
- }
- },
-
- css: function( elem, name, extra, styles ) {
- var num, val, hooks,
- origName = jQuery.camelCase( name );
-
- // Make sure that we're working with the right name
- name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
-
- // gets hook for the prefixed version
- // followed by the unprefixed version
- hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
-
- // If a hook was provided get the computed value from there
- if ( hooks && "get" in hooks ) {
- val = hooks.get( elem, true, extra );
- }
-
- // Otherwise, if a way to get the computed value exists, use that
- if ( val === undefined ) {
- val = curCSS( elem, name, styles );
- }
-
- //convert "normal" to computed value
- if ( val === "normal" && name in cssNormalTransform ) {
- val = cssNormalTransform[ name ];
- }
-
- // Return, converting to number if forced or a qualifier was provided and val looks numeric
- if ( extra === "" || extra ) {
- num = parseFloat( val );
- return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
- }
- return val;
- }
-});
-
-jQuery.each([ "height", "width" ], function( i, name ) {
- jQuery.cssHooks[ name ] = {
- get: function( elem, computed, extra ) {
- if ( computed ) {
- // certain elements can have dimension info if we invisibly show them
- // however, it must have a current display style that would benefit from this
- return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?
- jQuery.swap( elem, cssShow, function() {
- return getWidthOrHeight( elem, name, extra );
- }) :
- getWidthOrHeight( elem, name, extra );
- }
- },
-
- set: function( elem, value, extra ) {
- var styles = extra && getStyles( elem );
- return setPositiveNumber( elem, value, extra ?
- augmentWidthOrHeight(
- elem,
- name,
- extra,
- support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
- styles
- ) : 0
- );
- }
- };
-});
-
-if ( !support.opacity ) {
- jQuery.cssHooks.opacity = {
- get: function( elem, computed ) {
- // IE uses filters for opacity
- return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
- ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
- computed ? "1" : "";
- },
-
- set: function( elem, value ) {
- var style = elem.style,
- currentStyle = elem.currentStyle,
- opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
- filter = currentStyle && currentStyle.filter || style.filter || "";
-
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- style.zoom = 1;
-
- // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
- // if value === "", then remove inline opacity #12685
- if ( ( value >= 1 || value === "" ) &&
- jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
- style.removeAttribute ) {
-
- // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
- // if "filter:" is present at all, clearType is disabled, we want to avoid this
- // style.removeAttribute is IE Only, but so apparently is this code path...
- style.removeAttribute( "filter" );
-
- // if there is no filter style applied in a css rule or unset inline opacity, we are done
- if ( value === "" || currentStyle && !currentStyle.filter ) {
- return;
- }
- }
-
- // otherwise, set new filter values
- style.filter = ralpha.test( filter ) ?
- filter.replace( ralpha, opacity ) :
- filter + " " + opacity;
- }
- };
-}
-
-jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
- function( elem, computed ) {
- if ( computed ) {
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
- // Work around by temporarily setting element display to inline-block
- return jQuery.swap( elem, { "display": "inline-block" },
- curCSS, [ elem, "marginRight" ] );
- }
- }
-);
-
-// These hooks are used by animate to expand properties
-jQuery.each({
- margin: "",
- padding: "",
- border: "Width"
-}, function( prefix, suffix ) {
- jQuery.cssHooks[ prefix + suffix ] = {
- expand: function( value ) {
- var i = 0,
- expanded = {},
-
- // assumes a single number if not a string
- parts = typeof value === "string" ? value.split(" ") : [ value ];
-
- for ( ; i < 4; i++ ) {
- expanded[ prefix + cssExpand[ i ] + suffix ] =
- parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
- }
-
- return expanded;
- }
- };
-
- if ( !rmargin.test( prefix ) ) {
- jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
- }
-});
-
-jQuery.fn.extend({
- css: function( name, value ) {
- return access( this, function( elem, name, value ) {
- var styles, len,
- map = {},
- i = 0;
-
- if ( jQuery.isArray( name ) ) {
- styles = getStyles( elem );
- len = name.length;
-
- for ( ; i < len; i++ ) {
- map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
- }
-
- return map;
- }
-
- return value !== undefined ?
- jQuery.style( elem, name, value ) :
- jQuery.css( elem, name );
- }, name, value, arguments.length > 1 );
- },
- show: function() {
- return showHide( this, true );
- },
- hide: function() {
- return showHide( this );
- },
- toggle: function( state ) {
- if ( typeof state === "boolean" ) {
- return state ? this.show() : this.hide();
- }
-
- return this.each(function() {
- if ( isHidden( this ) ) {
- jQuery( this ).show();
- } else {
- jQuery( this ).hide();
- }
- });
- }
-});
-
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || "swing";
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- if ( tween.elem[ tween.prop ] != null &&
- (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
- return tween.elem[ tween.prop ];
- }
-
- // passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails
- // so, simple values such as "10px" are parsed to Float.
- // complex values such as "rotate(1rad)" are returned as is.
- result = jQuery.css( tween.elem, tween.prop, "" );
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
- // use step hook for back compat - use cssHook if its there - use .style if its
- // available and use plain properties where available
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Support: IE <=9
-// Panic based approach to setting things on disconnected nodes
-
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p * Math.PI ) / 2;
- }
-};
-
-jQuery.fx = Tween.prototype.init;
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-
-
-
-var
- fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ),
- rrun = /queueHooks$/,
- animationPrefilters = [ defaultPrefilter ],
- tweeners = {
- "*": [ function( prop, value ) {
- var tween = this.createTween( prop, value ),
- target = tween.cur(),
- parts = rfxnum.exec( value ),
- unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
-
- // Starting value computation is required for potential unit mismatches
- start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
- rfxnum.exec( jQuery.css( tween.elem, prop ) ),
- scale = 1,
- maxIterations = 20;
-
- if ( start && start[ 3 ] !== unit ) {
- // Trust units reported by jQuery.css
- unit = unit || start[ 3 ];
-
- // Make sure we update the tween properties later on
- parts = parts || [];
-
- // Iteratively approximate from a nonzero starting point
- start = +target || 1;
-
- do {
- // If previous iteration zeroed out, double until we get *something*
- // Use a string for doubling factor so we don't accidentally see scale as unchanged below
- scale = scale || ".5";
-
- // Adjust and apply
- start = start / scale;
- jQuery.style( tween.elem, prop, start + unit );
-
- // Update scale, tolerating zero or NaN from tween.cur()
- // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
- } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
- }
-
- // Update tween properties
- if ( parts ) {
- start = tween.start = +start || +target || 0;
- tween.unit = unit;
- // If a +=/-= token was provided, we're doing a relative animation
- tween.end = parts[ 1 ] ?
- start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
- +parts[ 2 ];
- }
-
- return tween;
- } ]
- };
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- setTimeout(function() {
- fxNow = undefined;
- });
- return ( fxNow = jQuery.now() );
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- attrs = { height: type },
- i = 0;
-
- // if we include width, step value is 1 to do all cssExpand values,
- // if we don't include width, step value is 2 to skip over Left and Right
- includeWidth = includeWidth ? 1 : 0;
- for ( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-function createTween( value, prop, animation ) {
- var tween,
- collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
- index = 0,
- length = collection.length;
- for ( ; index < length; index++ ) {
- if ( (tween = collection[ index ].call( animation, prop, value )) ) {
-
- // we're done with this property
- return tween;
- }
- }
-}
-
-function defaultPrefilter( elem, props, opts ) {
- /* jshint validthis: true */
- var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
- anim = this,
- orig = {},
- style = elem.style,
- hidden = elem.nodeType && isHidden( elem ),
- dataShow = jQuery._data( elem, "fxshow" );
-
- // handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always(function() {
- // doing this makes sure that the complete handler will be called
- // before this completes
- anim.always(function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- });
- });
- }
-
- // height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- display = jQuery.css( elem, "display" );
-
- // Test default display if display is currently "none"
- checkDisplay = display === "none" ?
- jQuery._data( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
-
- if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
- style.display = "inline-block";
- } else {
- style.zoom = 1;
- }
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- if ( !support.shrinkWrapBlocks() ) {
- anim.always(function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- });
- }
- }
-
- // show/hide pass
- for ( prop in props ) {
- value = props[ prop ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ prop ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
-
- // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
- if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
- hidden = true;
- } else {
- continue;
- }
- }
- orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
-
- // Any non-fx value stops us from restoring the original display value
- } else {
- display = undefined;
- }
- }
-
- if ( !jQuery.isEmptyObject( orig ) ) {
- if ( dataShow ) {
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
- } else {
- dataShow = jQuery._data( elem, "fxshow", {} );
- }
-
- // store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done(function() {
- jQuery( elem ).hide();
- });
- }
- anim.done(function() {
- var prop;
- jQuery._removeData( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- });
- for ( prop in orig ) {
- tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
-
- // If this is a noop like .hide().hide(), restore an overwritten display value
- } else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
- style.display = display;
- }
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // not quite $.extend, this wont overwrite keys already present.
- // also - reusing 'index' from above because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = animationPrefilters.length,
- deferred = jQuery.Deferred().always( function() {
- // don't match elem in the :animated selector
- delete tick.elem;
- }),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
- // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ]);
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise({
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, { specialEasing: {} }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
- // if we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // resolve when we played the last frame
- // otherwise, reject
- if ( gotoEnd ) {
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- }),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- return result;
- }
- }
-
- jQuery.map( props, createTween, animation );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- })
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.split(" ");
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- tweeners[ prop ] = tweeners[ prop ] || [];
- tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- animationPrefilters.unshift( callback );
- } else {
- animationPrefilters.push( callback );
- }
- }
-});
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.fn.extend({
- fadeTo: function( speed, to, easing, callback ) {
-
- // show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // animate to the value specified
- .end().animate({ opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
-
- // Empty animations, or finishing resolves immediately
- if ( empty || jQuery._data( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each(function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = jQuery._data( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // start the next in the queue if the last step wasn't forced
- // timers currently will call their complete callbacks, which will dequeue
- // but only if they were gotoEnd
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each(function() {
- var index,
- data = jQuery._data( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // enable finishing flag on private data
- data.finish = true;
-
- // empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.stop ) {
- hooks.stop.call( this, true );
- }
-
- // look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // turn off finishing flag
- delete data.finish;
- });
- }
-});
-
-jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-});
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx("show"),
- slideUp: genFx("hide"),
- slideToggle: genFx("toggle"),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.timers = [];
-jQuery.fx.tick = function() {
- var timer,
- timers = jQuery.timers,
- i = 0;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- jQuery.timers.push( timer );
- if ( timer() ) {
- jQuery.fx.start();
- } else {
- jQuery.timers.pop();
- }
-};
-
-jQuery.fx.interval = 13;
-
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- clearInterval( timerId );
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
-};
-
-
-// Based off of the plugin by Clint Helfers, with permission.
-// http://blindsignals.com/index.php/2009/07/jquery-delay/
-jQuery.fn.delay = function( time, type ) {
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
- type = type || "fx";
-
- return this.queue( type, function( next, hooks ) {
- var timeout = setTimeout( next, time );
- hooks.stop = function() {
- clearTimeout( timeout );
- };
- });
-};
-
-
-(function() {
- // Minified: var a,b,c,d,e
- var input, div, select, a, opt;
-
- // Setup
- div = document.createElement( "div" );
- div.setAttribute( "className", "t" );
- div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
- a = div.getElementsByTagName("a")[ 0 ];
-
- // First batch of tests.
- select = document.createElement("select");
- opt = select.appendChild( document.createElement("option") );
- input = div.getElementsByTagName("input")[ 0 ];
-
- a.style.cssText = "top:1px";
-
- // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
- support.getSetAttribute = div.className !== "t";
-
- // Get the style information from getAttribute
- // (IE uses .cssText instead)
- support.style = /top/.test( a.getAttribute("style") );
-
- // Make sure that URLs aren't manipulated
- // (IE normalizes it by default)
- support.hrefNormalized = a.getAttribute("href") === "/a";
-
- // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
- support.checkOn = !!input.value;
-
- // Make sure that a selected-by-default option has a working selected property.
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
- support.optSelected = opt.selected;
-
- // Tests for enctype support on a form (#6743)
- support.enctype = !!document.createElement("form").enctype;
-
- // Make sure that the options inside disabled selects aren't marked as disabled
- // (WebKit marks them as disabled)
- select.disabled = true;
- support.optDisabled = !opt.disabled;
-
- // Support: IE8 only
- // Check if we can trust getAttribute("value")
- input = document.createElement( "input" );
- input.setAttribute( "value", "" );
- support.input = input.getAttribute( "value" ) === "";
-
- // Check if an input maintains its value after becoming a radio
- input.value = "t";
- input.setAttribute( "type", "radio" );
- support.radioValue = input.value === "t";
-})();
-
-
-var rreturn = /\r/g;
-
-jQuery.fn.extend({
- val: function( value ) {
- var hooks, ret, isFunction,
- elem = this[0];
-
- if ( !arguments.length ) {
- if ( elem ) {
- hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
-
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
- return ret;
- }
-
- ret = elem.value;
-
- return typeof ret === "string" ?
- // handle most common string cases
- ret.replace(rreturn, "") :
- // handle cases where value is null/undef or number
- ret == null ? "" : ret;
- }
-
- return;
- }
-
- isFunction = jQuery.isFunction( value );
-
- return this.each(function( i ) {
- var val;
-
- if ( this.nodeType !== 1 ) {
- return;
- }
-
- if ( isFunction ) {
- val = value.call( this, i, jQuery( this ).val() );
- } else {
- val = value;
- }
-
- // Treat null/undefined as ""; convert numbers to string
- if ( val == null ) {
- val = "";
- } else if ( typeof val === "number" ) {
- val += "";
- } else if ( jQuery.isArray( val ) ) {
- val = jQuery.map( val, function( value ) {
- return value == null ? "" : value + "";
- });
- }
-
- hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
-
- // If set returns undefined, fall back to normal setting
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
- this.value = val;
- }
- });
- }
-});
-
-jQuery.extend({
- valHooks: {
- option: {
- get: function( elem ) {
- var val = jQuery.find.attr( elem, "value" );
- return val != null ?
- val :
- // Support: IE10-11+
- // option.text throws exceptions (#14686, #14858)
- jQuery.trim( jQuery.text( elem ) );
- }
- },
- select: {
- get: function( elem ) {
- var value, option,
- options = elem.options,
- index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
- values = one ? null : [],
- max = one ? index + 1 : options.length,
- i = index < 0 ?
- max :
- one ? index : 0;
-
- // Loop through all the selected options
- for ( ; i < max; i++ ) {
- option = options[ i ];
-
- // oldIE doesn't update selected after form reset (#2551)
- if ( ( option.selected || i === index ) &&
- // Don't return options that are disabled or in a disabled optgroup
- ( support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
- ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
-
- // Get the specific value for the option
- value = jQuery( option ).val();
-
- // We don't need an array for one selects
- if ( one ) {
- return value;
- }
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
- },
-
- set: function( elem, value ) {
- var optionSet, option,
- options = elem.options,
- values = jQuery.makeArray( value ),
- i = options.length;
-
- while ( i-- ) {
- option = options[ i ];
-
- if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {
-
- // Support: IE6
- // When new option element is added to select box we need to
- // force reflow of newly added node in order to workaround delay
- // of initialization properties
- try {
- option.selected = optionSet = true;
-
- } catch ( _ ) {
-
- // Will be executed only in IE6
- option.scrollHeight;
- }
-
- } else {
- option.selected = false;
- }
- }
-
- // Force browsers to behave consistently when non-matching value is set
- if ( !optionSet ) {
- elem.selectedIndex = -1;
- }
-
- return options;
- }
- }
- }
-});
-
-// Radios and checkboxes getter/setter
-jQuery.each([ "radio", "checkbox" ], function() {
- jQuery.valHooks[ this ] = {
- set: function( elem, value ) {
- if ( jQuery.isArray( value ) ) {
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
- }
- }
- };
- if ( !support.checkOn ) {
- jQuery.valHooks[ this ].get = function( elem ) {
- // Support: Webkit
- // "" is returned instead of "on" if a value isn't specified
- return elem.getAttribute("value") === null ? "on" : elem.value;
- };
- }
-});
-
-
-
-
-var nodeHook, boolHook,
- attrHandle = jQuery.expr.attrHandle,
- ruseDefault = /^(?:checked|selected)$/i,
- getSetAttribute = support.getSetAttribute,
- getSetInput = support.input;
-
-jQuery.fn.extend({
- attr: function( name, value ) {
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
- },
-
- removeAttr: function( name ) {
- return this.each(function() {
- jQuery.removeAttr( this, name );
- });
- }
-});
-
-jQuery.extend({
- attr: function( elem, name, value ) {
- var hooks, ret,
- nType = elem.nodeType;
-
- // don't get/set attributes on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- // Fallback to prop when attributes are not supported
- if ( typeof elem.getAttribute === strundefined ) {
- return jQuery.prop( elem, name, value );
- }
-
- // All attributes are lowercase
- // Grab necessary hook if one is defined
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
- name = name.toLowerCase();
- hooks = jQuery.attrHooks[ name ] ||
- ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
- }
-
- if ( value !== undefined ) {
-
- if ( value === null ) {
- jQuery.removeAttr( elem, name );
-
- } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
- return ret;
-
- } else {
- elem.setAttribute( name, value + "" );
- return value;
- }
-
- } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
- return ret;
-
- } else {
- ret = jQuery.find.attr( elem, name );
-
- // Non-existent attributes return null, we normalize to undefined
- return ret == null ?
- undefined :
- ret;
- }
- },
-
- removeAttr: function( elem, value ) {
- var name, propName,
- i = 0,
- attrNames = value && value.match( rnotwhite );
-
- if ( attrNames && elem.nodeType === 1 ) {
- while ( (name = attrNames[i++]) ) {
- propName = jQuery.propFix[ name ] || name;
-
- // Boolean attributes get special treatment (#10870)
- if ( jQuery.expr.match.bool.test( name ) ) {
- // Set corresponding property to false
- if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
- elem[ propName ] = false;
- // Support: IE<9
- // Also clear defaultChecked/defaultSelected (if appropriate)
- } else {
- elem[ jQuery.camelCase( "default-" + name ) ] =
- elem[ propName ] = false;
- }
-
- // See #9699 for explanation of this approach (setting first, then removal)
- } else {
- jQuery.attr( elem, name, "" );
- }
-
- elem.removeAttribute( getSetAttribute ? name : propName );
- }
- }
- },
-
- attrHooks: {
- type: {
- set: function( elem, value ) {
- if ( !support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
- // Setting the type on a radio button after the value resets the value in IE6-9
- // Reset value to default in case type is set after value during creation
- var val = elem.value;
- elem.setAttribute( "type", value );
- if ( val ) {
- elem.value = val;
- }
- return value;
- }
- }
- }
- }
-});
-
-// Hook for boolean attributes
-boolHook = {
- set: function( elem, value, name ) {
- if ( value === false ) {
- // Remove boolean attributes when set to false
- jQuery.removeAttr( elem, name );
- } else if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
- // IE<8 needs the *property* name
- elem.setAttribute( !getSetAttribute && jQuery.propFix[ name ] || name, name );
-
- // Use defaultChecked and defaultSelected for oldIE
- } else {
- elem[ jQuery.camelCase( "default-" + name ) ] = elem[ name ] = true;
- }
-
- return name;
- }
-};
-
-// Retrieve booleans specially
-jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
-
- var getter = attrHandle[ name ] || jQuery.find.attr;
-
- attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
- function( elem, name, isXML ) {
- var ret, handle;
- if ( !isXML ) {
- // Avoid an infinite loop by temporarily removing this function from the getter
- handle = attrHandle[ name ];
- attrHandle[ name ] = ret;
- ret = getter( elem, name, isXML ) != null ?
- name.toLowerCase() :
- null;
- attrHandle[ name ] = handle;
- }
- return ret;
- } :
- function( elem, name, isXML ) {
- if ( !isXML ) {
- return elem[ jQuery.camelCase( "default-" + name ) ] ?
- name.toLowerCase() :
- null;
- }
- };
-});
-
-// fix oldIE attroperties
-if ( !getSetInput || !getSetAttribute ) {
- jQuery.attrHooks.value = {
- set: function( elem, value, name ) {
- if ( jQuery.nodeName( elem, "input" ) ) {
- // Does not return so that setAttribute is also used
- elem.defaultValue = value;
- } else {
- // Use nodeHook if defined (#1954); otherwise setAttribute is fine
- return nodeHook && nodeHook.set( elem, value, name );
- }
- }
- };
-}
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !getSetAttribute ) {
-
- // Use this for any attribute in IE6/7
- // This fixes almost every IE6/7 issue
- nodeHook = {
- set: function( elem, value, name ) {
- // Set the existing or create a new attribute node
- var ret = elem.getAttributeNode( name );
- if ( !ret ) {
- elem.setAttributeNode(
- (ret = elem.ownerDocument.createAttribute( name ))
- );
- }
-
- ret.value = value += "";
-
- // Break association with cloned elements by also using setAttribute (#9646)
- if ( name === "value" || value === elem.getAttribute( name ) ) {
- return value;
- }
- }
- };
-
- // Some attributes are constructed with empty-string values when not defined
- attrHandle.id = attrHandle.name = attrHandle.coords =
- function( elem, name, isXML ) {
- var ret;
- if ( !isXML ) {
- return (ret = elem.getAttributeNode( name )) && ret.value !== "" ?
- ret.value :
- null;
- }
- };
-
- // Fixing value retrieval on a button requires this module
- jQuery.valHooks.button = {
- get: function( elem, name ) {
- var ret = elem.getAttributeNode( name );
- if ( ret && ret.specified ) {
- return ret.value;
- }
- },
- set: nodeHook.set
- };
-
- // Set contenteditable to false on removals(#10429)
- // Setting to empty string throws an error as an invalid value
- jQuery.attrHooks.contenteditable = {
- set: function( elem, value, name ) {
- nodeHook.set( elem, value === "" ? false : value, name );
- }
- };
-
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )
- // This is for removals
- jQuery.each([ "width", "height" ], function( i, name ) {
- jQuery.attrHooks[ name ] = {
- set: function( elem, value ) {
- if ( value === "" ) {
- elem.setAttribute( name, "auto" );
- return value;
- }
- }
- };
- });
-}
-
-if ( !support.style ) {
- jQuery.attrHooks.style = {
- get: function( elem ) {
- // Return undefined in the case of empty string
- // Note: IE uppercases css property names, but if we were to .toLowerCase()
- // .cssText, that would destroy case senstitivity in URL's, like in "background"
- return elem.style.cssText || undefined;
- },
- set: function( elem, value ) {
- return ( elem.style.cssText = value + "" );
- }
- };
-}
-
-
-
-
-var rfocusable = /^(?:input|select|textarea|button|object)$/i,
- rclickable = /^(?:a|area)$/i;
-
-jQuery.fn.extend({
- prop: function( name, value ) {
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
- },
-
- removeProp: function( name ) {
- name = jQuery.propFix[ name ] || name;
- return this.each(function() {
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch( e ) {}
- });
- }
-});
-
-jQuery.extend({
- propFix: {
- "for": "htmlFor",
- "class": "className"
- },
-
- prop: function( elem, name, value ) {
- var ret, hooks, notxml,
- nType = elem.nodeType;
-
- // don't get/set properties on text, comment and attribute nodes
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
- return;
- }
-
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
- if ( notxml ) {
- // Fix name and attach hooks
- name = jQuery.propFix[ name ] || name;
- hooks = jQuery.propHooks[ name ];
- }
-
- if ( value !== undefined ) {
- return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
- ret :
- ( elem[ name ] = value );
-
- } else {
- return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
- ret :
- elem[ name ];
- }
- },
-
- propHooks: {
- tabIndex: {
- get: function( elem ) {
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
- // Use proper attribute retrieval(#12072)
- var tabindex = jQuery.find.attr( elem, "tabindex" );
-
- return tabindex ?
- parseInt( tabindex, 10 ) :
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
- 0 :
- -1;
- }
- }
- }
-});
-
-// Some attributes require a special call on IE
-// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
-if ( !support.hrefNormalized ) {
- // href/src property should get the full normalized URL (#10299/#12915)
- jQuery.each([ "href", "src" ], function( i, name ) {
- jQuery.propHooks[ name ] = {
- get: function( elem ) {
- return elem.getAttribute( name, 4 );
- }
- };
- });
-}
-
-// Support: Safari, IE9+
-// mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !support.optSelected ) {
- jQuery.propHooks.selected = {
- get: function( elem ) {
- var parent = elem.parentNode;
-
- if ( parent ) {
- parent.selectedIndex;
-
- // Make sure that it also works with optgroups, see #5701
- if ( parent.parentNode ) {
- parent.parentNode.selectedIndex;
- }
- }
- return null;
- }
- };
-}
-
-jQuery.each([
- "tabIndex",
- "readOnly",
- "maxLength",
- "cellSpacing",
- "cellPadding",
- "rowSpan",
- "colSpan",
- "useMap",
- "frameBorder",
- "contentEditable"
-], function() {
- jQuery.propFix[ this.toLowerCase() ] = this;
-});
-
-// IE6/7 call enctype encoding
-if ( !support.enctype ) {
- jQuery.propFix.enctype = "encoding";
-}
-
-
-
-
-var rclass = /[\t\r\n\f]/g;
-
-jQuery.fn.extend({
- addClass: function( value ) {
- var classes, elem, cur, clazz, j, finalValue,
- i = 0,
- len = this.length,
- proceed = typeof value === "string" && value;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).addClass( value.call( this, j, this.className ) );
- });
- }
-
- if ( proceed ) {
- // The disjunction here is for better compressibility (see removeClass)
- classes = ( value || "" ).match( rnotwhite ) || [];
-
- for ( ; i < len; i++ ) {
- elem = this[ i ];
- cur = elem.nodeType === 1 && ( elem.className ?
- ( " " + elem.className + " " ).replace( rclass, " " ) :
- " "
- );
-
- if ( cur ) {
- j = 0;
- while ( (clazz = classes[j++]) ) {
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
- cur += clazz + " ";
- }
- }
-
- // only assign if different to avoid unneeded rendering.
- finalValue = jQuery.trim( cur );
- if ( elem.className !== finalValue ) {
- elem.className = finalValue;
- }
- }
- }
- }
-
- return this;
- },
-
- removeClass: function( value ) {
- var classes, elem, cur, clazz, j, finalValue,
- i = 0,
- len = this.length,
- proceed = arguments.length === 0 || typeof value === "string" && value;
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( j ) {
- jQuery( this ).removeClass( value.call( this, j, this.className ) );
- });
- }
- if ( proceed ) {
- classes = ( value || "" ).match( rnotwhite ) || [];
-
- for ( ; i < len; i++ ) {
- elem = this[ i ];
- // This expression is here for better compressibility (see addClass)
- cur = elem.nodeType === 1 && ( elem.className ?
- ( " " + elem.className + " " ).replace( rclass, " " ) :
- ""
- );
-
- if ( cur ) {
- j = 0;
- while ( (clazz = classes[j++]) ) {
- // Remove *all* instances
- while ( cur.indexOf( " " + clazz + " " ) >= 0 ) {
- cur = cur.replace( " " + clazz + " ", " " );
- }
- }
-
- // only assign if different to avoid unneeded rendering.
- finalValue = value ? jQuery.trim( cur ) : "";
- if ( elem.className !== finalValue ) {
- elem.className = finalValue;
- }
- }
- }
- }
-
- return this;
- },
-
- toggleClass: function( value, stateVal ) {
- var type = typeof value;
-
- if ( typeof stateVal === "boolean" && type === "string" ) {
- return stateVal ? this.addClass( value ) : this.removeClass( value );
- }
-
- if ( jQuery.isFunction( value ) ) {
- return this.each(function( i ) {
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
- });
- }
-
- return this.each(function() {
- if ( type === "string" ) {
- // toggle individual class names
- var className,
- i = 0,
- self = jQuery( this ),
- classNames = value.match( rnotwhite ) || [];
-
- while ( (className = classNames[ i++ ]) ) {
- // check each className given, space separated list
- if ( self.hasClass( className ) ) {
- self.removeClass( className );
- } else {
- self.addClass( className );
- }
- }
-
- // Toggle whole class name
- } else if ( type === strundefined || type === "boolean" ) {
- if ( this.className ) {
- // store className if set
- jQuery._data( this, "__className__", this.className );
- }
-
- // If the element has a class name or if we're passed "false",
- // then remove the whole classname (if there was one, the above saved it).
- // Otherwise bring back whatever was previously saved (if anything),
- // falling back to the empty string if nothing was stored.
- this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
- }
- });
- },
-
- hasClass: function( selector ) {
- var className = " " + selector + " ",
- i = 0,
- l = this.length;
- for ( ; i < l; i++ ) {
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
- return true;
- }
- }
-
- return false;
- }
-});
-
-
-
-
-// Return jQuery for attributes-only inclusion
-
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
-
- // Handle event binding
- jQuery.fn[ name ] = function( data, fn ) {
- return arguments.length > 0 ?
- this.on( name, null, data, fn ) :
- this.trigger( name );
- };
-});
-
-jQuery.fn.extend({
- hover: function( fnOver, fnOut ) {
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
- },
-
- bind: function( types, data, fn ) {
- return this.on( types, null, data, fn );
- },
- unbind: function( types, fn ) {
- return this.off( types, null, fn );
- },
-
- delegate: function( selector, types, data, fn ) {
- return this.on( types, selector, data, fn );
- },
- undelegate: function( selector, types, fn ) {
- // ( namespace ) or ( selector, types [, fn] )
- return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
- }
-});
-
-
-var nonce = jQuery.now();
-
-var rquery = (/\?/);
-
-
-
-var rvalidtokens = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;
-
-jQuery.parseJSON = function( data ) {
- // Attempt to parse using the native JSON parser first
- if ( window.JSON && window.JSON.parse ) {
- // Support: Android 2.3
- // Workaround failure to string-cast null input
- return window.JSON.parse( data + "" );
- }
-
- var requireNonComma,
- depth = null,
- str = jQuery.trim( data + "" );
-
- // Guard against invalid (and possibly dangerous) input by ensuring that nothing remains
- // after removing valid tokens
- return str && !jQuery.trim( str.replace( rvalidtokens, function( token, comma, open, close ) {
-
- // Force termination if we see a misplaced comma
- if ( requireNonComma && comma ) {
- depth = 0;
- }
-
- // Perform no more replacements after returning to outermost depth
- if ( depth === 0 ) {
- return token;
- }
-
- // Commas must not follow "[", "{", or ","
- requireNonComma = open || comma;
-
- // Determine new depth
- // array/object open ("[" or "{"): depth += true - false (increment)
- // array/object close ("]" or "}"): depth += false - true (decrement)
- // other cases ("," or primitive): depth += true - true (numeric cast)
- depth += !close - !open;
-
- // Remove this token
- return "";
- }) ) ?
- ( Function( "return " + str ) )() :
- jQuery.error( "Invalid JSON: " + data );
-};
-
-
-// Cross-browser xml parsing
-jQuery.parseXML = function( data ) {
- var xml, tmp;
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- try {
- if ( window.DOMParser ) { // Standard
- tmp = new DOMParser();
- xml = tmp.parseFromString( data, "text/xml" );
- } else { // IE
- xml = new ActiveXObject( "Microsoft.XMLDOM" );
- xml.async = "false";
- xml.loadXML( data );
- }
- } catch( e ) {
- xml = undefined;
- }
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
- jQuery.error( "Invalid XML: " + data );
- }
- return xml;
-};
-
-
-var
- // Document location
- ajaxLocParts,
- ajaxLocation,
-
- rhash = /#.*$/,
- rts = /([?&])_=[^&]*/,
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
- // #7653, #8125, #8152: local protocol detection
- rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- rnoContent = /^(?:GET|HEAD)$/,
- rprotocol = /^\/\//,
- rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
-
- /* Prefilters
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
- * 2) These are called:
- * - BEFORE asking for a transport
- * - AFTER param serialization (s.data is a string if s.processData is true)
- * 3) key is the dataType
- * 4) the catchall symbol "*" can be used
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
- */
- prefilters = {},
-
- /* Transports bindings
- * 1) key is the dataType
- * 2) the catchall symbol "*" can be used
- * 3) selection will start with transport dataType and THEN go to "*" if needed
- */
- transports = {},
-
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
- allTypes = "*/".concat("*");
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
- ajaxLocation = location.href;
-} catch( e ) {
- // Use the href attribute of an A element
- // since IE will modify it given document.location
- ajaxLocation = document.createElement( "a" );
- ajaxLocation.href = "";
- ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
- // dataTypeExpression is optional and defaults to "*"
- return function( dataTypeExpression, func ) {
-
- if ( typeof dataTypeExpression !== "string" ) {
- func = dataTypeExpression;
- dataTypeExpression = "*";
- }
-
- var dataType,
- i = 0,
- dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
-
- if ( jQuery.isFunction( func ) ) {
- // For each dataType in the dataTypeExpression
- while ( (dataType = dataTypes[i++]) ) {
- // Prepend if requested
- if ( dataType.charAt( 0 ) === "+" ) {
- dataType = dataType.slice( 1 ) || "*";
- (structure[ dataType ] = structure[ dataType ] || []).unshift( func );
-
- // Otherwise append
- } else {
- (structure[ dataType ] = structure[ dataType ] || []).push( func );
- }
- }
- }
- };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
-
- var inspected = {},
- seekingTransport = ( structure === transports );
-
- function inspect( dataType ) {
- var selected;
- inspected[ dataType ] = true;
- jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
- var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
- if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
- options.dataTypes.unshift( dataTypeOrTransport );
- inspect( dataTypeOrTransport );
- return false;
- } else if ( seekingTransport ) {
- return !( selected = dataTypeOrTransport );
- }
- });
- return selected;
- }
-
- return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
- var deep, key,
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
-
- for ( key in src ) {
- if ( src[ key ] !== undefined ) {
- ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
- }
- }
- if ( deep ) {
- jQuery.extend( true, target, deep );
- }
-
- return target;
-}
-
-/* Handles responses to an ajax request:
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
- var firstDataType, ct, finalDataType, type,
- contents = s.contents,
- dataTypes = s.dataTypes;
-
- // Remove auto dataType and get content-type in the process
- while ( dataTypes[ 0 ] === "*" ) {
- dataTypes.shift();
- if ( ct === undefined ) {
- ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
- }
- }
-
- // Check if we're dealing with a known content-type
- if ( ct ) {
- for ( type in contents ) {
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
- dataTypes.unshift( type );
- break;
- }
- }
- }
-
- // Check to see if we have a response for the expected dataType
- if ( dataTypes[ 0 ] in responses ) {
- finalDataType = dataTypes[ 0 ];
- } else {
- // Try convertible dataTypes
- for ( type in responses ) {
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
- finalDataType = type;
- break;
- }
- if ( !firstDataType ) {
- firstDataType = type;
- }
- }
- // Or just use first one
- finalDataType = finalDataType || firstDataType;
- }
-
- // If we found a dataType
- // We add the dataType to the list if needed
- // and return the corresponding response
- if ( finalDataType ) {
- if ( finalDataType !== dataTypes[ 0 ] ) {
- dataTypes.unshift( finalDataType );
- }
- return responses[ finalDataType ];
- }
-}
-
-/* Chain conversions given the request and the original response
- * Also sets the responseXXX fields on the jqXHR instance
- */
-function ajaxConvert( s, response, jqXHR, isSuccess ) {
- var conv2, current, conv, tmp, prev,
- converters = {},
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice();
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- current = dataTypes.shift();
-
- // Convert to each sequential dataType
- while ( current ) {
-
- if ( s.responseFields[ current ] ) {
- jqXHR[ s.responseFields[ current ] ] = response;
- }
-
- // Apply the dataFilter if provided
- if ( !prev && isSuccess && s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- prev = current;
- current = dataTypes.shift();
-
- if ( current ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current === "*" ) {
-
- current = prev;
-
- // Convert response if prev dataType is non-auto and differs from current
- } else if ( prev !== "*" && prev !== current ) {
-
- // Seek a direct converter
- conv = converters[ prev + " " + current ] || converters[ "* " + current ];
-
- // If none found, seek a pair
- if ( !conv ) {
- for ( conv2 in converters ) {
-
- // If conv2 outputs current
- tmp = conv2.split( " " );
- if ( tmp[ 1 ] === current ) {
-
- // If prev can be converted to accepted input
- conv = converters[ prev + " " + tmp[ 0 ] ] ||
- converters[ "* " + tmp[ 0 ] ];
- if ( conv ) {
- // Condense equivalence converters
- if ( conv === true ) {
- conv = converters[ conv2 ];
-
- // Otherwise, insert the intermediate dataType
- } else if ( converters[ conv2 ] !== true ) {
- current = tmp[ 0 ];
- dataTypes.unshift( tmp[ 1 ] );
- }
- break;
- }
- }
- }
- }
-
- // Apply converter (if not an equivalence)
- if ( conv !== true ) {
-
- // Unless errors are allowed to bubble, catch and return them
- if ( conv && s[ "throws" ] ) {
- response = conv( response );
- } else {
- try {
- response = conv( response );
- } catch ( e ) {
- return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
- }
- }
- }
- }
- }
- }
-
- return { state: "success", data: response };
-}
-
-jQuery.extend({
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Last-Modified header cache for next request
- lastModified: {},
- etag: {},
-
- ajaxSettings: {
- url: ajaxLocation,
- type: "GET",
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
- global: true,
- processData: true,
- async: true,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- /*
- timeout: 0,
- data: null,
- dataType: null,
- username: null,
- password: null,
- cache: null,
- throws: false,
- traditional: false,
- headers: {},
- */
-
- accepts: {
- "*": allTypes,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
-
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
-
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": String,
-
- // Text to html (true = no transformation)
- "text html": true,
-
- // Evaluate text as a json expression
- "text json": jQuery.parseJSON,
-
- // Parse text as xml
- "text xml": jQuery.parseXML
- },
-
- // For options that shouldn't be deep extended:
- // you can add your own custom options here if
- // and when you create one that shouldn't be
- // deep extended (see ajaxExtend)
- flatOptions: {
- url: true,
- context: true
- }
- },
-
- // Creates a full fledged settings object into target
- // with both ajaxSettings and settings fields.
- // If target is omitted, writes into ajaxSettings.
- ajaxSetup: function( target, settings ) {
- return settings ?
-
- // Building a settings object
- ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
-
- // Extending ajaxSettings
- ajaxExtend( jQuery.ajaxSettings, target );
- },
-
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
- ajaxTransport: addToPrefiltersOrTransports( transports ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var // Cross-domain detection vars
- parts,
- // Loop variable
- i,
- // URL without anti-cache param
- cacheURL,
- // Response headers as string
- responseHeadersString,
- // timeout handle
- timeoutTimer,
-
- // To know if global events are to be dispatched
- fireGlobals,
-
- transport,
- // Response headers
- responseHeaders,
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
- // Callbacks context
- callbackContext = s.context || s,
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks("once memory"),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
- // The jqXHR state
- state = 0,
- // Default abort message
- strAbort = "canceled",
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( (match = rheaders.exec( responseHeadersString )) ) {
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
-
- // A cross-domain request is in order when we have a protocol:host:port mismatch
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- fireGlobals = s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger("ajaxStart");
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout(function() {
- jqXHR.abort("timeout");
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Determine if successful
- isSuccess = status >= 200 && status < 300 || status === 304;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // Convert no matter what (that way responseXXX fields are always set)
- response = ajaxConvert( s, response, jqXHR, isSuccess );
-
- // If successful, handle type chaining
- if ( isSuccess ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader("Last-Modified");
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader("etag");
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // if no content
- if ( status === 204 || s.type === "HEAD" ) {
- statusText = "nocontent";
-
- // if not modified
- } else if ( status === 304 ) {
- statusText = "notmodified";
-
- // If we have data, let's convert it
- } else {
- statusText = response.state;
- success = response.data;
- error = response.error;
- isSuccess = !error;
- }
- } else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger("ajaxStop");
- }
- }
- }
-
- return jqXHR;
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- }
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
- jQuery[ method ] = function( url, data, callback, type ) {
- // shift arguments if data argument was omitted
- if ( jQuery.isFunction( data ) ) {
- type = type || callback;
- callback = data;
- data = undefined;
- }
-
- return jQuery.ajax({
- url: url,
- type: method,
- dataType: type,
- data: data,
- success: callback
- });
- };
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) {
- jQuery.fn[ type ] = function( fn ) {
- return this.on( type, fn );
- };
-});
-
-
-jQuery._evalUrl = function( url ) {
- return jQuery.ajax({
- url: url,
- type: "GET",
- dataType: "script",
- async: false,
- global: false,
- "throws": true
- });
-};
-
-
-jQuery.fn.extend({
- wrapAll: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapAll( html.call(this, i) );
- });
- }
-
- if ( this[0] ) {
- // The elements to wrap the target around
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
- if ( this[0].parentNode ) {
- wrap.insertBefore( this[0] );
- }
-
- wrap.map(function() {
- var elem = this;
-
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
- elem = elem.firstChild;
- }
-
- return elem;
- }).append( this );
- }
-
- return this;
- },
-
- wrapInner: function( html ) {
- if ( jQuery.isFunction( html ) ) {
- return this.each(function(i) {
- jQuery(this).wrapInner( html.call(this, i) );
- });
- }
-
- return this.each(function() {
- var self = jQuery( this ),
- contents = self.contents();
-
- if ( contents.length ) {
- contents.wrapAll( html );
-
- } else {
- self.append( html );
- }
- });
- },
-
- wrap: function( html ) {
- var isFunction = jQuery.isFunction( html );
-
- return this.each(function(i) {
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
- });
- },
-
- unwrap: function() {
- return this.parent().each(function() {
- if ( !jQuery.nodeName( this, "body" ) ) {
- jQuery( this ).replaceWith( this.childNodes );
- }
- }).end();
- }
-});
-
-
-jQuery.expr.filters.hidden = function( elem ) {
- // Support: Opera <= 12.12
- // Opera reports offsetWidths and offsetHeights less than zero on some elements
- return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
- (!support.reliableHiddenOffsets() &&
- ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
-};
-
-jQuery.expr.filters.visible = function( elem ) {
- return !jQuery.expr.filters.hidden( elem );
-};
-
-
-
-
-var r20 = /%20/g,
- rbracket = /\[\]$/,
- rCRLF = /\r?\n/g,
- rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
- rsubmittable = /^(?:input|select|textarea|keygen)/i;
-
-function buildParams( prefix, obj, traditional, add ) {
- var name;
-
- if ( jQuery.isArray( obj ) ) {
- // Serialize array item.
- jQuery.each( obj, function( i, v ) {
- if ( traditional || rbracket.test( prefix ) ) {
- // Treat each array item as a scalar.
- add( prefix, v );
-
- } else {
- // Item is non-scalar (array or object), encode its numeric index.
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
- }
- });
-
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
- // Serialize object item.
- for ( name in obj ) {
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
- }
-
- } else {
- // Serialize scalar item.
- add( prefix, obj );
- }
-}
-
-// Serialize an array of form elements or a set of
-// key/values into a query string
-jQuery.param = function( a, traditional ) {
- var prefix,
- s = [],
- add = function( key, value ) {
- // If value is a function, invoke it and return its value
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
- };
-
- // Set traditional to true for jQuery <= 1.3.2 behavior.
- if ( traditional === undefined ) {
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
- }
-
- // If an array was passed in, assume that it is an array of form elements.
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
- // Serialize the form elements
- jQuery.each( a, function() {
- add( this.name, this.value );
- });
-
- } else {
- // If traditional, encode the "old" way (the way 1.3.2 or older
- // did it), otherwise encode params recursively.
- for ( prefix in a ) {
- buildParams( prefix, a[ prefix ], traditional, add );
- }
- }
-
- // Return the resulting serialization
- return s.join( "&" ).replace( r20, "+" );
-};
-
-jQuery.fn.extend({
- serialize: function() {
- return jQuery.param( this.serializeArray() );
- },
- serializeArray: function() {
- return this.map(function() {
- // Can add propHook for "elements" to filter or add form elements
- var elements = jQuery.prop( this, "elements" );
- return elements ? jQuery.makeArray( elements ) : this;
- })
- .filter(function() {
- var type = this.type;
- // Use .is(":disabled") so that fieldset[disabled] works
- return this.name && !jQuery( this ).is( ":disabled" ) &&
- rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !rcheckableType.test( type ) );
- })
- .map(function( i, elem ) {
- var val = jQuery( this ).val();
-
- return val == null ?
- null :
- jQuery.isArray( val ) ?
- jQuery.map( val, function( val ) {
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }) :
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
- }).get();
- }
-});
-
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject !== undefined ?
- // Support: IE6+
- function() {
-
- // XHR cannot access local files, always use ActiveX for that case
- return !this.isLocal &&
-
- // Support: IE7-8
- // oldIE XHR does not support non-RFC2616 methods (#13240)
- // See http://msdn.microsoft.com/en-us/library/ie/ms536648(v=vs.85).aspx
- // and http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9
- // Although this check for six methods instead of eight
- // since IE also does not support "trace" and "connect"
- /^(get|post|head|put|delete|options)$/i.test( this.type ) &&
-
- createStandardXHR() || createActiveXHR();
- } :
- // For all other browsers, use the standard XMLHttpRequest object
- createStandardXHR;
-
-var xhrId = 0,
- xhrCallbacks = {},
- xhrSupported = jQuery.ajaxSettings.xhr();
-
-// Support: IE<10
-// Open requests must be manually aborted on unload (#5280)
-if ( window.ActiveXObject ) {
- jQuery( window ).on( "unload", function() {
- for ( var key in xhrCallbacks ) {
- xhrCallbacks[ key ]( undefined, true );
- }
- });
-}
-
-// Determine support properties
-support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-xhrSupported = support.ajax = !!xhrSupported;
-
-// Create transport if the browser can provide an xhr
-if ( xhrSupported ) {
-
- jQuery.ajaxTransport(function( options ) {
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( !options.crossDomain || support.cors ) {
-
- var callback;
-
- return {
- send: function( headers, complete ) {
- var i,
- xhr = options.xhr(),
- id = ++xhrId;
-
- // Open the socket
- xhr.open( options.type, options.url, options.async, options.username, options.password );
-
- // Apply custom fields if provided
- if ( options.xhrFields ) {
- for ( i in options.xhrFields ) {
- xhr[ i ] = options.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( options.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( options.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !options.crossDomain && !headers["X-Requested-With"] ) {
- headers["X-Requested-With"] = "XMLHttpRequest";
- }
-
- // Set headers
- for ( i in headers ) {
- // Support: IE<9
- // IE's ActiveXObject throws a 'Type Mismatch' exception when setting
- // request header to a null-value.
- //
- // To keep consistent with other XHR implementations, cast the value
- // to string and ignore `undefined`.
- if ( headers[ i ] !== undefined ) {
- xhr.setRequestHeader( i, headers[ i ] + "" );
- }
- }
-
- // Do send the request
- // This may raise an exception which is actually
- // handled in jQuery.ajax (so no try/catch here)
- xhr.send( ( options.hasContent && options.data ) || null );
-
- // Listener
- callback = function( _, isAbort ) {
- var status, statusText, responses;
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
- // Clean up
- delete xhrCallbacks[ id ];
- callback = undefined;
- xhr.onreadystatechange = jQuery.noop;
-
- // Abort manually if needed
- if ( isAbort ) {
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
- responses = {};
- status = xhr.status;
-
- // Support: IE<10
- // Accessing binary-data responseText throws an exception
- // (#11426)
- if ( typeof xhr.responseText === "string" ) {
- responses.text = xhr.responseText;
- }
-
- // Firefox throws an exception when accessing
- // statusText for faulty cross-domain requests
- try {
- statusText = xhr.statusText;
- } catch( e ) {
- // We normalize with Webkit giving an empty statusText
- statusText = "";
- }
-
- // Filter status for non standard behaviors
-
- // If the request is local and we have data: assume a success
- // (success with no data won't get notified, that's the best we
- // can do given current implementations)
- if ( !status && options.isLocal && !options.crossDomain ) {
- status = responses.text ? 200 : 404;
- // IE - #1450: sometimes returns 1223 when it should be 204
- } else if ( status === 1223 ) {
- status = 204;
- }
- }
- }
-
- // Call complete if needed
- if ( responses ) {
- complete( status, statusText, responses, xhr.getAllResponseHeaders() );
- }
- };
-
- if ( !options.async ) {
- // if we're in sync mode we fire the callback
- callback();
- } else if ( xhr.readyState === 4 ) {
- // (IE6 & IE7) if it's in cache and has been
- // retrieved directly we need to fire the callback
- setTimeout( callback );
- } else {
- // Add to the list of active xhr callbacks
- xhr.onreadystatechange = xhrCallbacks[ id ] = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback( undefined, true );
- }
- }
- };
- }
- });
-}
-
-// Functions to create xhrs
-function createStandardXHR() {
- try {
- return new window.XMLHttpRequest();
- } catch( e ) {}
-}
-
-function createActiveXHR() {
- try {
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
- } catch( e ) {}
-}
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- s.global = false;
- }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
-
- var script,
- head = document.head || jQuery("head")[0] || document.documentElement;
-
- return {
-
- send: function( _, callback ) {
-
- script = document.createElement("script");
-
- script.async = true;
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _, isAbort ) {
-
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( script.parentNode ) {
- script.parentNode.removeChild( script );
- }
-
- // Dereference the script
- script = null;
-
- // Callback if not abort
- if ( !isAbort ) {
- callback( 200, "success" );
- }
- }
- };
-
- // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload( undefined, true );
- }
- }
- };
- }
-});
-
-
-
-
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters["script json"] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always(function() {
- // Restore preexisting value
- window[ callbackName ] = overwritten;
-
- // Save back as free
- if ( s[ callbackName ] ) {
- // make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- });
-
- // Delegate to script
- return "script";
- }
-});
-
-
-
-
-// data: string of html
-// context (optional): If specified, the fragment will be created in this context, defaults to document
-// keepScripts (optional): If true, will include scripts passed in the html string
-jQuery.parseHTML = function( data, context, keepScripts ) {
- if ( !data || typeof data !== "string" ) {
- return null;
- }
- if ( typeof context === "boolean" ) {
- keepScripts = context;
- context = false;
- }
- context = context || document;
-
- var parsed = rsingleTag.exec( data ),
- scripts = !keepScripts && [];
-
- // Single tag
- if ( parsed ) {
- return [ context.createElement( parsed[1] ) ];
- }
-
- parsed = jQuery.buildFragment( [ data ], context, scripts );
-
- if ( scripts && scripts.length ) {
- jQuery( scripts ).remove();
- }
-
- return jQuery.merge( [], parsed.childNodes );
-};
-
-
-// Keep a copy of the old load method
-var _load = jQuery.fn.load;
-
-/**
- * Load a url into a page
- */
-jQuery.fn.load = function( url, params, callback ) {
- if ( typeof url !== "string" && _load ) {
- return _load.apply( this, arguments );
- }
-
- var selector, response, type,
- self = this,
- off = url.indexOf(" ");
-
- if ( off >= 0 ) {
- selector = jQuery.trim( url.slice( off, url.length ) );
- url = url.slice( 0, off );
- }
-
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
-
- // We assume that it's the callback
- callback = params;
- params = undefined;
-
- // Otherwise, build a param string
- } else if ( params && typeof params === "object" ) {
- type = "POST";
- }
-
- // If we have elements to modify, make the request
- if ( self.length > 0 ) {
- jQuery.ajax({
- url: url,
-
- // if "type" variable is undefined, then "GET" method will be used
- type: type,
- dataType: "html",
- data: params
- }).done(function( responseText ) {
-
- // Save response for use in complete callback
- response = arguments;
-
- self.html( selector ?
-
- // If a selector was specified, locate the right elements in a dummy div
- // Exclude scripts to avoid IE 'Permission Denied' errors
- jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- }).complete( callback && function( jqXHR, status ) {
- self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
- });
- }
-
- return this;
-};
-
-
-
-
-jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
-};
-
-
-
-
-
-var docElem = window.document.documentElement;
-
-/**
- * Gets a window from an element
- */
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-
-jQuery.offset = {
- setOffset: function( elem, options, i ) {
- var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
- position = jQuery.css( elem, "position" ),
- curElem = jQuery( elem ),
- props = {};
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- curOffset = curElem.offset();
- curCSSTop = jQuery.css( elem, "top" );
- curCSSLeft = jQuery.css( elem, "left" );
- calculatePosition = ( position === "absolute" || position === "fixed" ) &&
- jQuery.inArray("auto", [ curCSSTop, curCSSLeft ] ) > -1;
-
- // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-jQuery.fn.extend({
- offset: function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- var docElem, win,
- box = { top: 0, left: 0 },
- elem = this[ 0 ],
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- // If we don't have gBCR, just use 0,0 rather than error
- // BlackBerry 5, iOS 3 (original iPhone)
- if ( typeof elem.getBoundingClientRect !== strundefined ) {
- box = elem.getBoundingClientRect();
- }
- win = getWindow( doc );
- return {
- top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
- left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
- };
- },
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- parentOffset = { top: 0, left: 0 },
- elem = this[ 0 ];
-
- // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
- // we assume that getBoundingClientRect is available when computed position is fixed
- offset = elem.getBoundingClientRect();
- } else {
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || docElem;
-
- while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position" ) === "static" ) ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent || docElem;
- });
- }
-});
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
- var top = /Y/.test( prop );
-
- jQuery.fn[ method ] = function( val ) {
- return access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? (prop in win) ? win[ prop ] :
- win.document.documentElement[ method ] :
- elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : jQuery( win ).scrollLeft(),
- top ? val : jQuery( win ).scrollTop()
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length, null );
- };
-});
-
-// Add the top/left cssHooks using jQuery.fn.position
-// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
-// getComputedStyle returns percent when specified for top/left/bottom/right
-// rather than make the css module depend on the offset module, we just check for it here
-jQuery.each( [ "top", "left" ], function( i, prop ) {
- jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
- function( elem, computed ) {
- if ( computed ) {
- computed = curCSS( elem, prop );
- // if curCSS returns percentage, fallback to offset
- return rnumnonpx.test( computed ) ?
- jQuery( elem ).position()[ prop ] + "px" :
- computed;
- }
- }
- );
-});
-
-
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
- // margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
- // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- });
-});
-
-
-// The number of elements contained in the matched element set
-jQuery.fn.size = function() {
- return this.length;
-};
-
-jQuery.fn.andSelf = jQuery.fn.addBack;
-
-
-
-
-// Register as a named AMD module, since jQuery can be concatenated with other
-// files that may use define, but not via a proper concatenation script that
-// understands anonymous AMD modules. A named AMD is safest and most robust
-// way to register. Lowercase jquery is used because AMD module names are
-// derived from file names, and jQuery is normally delivered in a lowercase
-// file name. Do this after creating the global so that if an AMD module wants
-// to call noConflict to hide this version of jQuery, it will work.
-
-// Note that for maximum portability, libraries that are not jQuery should
-// declare themselves as anonymous modules, and avoid setting a global if an
-// AMD loader is present. jQuery is a special case. For more information, see
-// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
-
-if ( typeof define === "function" && define.amd ) {
- define( "jquery", [], function() {
- return jQuery;
- });
-}
-
-
-
-
-var
- // Map over jQuery in case of overwrite
- _jQuery = window.jQuery,
-
- // Map over the $ in case of overwrite
- _$ = window.$;
-
-jQuery.noConflict = function( deep ) {
- if ( window.$ === jQuery ) {
- window.$ = _$;
- }
-
- if ( deep && window.jQuery === jQuery ) {
- window.jQuery = _jQuery;
- }
-
- return jQuery;
-};
-
-// Expose jQuery and $ identifiers, even in
-// AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
-// and CommonJS for browser emulators (#13566)
-if ( typeof noGlobal === strundefined ) {
- window.jQuery = window.$ = jQuery;
-}
-
-
-
-
-return jQuery;
-
-}));
diff --git a/doc/authors.html b/doc/authors.html
index ef87246..b510aea 100644
--- a/doc/authors.html
+++ b/doc/authors.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Authors &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Authors &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="modules/zmq.html" title="eventlet.green.zmq – ØMQ support"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Authors</a></li>
</ul>
</div>
@@ -292,7 +292,7 @@ Your patience is greatly appreciated!</p>
<li class="right" >
<a href="modules/zmq.html" title="eventlet.green.zmq – ØMQ support"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Authors</a></li>
</ul>
</div>
diff --git a/doc/basic_usage.html b/doc/basic_usage.html
index 477daf6..adc0903 100644
--- a/doc/basic_usage.html
+++ b/doc/basic_usage.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Basic Usage &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Basic Usage &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="index.html" title="Eventlet Documentation"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Basic Usage</a></li>
</ul>
</div>
@@ -139,7 +139,7 @@ See <a class="reference internal" href="modules/timeout.html#eventlet.timeout.Ti
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>addr</strong> – Address of the server to connect to. For TCP sockets, this is a (host, port) tuple.</p></li>
-<li><p><strong>family</strong> – Socket family, optional. See <a class="reference external" href="https://docs.python.org/3/library/socket.html#module-socket" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">socket</span></code></a> documentation for available families.</p></li>
+<li><p><strong>family</strong> – Socket family, optional. See <a class="reference external" href="https://docs.python.org/3/library/socket.html#module-socket" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">socket</span></code></a> documentation for available families.</p></li>
<li><p><strong>bind</strong> – Local address to bind to, optional.</p></li>
</ul>
</dd>
@@ -159,7 +159,7 @@ socket can be used in <a class="reference internal" href="#eventlet.serve" title
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>addr</strong> – Address to listen on. For TCP sockets, this is a (host, port) tuple.</p></li>
-<li><p><strong>family</strong> – Socket family, optional. See <a class="reference external" href="https://docs.python.org/3/library/socket.html#module-socket" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">socket</span></code></a> documentation for available families.</p></li>
+<li><p><strong>family</strong> – Socket family, optional. See <a class="reference external" href="https://docs.python.org/3/library/socket.html#module-socket" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">socket</span></code></a> documentation for available families.</p></li>
<li><p><strong>backlog</strong> – The maximum number of queued connections. Should be at least 1; the maximum
value is system-dependent.</p></li>
</ul>
@@ -174,7 +174,7 @@ value is system-dependent.</p></li>
<dt class="sig sig-object py" id="eventlet.wrap_ssl">
<span class="sig-prename descclassname"><span class="pre">eventlet.</span></span><span class="sig-name descname"><span class="pre">wrap_ssl</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sock</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">a</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kw</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#eventlet.wrap_ssl" title="Permalink to this definition">¶</a></dt>
<dd><p>Convenience function for converting a regular socket into an
-SSL socket. Has the same interface as <a class="reference external" href="https://docs.python.org/3/library/ssl.html#ssl.wrap_socket" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">ssl.wrap_socket()</span></code></a>,
+SSL socket. Has the same interface as <a class="reference external" href="https://docs.python.org/3/library/ssl.html#ssl.wrap_socket" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">ssl.wrap_socket()</span></code></a>,
but can also use PyOpenSSL. Though, note that it ignores the
<cite>cert_reqs</cite>, <cite>ssl_version</cite>, <cite>ca_certs</cite>, <cite>do_handshake_on_connect</cite>,
and <cite>suppress_ragged_eofs</cite> arguments when using PyOpenSSL.</p>
@@ -286,7 +286,7 @@ connections until the existing ones complete.</p>
<li class="right" >
<a href="index.html" title="Eventlet Documentation"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Basic Usage</a></li>
</ul>
</div>
diff --git a/doc/changelog.html b/doc/changelog.html
index 293c8fc..82259af 100644
--- a/doc/changelog.html
+++ b/doc/changelog.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>0.32.0 &#8212; Eventlet 0.32.0 documentation</title>
+ <title>0.33.0 &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -27,8 +27,8 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
- <li class="nav-item nav-item-this"><a href="">0.32.0</a></li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-this"><a href="">0.33.0</a></li>
</ul>
</div>
@@ -38,27 +38,37 @@
<div class="body" role="main">
<section id="id1">
-<h1>0.32.0<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
+<h1>0.33.0<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
+<ul class="simple">
+<li><p>green.thread: unlocked Lock().release() should raise exception, returned True <a class="reference external" href="https://github.com/eventlet/eventlet/issues/697">https://github.com/eventlet/eventlet/issues/697</a></p></li>
+<li><p>wsgi: Don’t break HTTP framing during 100-continue handling <a class="reference external" href="https://github.com/eventlet/eventlet/pull/578">https://github.com/eventlet/eventlet/pull/578</a></p></li>
+<li><p>Python 3.10 partial support <a class="reference external" href="https://github.com/eventlet/eventlet/pull/715">https://github.com/eventlet/eventlet/pull/715</a></p></li>
+<li><p>greendns: Create a DNS resolver lazily rather than on import <a class="reference external" href="https://github.com/eventlet/eventlet/issues/462">https://github.com/eventlet/eventlet/issues/462</a></p></li>
+<li><p>ssl: GreenSSLContext minimum_version and maximum_version setters <a class="reference external" href="https://github.com/eventlet/eventlet/issues/726">https://github.com/eventlet/eventlet/issues/726</a></p></li>
+</ul>
+</section>
+<section id="id2">
+<h1>0.32.0<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greendns: compatibility with dnspython v2 <a class="reference external" href="https://github.com/eventlet/eventlet/pull/722">https://github.com/eventlet/eventlet/pull/722</a></p></li>
<li><p>green.ssl: wrap_socket now accepts argument <cite>ciphers</cite> <a class="reference external" href="https://github.com/eventlet/eventlet/pull/718">https://github.com/eventlet/eventlet/pull/718</a></p></li>
<li><p>websocket: control frames are now always uncompressed per RFC 7692; Thanks to Onno Kortmann</p></li>
</ul>
</section>
-<section id="id2">
-<h1>0.31.1<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h1>
+<section id="id3">
+<h1>0.31.1<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ssl: py3.6 using client certificates raised ValueError: check_hostname needs server_hostname argument <a class="reference external" href="https://github.com/eventlet/eventlet/pull/705">https://github.com/eventlet/eventlet/pull/705</a></p></li>
</ul>
</section>
-<section id="id3">
-<h1>0.31.0<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h1>
+<section id="id4">
+<h1>0.31.0<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>IMPORTANT: websocket: Limit maximum uncompressed frame length to 8MiB <a class="reference external" href="https://github.com/eventlet/eventlet/security/advisories/GHSA-9p9m-jm8w-94p2">https://github.com/eventlet/eventlet/security/advisories/GHSA-9p9m-jm8w-94p2</a></p></li>
</ul>
</section>
-<section id="id4">
-<h1>0.30.3<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h1>
+<section id="id5">
+<h1>0.30.3<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: websocket ALREADY_HANDLED flag on corolocal</p></li>
<li><p>green.ssl: Set suppress_ragged_eofs default based on SSLSocket defaults</p></li>
@@ -66,20 +76,20 @@
<li><p>Use _imp instead of deprecated imp</p></li>
</ul>
</section>
-<section id="id5">
-<h1>0.30.2<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h1>
+<section id="id6">
+<h1>0.30.2<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greendns: patch ssl to fix RecursionError on SSLContext.options.__set__ <a class="reference external" href="https://github.com/eventlet/eventlet/issues/677">https://github.com/eventlet/eventlet/issues/677</a></p></li>
</ul>
</section>
-<section id="id6">
-<h1>0.30.1<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h1>
+<section id="id7">
+<h1>0.30.1<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>patcher: built-in open() did not accept kwargs <a class="reference external" href="https://github.com/eventlet/eventlet/issues/683">https://github.com/eventlet/eventlet/issues/683</a></p></li>
</ul>
</section>
-<section id="id7">
-<h1>0.30.0<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h1>
+<section id="id8">
+<h1>0.30.0<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>pyopenssl tsafe module was deprecated and removed in v20.0.0</p></li>
<li><p>deprecate pyevent hub</p></li>
@@ -87,48 +97,48 @@
<li><p>py39: Add _at_fork_reinit method to Semaphores</p></li>
</ul>
</section>
-<section id="id8">
-<h1>0.29.1<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h1>
+<section id="id9">
+<h1>0.29.1<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h1>
<p>patcher: [py27] recursion error in pytest/python2.7 installing register_at_fork <a class="reference external" href="https://github.com/eventlet/eventlet/issues/660">https://github.com/eventlet/eventlet/issues/660</a>
patcher: monkey_patch(builtins=True) failed on py3 because <cite>file</cite> class is gone <a class="reference external" href="https://github.com/eventlet/eventlet/issues/541">https://github.com/eventlet/eventlet/issues/541</a>
don’t crash on PyPy 7.0.0 <a class="reference external" href="https://github.com/eventlet/eventlet/pull/547">https://github.com/eventlet/eventlet/pull/547</a>
Only install monotonic on python2 <a class="reference external" href="https://github.com/eventlet/eventlet/pull/583">https://github.com/eventlet/eventlet/pull/583</a></p>
</section>
-<section id="id9">
-<h1>0.29.0<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h1>
+<section id="id10">
+<h1>0.29.0<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ssl: context wrapped listener fails accept() <a class="reference external" href="https://github.com/eventlet/eventlet/issues/651">https://github.com/eventlet/eventlet/issues/651</a></p></li>
</ul>
</section>
-<section id="id10">
-<h1>0.28.1<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h1>
+<section id="id11">
+<h1>0.28.1<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Sorry, Eventlet was broken on Windows for versions 0.27-0.28
patcher: no os.register_at_fork on Windows (#654)</p></li>
<li><p>Clean up TypeError in __del__</p></li>
</ul>
</section>
-<section id="id11">
-<h1>0.28.0<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h1>
+<section id="id12">
+<h1>0.28.0<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Always remove the right listener from the hub <a class="reference external" href="https://github.com/eventlet/eventlet/pull/645">https://github.com/eventlet/eventlet/pull/645</a></p></li>
</ul>
</section>
-<section id="id12">
-<h1>0.27.0<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h1>
+<section id="id13">
+<h1>0.27.0<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>patcher: Clean up threading book-keeping at fork when monkey-patched</p></li>
<li><p>backdoor: handle disconnects better</p></li>
</ul>
</section>
-<section id="id13">
-<h1>0.26.1<a class="headerlink" href="#id13" title="Permalink to this headline">¶</a></h1>
+<section id="id14">
+<h1>0.26.1<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>pin dnspython &lt;2.0.0 <a class="reference external" href="https://github.com/eventlet/eventlet/issues/619">https://github.com/eventlet/eventlet/issues/619</a></p></li>
</ul>
</section>
-<section id="id14">
-<h1>0.26.0<a class="headerlink" href="#id14" title="Permalink to this headline">¶</a></h1>
+<section id="id15">
+<h1>0.26.0<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Fix compatibility with SSLContext usage &gt;= Python 3.7</p></li>
<li><p>wsgi: Fix header capitalization on py3</p></li>
@@ -138,21 +148,21 @@ patcher: no os.register_at_fork on Windows (#654)</p></li>
<li><p>Remove unnecessary assignment in _recv_loop (#601)</p></li>
</ul>
</section>
-<section id="id15">
-<h1>0.25.2<a class="headerlink" href="#id15" title="Permalink to this headline">¶</a></h1>
+<section id="id16">
+<h1>0.25.2<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>green.ssl: redundant set_nonblocking() caused SSLWantReadError</p></li>
</ul>
</section>
-<section id="id16">
-<h1>0.25.1<a class="headerlink" href="#id16" title="Permalink to this headline">¶</a></h1>
+<section id="id17">
+<h1>0.25.1<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi (tests): Stop using deprecated cgi.parse_qs() to support Python 3.8; Thanks to Miro Hrončok</p></li>
<li><p>os: Add workaround to <cite>open</cite> for pathlib on py 3.7; Thanks to David Szotten</p></li>
</ul>
</section>
-<section id="id17">
-<h1>0.25.0<a class="headerlink" href="#id17" title="Permalink to this headline">¶</a></h1>
+<section id="id18">
+<h1>0.25.0<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: Only send 100 Continue response if no response has been sent yet; Thanks to Tim Burke</p></li>
<li><p>wsgi: Return 400 on negative Content-Length request headers; Thanks to Tim Burke</p></li>
@@ -172,14 +182,14 @@ patcher: no os.register_at_fork on Windows (#654)</p></li>
<li><p>ssl: fix connect to use monotonic clock for timeout; Thanks to Sergey Shepelev</p></li>
</ul>
</section>
-<section id="id18">
-<h1>0.24.1<a class="headerlink" href="#id18" title="Permalink to this headline">¶</a></h1>
+<section id="id19">
+<h1>0.24.1<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greendns: don’t contact nameservers if one entry is returned from hosts file; Thanks to Daniel Alvarez</p></li>
</ul>
</section>
-<section id="id19">
-<h1>0.24.0<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h1>
+<section id="id20">
+<h1>0.24.0<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greendns: Fix infinite loop when UDP source address mismatch; Thanks to Lon Hohberger</p></li>
<li><p>greendns: Fix bad ipv6 comparison; Thanks to Lon Hohberger</p></li>
@@ -193,24 +203,24 @@ patcher: no os.register_at_fork on Windows (#654)</p></li>
<li><p>wsgi: Don’t strip all Unicode whitespace from headers on py3; Thanks to Tim Burke</p></li>
</ul>
</section>
-<section id="id20">
-<h1>0.23.0<a class="headerlink" href="#id20" title="Permalink to this headline">¶</a></h1>
+<section id="id21">
+<h1>0.23.0<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>green.threading: current_thread() did not see new monkey-patched threads; Thanks to Jake Tesler</p></li>
<li><p>tpool: exception in tpool-ed call leaked memory via backtrace</p></li>
<li><p>wsgi: latin-1 encoding dance for environ[PATH_INFO]</p></li>
</ul>
</section>
-<section id="id21">
-<h1>0.22.1<a class="headerlink" href="#id21" title="Permalink to this headline">¶</a></h1>
+<section id="id22">
+<h1>0.22.1<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Fixed issue installing excess enum34 on Python3.4+ (rebuild with updated setuptools)</p></li>
<li><p>event: Event.wait() timeout=None argument to be compatible with upstream CPython</p></li>
<li><p>greendns: Treat /etc/hosts entries case-insensitive; Thanks to Ralf Haferkamp</p></li>
</ul>
</section>
-<section id="id22">
-<h1>0.22.0<a class="headerlink" href="#id22" title="Permalink to this headline">¶</a></h1>
+<section id="id23">
+<h1>0.22.0<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>convenience: (SO_REUSEPORT) socket.error is not OSError on Python 2; Thanks to <a class="reference external" href="mailto:JacoFourie&#37;&#52;&#48;github">JacoFourie<span>&#64;</span>github</a></p></li>
<li><p>convenience: SO_REUSEPORT is not available on WSL platform (Linux on Windows)</p></li>
@@ -234,8 +244,8 @@ patcher: no os.register_at_fork on Windows (#654)</p></li>
<li><p>wsgi: handle remote connection resets; Thanks to Stefan Nica</p></li>
</ul>
</section>
-<section id="id23">
-<h1>0.21.0<a class="headerlink" href="#id23" title="Permalink to this headline">¶</a></h1>
+<section id="id24">
+<h1>0.21.0<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>New timeout error API: .is_timeout=True on exception object
It’s now easy to test if network error is transient and retry is appropriate.
@@ -257,8 +267,8 @@ Please spread the word and invite other libraries to support this interface.</p>
<li><p>python3.6: http.client.request support chunked_encoding</p></li>
</ul>
</section>
-<section id="id24">
-<h1>0.20.1<a class="headerlink" href="#id24" title="Permalink to this headline">¶</a></h1>
+<section id="id25">
+<h1>0.20.1<a class="headerlink" href="#id25" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>dns: try unqualified queries as top level</p></li>
<li><p>test_import_patched_defaults bended to play with pyopenssl&gt;=16.1.0</p></li>
@@ -266,8 +276,8 @@ Please spread the word and invite other libraries to support this interface.</p>
<li><p>Type check Semaphore, GreenPool arguments; Thanks to Matthew D. Pagel</p></li>
</ul>
</section>
-<section id="id25">
-<h1>0.20.0<a class="headerlink" href="#id25" title="Permalink to this headline">¶</a></h1>
+<section id="id26">
+<h1>0.20.0<a class="headerlink" href="#id26" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>IMPORTANT: removed select.poll() function</p></li>
<li><p>DNS resolving is always green with dnspython bundled in</p></li>
@@ -289,8 +299,8 @@ Please spread the word and invite other libraries to support this interface.</p>
<li><p>websocket: support Gunicorn environ[‘gunicorn.socket’]</p></li>
</ul>
</section>
-<section id="id26">
-<h1>0.19.0<a class="headerlink" href="#id26" title="Permalink to this headline">¶</a></h1>
+<section id="id27">
+<h1>0.19.0<a class="headerlink" href="#id27" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ssl: IMPORTANT DoS FIX do_handshake_connect=False in server accept(); Thanks to Garth Mollett</p></li>
<li><p>patcher: patch existing threading locks; Thanks to Alexis Lee</p></li>
@@ -301,36 +311,36 @@ Please spread the word and invite other libraries to support this interface.</p>
<li><p>Minor grammatical improvements and typo fixes to the docs; Thanks to Steven Erenst</p></li>
</ul>
</section>
-<section id="id27">
-<h1>0.18.4<a class="headerlink" href="#id27" title="Permalink to this headline">¶</a></h1>
+<section id="id28">
+<h1>0.18.4<a class="headerlink" href="#id28" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: change TCP_NODELAY to TCP_QUICKACK, ignore socket error when not available</p></li>
</ul>
</section>
-<section id="id28">
-<h1>0.18.3<a class="headerlink" href="#id28" title="Permalink to this headline">¶</a></h1>
+<section id="id29">
+<h1>0.18.3<a class="headerlink" href="#id29" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: Use buffered writes - fixes partial socket.send without custom
writelines(); Github issue #295</p></li>
<li><p>wsgi: TCP_NODELAY enabled by default</p></li>
</ul>
</section>
-<section id="id29">
-<h1>0.18.2<a class="headerlink" href="#id29" title="Permalink to this headline">¶</a></h1>
+<section id="id30">
+<h1>0.18.2<a class="headerlink" href="#id30" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: Fix data loss on partial writes (socket.send); Thanks to Jakub Stasiak</p></li>
</ul>
</section>
-<section id="id30">
-<h1>0.18.1<a class="headerlink" href="#id30" title="Permalink to this headline">¶</a></h1>
+<section id="id31">
+<h1>0.18.1<a class="headerlink" href="#id31" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>IMPORTANT: do not use Eventlet 0.18.0 and 0.18.1</p></li>
<li><p>patcher: Fix AttributeError in subprocess communicate()</p></li>
<li><p>greenio: Fix “TypeError: an integer is required” in sendto()</p></li>
</ul>
</section>
-<section id="id31">
-<h1>0.18.0<a class="headerlink" href="#id31" title="Permalink to this headline">¶</a></h1>
+<section id="id32">
+<h1>0.18.0<a class="headerlink" href="#id32" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>IMPORTANT: do not use Eventlet 0.18.0 and 0.18.1</p></li>
<li><p>greenio: Fixed a bug that could cause send() to start an endless loop on
@@ -391,21 +401,21 @@ consistent with Python standard library and removes a source of very subtle
errors</p></li>
</ul>
</section>
-<section id="id32">
-<h1>0.17.4<a class="headerlink" href="#id32" title="Permalink to this headline">¶</a></h1>
+<section id="id33">
+<h1>0.17.4<a class="headerlink" href="#id33" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ssl: incorrect initalization of default context; Thanks to stuart-mclaren</p></li>
</ul>
</section>
-<section id="id33">
-<h1>0.17.3<a class="headerlink" href="#id33" title="Permalink to this headline">¶</a></h1>
+<section id="id34">
+<h1>0.17.3<a class="headerlink" href="#id34" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>green.thread: Python3.3+ fixes; Thanks to Victor Stinner</p></li>
<li><p>Semaphore.acquire() accepts timeout=-1; Thanks to Victor Stinner</p></li>
</ul>
</section>
-<section id="id34">
-<h1>0.17.2<a class="headerlink" href="#id34" title="Permalink to this headline">¶</a></h1>
+<section id="id35">
+<h1>0.17.2<a class="headerlink" href="#id35" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: Provide python logging compatibility; Thanks to Sean Dague</p></li>
<li><p>greendns: fix premature connection closing in DNS proxy; Thanks to Tim Simmons</p></li>
@@ -414,14 +424,14 @@ errors</p></li>
<li><p>setup: tests.{isolated,manual} polluted top-level packages</p></li>
</ul>
</section>
-<section id="id35">
-<h1>0.17.1<a class="headerlink" href="#id35" title="Permalink to this headline">¶</a></h1>
+<section id="id36">
+<h1>0.17.1<a class="headerlink" href="#id36" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greendns: fix dns.name import and Python3 compatibility</p></li>
</ul>
</section>
-<section id="id36">
-<h1>0.17<a class="headerlink" href="#id36" title="Permalink to this headline">¶</a></h1>
+<section id="id37">
+<h1>0.17<a class="headerlink" href="#id37" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Full Python3 compatibility; Thanks to Jakub Stasiak</p></li>
<li><p>greendns: IPv6 support, improved handling of /etc/hosts; Thanks to Floris Bruynooghe</p></li>
@@ -432,14 +442,14 @@ errors</p></li>
<li><p>greenio: shutdown already closed sockets without error; Thanks to David Szotten</p></li>
</ul>
</section>
-<section id="id37">
-<h1>0.16.1<a class="headerlink" href="#id37" title="Permalink to this headline">¶</a></h1>
+<section id="id38">
+<h1>0.16.1<a class="headerlink" href="#id38" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Wheel build 0.16.0 incorrectly shipped removed module eventlet.util.</p></li>
</ul>
</section>
-<section id="id38">
-<h1>0.16.0<a class="headerlink" href="#id38" title="Permalink to this headline">¶</a></h1>
+<section id="id39">
+<h1>0.16.0<a class="headerlink" href="#id39" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Fix SSL socket wrapping and Python 2.7.9 compatibility; Thanks to Jakub Stasiak</p></li>
<li><p>Fix monkey_patch() on Python 3; Thanks to Victor Stinner</p></li>
@@ -455,22 +465,22 @@ errors</p></li>
<li><p>tests: Fix timers not cleaned up on MySQL test skips; Thanks to Corey Wright</p></li>
</ul>
</section>
-<section id="id39">
-<h1>0.15.2<a class="headerlink" href="#id39" title="Permalink to this headline">¶</a></h1>
+<section id="id40">
+<h1>0.15.2<a class="headerlink" href="#id40" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greenio: fixed memory leak, introduced in 0.15.1; Thanks to Michael Kerrin, Tushar Gohad</p></li>
<li><p>wsgi: Support optional headers w/ “100 Continue” responses; Thanks to Tushar Gohad</p></li>
</ul>
</section>
-<section id="id40">
-<h1>0.15.1<a class="headerlink" href="#id40" title="Permalink to this headline">¶</a></h1>
+<section id="id41">
+<h1>0.15.1<a class="headerlink" href="#id41" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greenio: Fix second simultaneous read (parallel paramiko issue); Thanks to Jan Grant, Michael Kerrin</p></li>
<li><p>db_pool: customizable connection cleanup function; Thanks to Avery Fay</p></li>
</ul>
</section>
-<section id="id41">
-<h1>0.15<a class="headerlink" href="#id41" title="Permalink to this headline">¶</a></h1>
+<section id="id42">
+<h1>0.15<a class="headerlink" href="#id42" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Python3 compatibility – <strong>not ready yet</strong>; Thanks to Astrum Kuo, Davanum Srinivas, Jakub Stasiak, Victor Sergeyev</p></li>
<li><p>coros: remove Actor which was deprecated in 2010-01</p></li>
@@ -485,8 +495,8 @@ errors</p></li>
<li><p>wsgi: capitalize_response_headers option</p></li>
</ul>
</section>
-<section id="id42">
-<h1>0.14<a class="headerlink" href="#id42" title="Permalink to this headline">¶</a></h1>
+<section id="id43">
+<h1>0.14<a class="headerlink" href="#id43" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>wsgi: handle connection socket timeouts; Thanks to Paul Oppenheim</p></li>
<li><p>wsgi: close timed out client connections</p></li>
@@ -498,8 +508,8 @@ errors</p></li>
<li><p>wsgi: configurable socket_timeout</p></li>
</ul>
</section>
-<section id="id43">
-<h1>0.13<a class="headerlink" href="#id43" title="Permalink to this headline">¶</a></h1>
+<section id="id44">
+<h1>0.13<a class="headerlink" href="#id44" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>hubs: kqueue support! Thanks to YAMAMOTO Takashi, Edward George</p></li>
<li><p>greenio: Fix AttributeError on MacOSX; Bitbucket #136; Thanks to Derk Tegeler</p></li>
@@ -516,8 +526,8 @@ errors</p></li>
<li><p>doc: hubs: Point to the correct function in exception message; Thanks to Floris Bruynooghe</p></li>
</ul>
</section>
-<section id="id44">
-<h1>0.12<a class="headerlink" href="#id44" title="Permalink to this headline">¶</a></h1>
+<section id="id45">
+<h1>0.12<a class="headerlink" href="#id45" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>zmq: Fix 100% busy CPU in idle after .bind(PUB) (thanks to Geoff Salmon)</p></li>
<li><p>greenio: Fix socket.settimeout() did not switch back to blocking mode (thanks to Peter Skirko)</p></li>
@@ -527,16 +537,16 @@ errors</p></li>
<li><p>tests: Support libzmq 3.0 SNDHWM option (thanks to Geoff Salmon)</p></li>
</ul>
</section>
-<section id="id45">
-<h1>0.11<a class="headerlink" href="#id45" title="Permalink to this headline">¶</a></h1>
+<section id="id46">
+<h1>0.11<a class="headerlink" href="#id46" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ssl: Fix 100% busy CPU in socket.sendall() (thanks to Raymon Lu)</p></li>
<li><p>zmq: Return linger argument to Socket.close() (thanks to Eric Windisch)</p></li>
<li><p>tests: SSL tests were always skipped due to bug in skip_if_no_ssl decorator</p></li>
</ul>
</section>
-<section id="id46">
-<h1>0.10<a class="headerlink" href="#id46" title="Permalink to this headline">¶</a></h1>
+<section id="id47">
+<h1>0.10<a class="headerlink" href="#id47" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>greenio: Fix relative seek() (thanks to AlanP)</p></li>
<li><p>db_pool: Fix pool.put() TypeError with min_size &gt; 1 (thanks to Jessica Qi)</p></li>
@@ -554,8 +564,8 @@ errors</p></li>
<li><p>greenio: Remove deprecated GreenPipe.xreadlines() method, was broken anyway</p></li>
</ul>
</section>
-<section id="id47">
-<h1>0.9.17<a class="headerlink" href="#id47" title="Permalink to this headline">¶</a></h1>
+<section id="id48">
+<h1>0.9.17<a class="headerlink" href="#id48" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ZeroMQ support calling send and recv from multiple greenthreads (thanks to Geoff Salmon)</p></li>
<li><p>SSL: unwrap() sends data, and so it needs trampolining (#104 thanks to Brandon Rhodes)</p></li>
@@ -571,14 +581,14 @@ errors</p></li>
<li><p>wsgi: Configurable maximum URL length (thanks to Tomas Sedovic)</p></li>
</ul>
</section>
-<section id="id48">
-<h1>0.9.16<a class="headerlink" href="#id48" title="Permalink to this headline">¶</a></h1>
+<section id="id49">
+<h1>0.9.16<a class="headerlink" href="#id49" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>SO_REUSEADDR now correctly set.</p></li>
</ul>
</section>
-<section id="id49">
-<h1>0.9.15<a class="headerlink" href="#id49" title="Permalink to this headline">¶</a></h1>
+<section id="id50">
+<h1>0.9.15<a class="headerlink" href="#id50" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ZeroMQ support without an explicit hub now implemented! Thanks to Zed Shaw for the patch.</p></li>
<li><p>zmq module supports the NOBLOCK flag, thanks to rfk. (#76)</p></li>
@@ -590,8 +600,8 @@ errors</p></li>
<li><p>Timeouts raised within tpool.execute are propagated back to the caller (thanks again to redbo for being the squeaky wheel)</p></li>
</ul>
</section>
-<section id="id50">
-<h1>0.9.14<a class="headerlink" href="#id50" title="Permalink to this headline">¶</a></h1>
+<section id="id51">
+<h1>0.9.14<a class="headerlink" href="#id51" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Many fixes to the ZeroMQ hub, which now requires version 2.0.10 or later. Thanks to Ben Ford.</p></li>
<li><p>ZeroMQ hub no longer depends on pollhub, and thus works on Windows (thanks, Alexey Borzenkov)</p></li>
@@ -605,8 +615,8 @@ errors</p></li>
<li><p>Documentation for eventlet.green.zmq, courtesy of Ben Ford</p></li>
</ul>
</section>
-<section id="id51">
-<h1>0.9.13<a class="headerlink" href="#id51" title="Permalink to this headline">¶</a></h1>
+<section id="id52">
+<h1>0.9.13<a class="headerlink" href="#id52" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>ZeroMQ hub, and eventlet.green.zmq make supersockets green. Thanks to Ben Ford!</p></li>
<li><p>eventlet.green.MySQLdb added. It’s an interface to MySQLdb that uses tpool to make it appear nonblocking</p></li>
@@ -625,8 +635,8 @@ errors</p></li>
<li><p>Removed _main_wrapper from greenthread, thanks to Ambroff adding keyword arguments to switch() in 0.3!</p></li>
</ul>
</section>
-<section id="id52">
-<h1>0.9.12<a class="headerlink" href="#id52" title="Permalink to this headline">¶</a></h1>
+<section id="id53">
+<h1>0.9.12<a class="headerlink" href="#id53" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Eventlet no longer uses the Twisted hub if Twisted is imported – you must call eventlet.hubs.use_hub(‘twistedr’) if you want to use it. This prevents strange race conditions for those who want to use both Twisted and Eventlet separately.</p></li>
<li><p>Removed circular import in twistedr.py</p></li>
@@ -639,8 +649,8 @@ errors</p></li>
<li><p>Adding websocket.html to tarball so that you can run the examples without checking out the source</p></li>
</ul>
</section>
-<section id="id53">
-<h1>0.9.10<a class="headerlink" href="#id53" title="Permalink to this headline">¶</a></h1>
+<section id="id54">
+<h1>0.9.10<a class="headerlink" href="#id54" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Greendns: if dnspython is installed, Eventlet will automatically use it to provide non-blocking DNS queries. Set the environment variable ‘EVENTLET_NO_GREENDNS’ if you don’t want greendns but have dnspython installed.</p></li>
<li><p>Full test suite passes on Python 2.7.</p></li>
@@ -653,16 +663,16 @@ errors</p></li>
<li><p>Tweaked Timeout class to do something sensible when True is passed to the constructor</p></li>
</ul>
</section>
-<section id="id54">
-<h1>0.9.9<a class="headerlink" href="#id54" title="Permalink to this headline">¶</a></h1>
+<section id="id55">
+<h1>0.9.9<a class="headerlink" href="#id55" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>A fix for monkeypatching on systems with psycopg version 2.0.14.</p></li>
<li><p>Improved support for chunked transfers in wsgi, plus a bunch of tests from schmir (ported from gevent by redbo)</p></li>
<li><p>A fix for the twisted hub from Favo Yang</p></li>
</ul>
</section>
-<section id="id55">
-<h1>0.9.8<a class="headerlink" href="#id55" title="Permalink to this headline">¶</a></h1>
+<section id="id56">
+<h1>0.9.8<a class="headerlink" href="#id56" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Support for psycopg2’s asynchronous mode, from Daniele Varrazzo</p></li>
<li><p>websocket module is now part of core Eventlet with 100% unit test coverage thanks to Ben Ford. See its documentation at <a class="reference external" href="http://eventlet.net/doc/modules/websocket.html">http://eventlet.net/doc/modules/websocket.html</a></p></li>
@@ -674,8 +684,8 @@ errors</p></li>
<li><p>Many bug fixes, major and minor.</p></li>
</ul>
</section>
-<section id="id56">
-<h1>0.9.7<a class="headerlink" href="#id56" title="Permalink to this headline">¶</a></h1>
+<section id="id57">
+<h1>0.9.7<a class="headerlink" href="#id57" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>GreenPipe is now a context manager (thanks, quad)</p></li>
<li><p>tpool.Proxy supports iterators properly</p></li>
@@ -685,8 +695,8 @@ errors</p></li>
<li><p>multitudinous improvements in Py3k compatibility from amajorek</p></li>
</ul>
</section>
-<section id="id57">
-<h1>0.9.6<a class="headerlink" href="#id57" title="Permalink to this headline">¶</a></h1>
+<section id="id58">
+<h1>0.9.6<a class="headerlink" href="#id58" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>new EVENTLET_HUB environment variable allows you to select a hub without code</p></li>
<li><p>improved GreenSocket and GreenPipe compatibility with stdlib</p></li>
@@ -705,8 +715,8 @@ errors</p></li>
<li><p>new eventlet.serve convenience function for easy TCP servers</p></li>
</ul>
</section>
-<section id="id58">
-<h1>0.9.5<a class="headerlink" href="#id58" title="Permalink to this headline">¶</a></h1>
+<section id="id59">
+<h1>0.9.5<a class="headerlink" href="#id59" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>support psycopg in db_pool</p></li>
<li><p>smart patcher that does the right patching when importing without needing to understand plumbing of patched module</p></li>
@@ -729,8 +739,8 @@ errors</p></li>
<li><p>new convenience functions: eventlet.connect and eventlet.listen. Thanks, Sergey!</p></li>
</ul>
</section>
-<section id="id59">
-<h1>0.9.4<a class="headerlink" href="#id59" title="Permalink to this headline">¶</a></h1>
+<section id="id60">
+<h1>0.9.4<a class="headerlink" href="#id60" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Deprecated coros.Queue and coros.Channel (use queue.Queue instead)</p></li>
<li><p>Added putting and getting methods to queue.Queue.</p></li>
@@ -739,8 +749,8 @@ errors</p></li>
<li><p>Bugfixes in wsgi, greenpool</p></li>
</ul>
</section>
-<section id="id60">
-<h1>0.9.3<a class="headerlink" href="#id60" title="Permalink to this headline">¶</a></h1>
+<section id="id61">
+<h1>0.9.3<a class="headerlink" href="#id61" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Moved primary api module to __init__ from api. It shouldn’t be necessary to import eventlet.api anymore; import eventlet should do the same job.</p></li>
<li><p>Proc module deprecated in favor of greenthread</p></li>
@@ -766,16 +776,16 @@ errors</p></li>
<li><p>Removed saranwrap as an option for making db connections nonblocking in db_pool.</p></li>
</ul>
</section>
-<section id="id61">
-<h1>0.9.2<a class="headerlink" href="#id61" title="Permalink to this headline">¶</a></h1>
+<section id="id62">
+<h1>0.9.2<a class="headerlink" href="#id62" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Bugfix for wsgi.py where it was improperly expecting the environ variable to be a constant when passed to the application.</p></li>
<li><p>Tpool.py now passes its tests on Windows.</p></li>
<li><p>Fixed minor performance issue in wsgi.</p></li>
</ul>
</section>
-<section id="id62">
-<h1>0.9.1<a class="headerlink" href="#id62" title="Permalink to this headline">¶</a></h1>
+<section id="id63">
+<h1>0.9.1<a class="headerlink" href="#id63" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>PyOpenSSL is no longer required for Python 2.6: use the eventlet.green.ssl module. 2.5 and 2.4 still require PyOpenSSL.</p></li>
<li><p>Cleaned up the eventlet.green packages and their associated tests, this should result in fewer version-dependent bugs with these modules.</p></li>
@@ -794,8 +804,8 @@ errors</p></li>
<li><p>Bug fixes in: wsgi.py, twistedr.py, poll.py, greenio.py, util.py, select.py, processes.py, selects.py</p></li>
</ul>
</section>
-<section id="id63">
-<h1>0.9.0<a class="headerlink" href="#id63" title="Permalink to this headline">¶</a></h1>
+<section id="id64">
+<h1>0.9.0<a class="headerlink" href="#id64" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Full-duplex sockets (simultaneous readers and writers in the same process).</p></li>
<li><dl class="simple">
@@ -809,23 +819,23 @@ errors</p></li>
<li><p>Added eventlet.patcher which can be used to import “greened” modules.</p></li>
</ul>
</section>
-<section id="id64">
-<h1>0.8.16<a class="headerlink" href="#id64" title="Permalink to this headline">¶</a></h1>
+<section id="id65">
+<h1>0.8.16<a class="headerlink" href="#id65" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>GreenSSLObject properly masks ZeroReturnErrors with an empty read; with unit test.</p></li>
<li><p>Fixed 2.6 SSL compatibility issue.</p></li>
</ul>
</section>
-<section id="id65">
-<h1>0.8.15<a class="headerlink" href="#id65" title="Permalink to this headline">¶</a></h1>
+<section id="id66">
+<h1>0.8.15<a class="headerlink" href="#id66" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>GreenSSL object no longer converts ZeroReturnErrors into empty reads, because that is more compatible with the underlying SSLConnection object.</p></li>
<li><p>Fixed issue caused by SIGCHLD handler in processes.py</p></li>
<li><p>Stopped supporting string exceptions in saranwrap and fixed a few test failures.</p></li>
</ul>
</section>
-<section id="id66">
-<h1>0.8.14<a class="headerlink" href="#id66" title="Permalink to this headline">¶</a></h1>
+<section id="id67">
+<h1>0.8.14<a class="headerlink" href="#id67" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>Fixed some more Windows compatibility problems, resolving EVT-37 :</p></li>
</ul>
@@ -833,15 +843,15 @@ errors</p></li>
* waiting() method on Pool class, which was lost when the Pool implementation
replaced CoroutinePool.</p>
</section>
-<section id="id67">
-<h1>0.8.13<a class="headerlink" href="#id67" title="Permalink to this headline">¶</a></h1>
+<section id="id68">
+<h1>0.8.13<a class="headerlink" href="#id68" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>2.6 SSL compatibility patch by Marcus Cavanaugh.</p></li>
<li><p>Added greenlet and pyopenssl as dependencies in setup.py.</p></li>
</ul>
</section>
-<section id="id68">
-<h1>0.8.12<a class="headerlink" href="#id68" title="Permalink to this headline">¶</a></h1>
+<section id="id69">
+<h1>0.8.12<a class="headerlink" href="#id69" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><p>The ability to resize() pools of coroutines, which was lost when the</p></li>
</ul>
@@ -854,8 +864,8 @@ like SSL.Connection objects.
* A small patch that makes Eventlet work on Windows. This is the first
release of Eventlet that works on Windows.</p>
</section>
-<section id="id69">
-<h1>0.8.11<a class="headerlink" href="#id69" title="Permalink to this headline">¶</a></h1>
+<section id="id70">
+<h1>0.8.11<a class="headerlink" href="#id70" title="Permalink to this headline">¶</a></h1>
<p>Eventlet can now run on top of twisted reactor. Twisted-based hub is enabled automatically if
twisted.internet.reactor is imported. It is also possible to “embed” eventlet into a twisted
application via eventlet.twistedutil.join_reactor. See the examples for details.</p>
@@ -909,24 +919,24 @@ Thanks to Marcus Cavanaugh for pointing out some coros.queue(0) bugs.</p>
<p>Fix the libev hub to match libev’s callback signature. (Patch by grugq)</p>
<p>Add a backlog argument to api.tcp_listener (Patch by grugq)</p>
</section>
-<section id="id70">
-<h1>0.7.x<a class="headerlink" href="#id70" title="Permalink to this headline">¶</a></h1>
+<section id="id71">
+<h1>0.7.x<a class="headerlink" href="#id71" title="Permalink to this headline">¶</a></h1>
<p>Fix a major memory leak when using the libevent or libev hubs. Timers were not being removed from the hub after they fired. (Thanks Agusto Becciu and the grugq). Also, make it possible to call wrap_socket_with_coroutine_socket without using the threadpool to make dns operations non-blocking (Thanks the grugq).</p>
<p>It’s now possible to use eventlet’s SSL client to talk to eventlet’s SSL server. (Thanks to Ryan Williams)</p>
<p>Fixed a major CPU leak when using select hub. When adding a descriptor to the hub, entries were made in all three dictionaries, readers, writers, and exc, even if the callback is None. Thus every fd would be passed into all three lists when calling select regardless of whether there was a callback for that event or not. When reading the next request out of a keepalive socket, the socket would come back as ready for writing, the hub would notice the callback is None and ignore it, and then loop as fast as possible consuming CPU.</p>
</section>
-<section id="id71">
-<h1>0.6.x<a class="headerlink" href="#id71" title="Permalink to this headline">¶</a></h1>
+<section id="id72">
+<h1>0.6.x<a class="headerlink" href="#id72" title="Permalink to this headline">¶</a></h1>
<p>Fixes some long-standing bugs where sometimes failures in accept() or connect() would cause the coroutine that was waiting to be double-resumed, most often resulting in SwitchingToDeadGreenlet exceptions as well as weird tuple-unpacking exceptions in the CoroutinePool main loop.</p>
<p>0.6.1: Added eventlet.tpool.killall. Blocks until all of the threadpool threads have been told to exit and join()ed. Meant to be used to clean up the threadpool on exit or if calling execv. Used by Spawning.</p>
</section>
-<section id="id72">
-<h1>0.5.x<a class="headerlink" href="#id72" title="Permalink to this headline">¶</a></h1>
+<section id="id73">
+<h1>0.5.x<a class="headerlink" href="#id73" title="Permalink to this headline">¶</a></h1>
<p>“The Pycon 2008 Refactor”: The first release which incorporates libevent support. Also comes with significant refactoring and code cleanup, especially to the eventlet.wsgi http server. Docstring coverage is much higher and there is new extensive documentation: <a class="reference external" href="http://wiki.secondlife.com/wiki/Eventlet/Documentation">http://wiki.secondlife.com/wiki/Eventlet/Documentation</a></p>
<p>The point releases of 0.5.x fixed some bugs in the wsgi server, most notably handling of Transfer-Encoding: chunked; previously, it would happily send chunked encoding to clients which asked for HTTP/1.0, which isn’t legal.</p>
</section>
-<section id="id73">
-<h1>0.2<a class="headerlink" href="#id73" title="Permalink to this headline">¶</a></h1>
+<section id="id74">
+<h1>0.2<a class="headerlink" href="#id74" title="Permalink to this headline">¶</a></h1>
<p>Initial re-release of forked linden branch.</p>
</section>
@@ -939,80 +949,81 @@ Thanks to Marcus Cavanaugh for pointing out some coros.queue(0) bugs.</p>
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table of Contents</a></h3>
<ul>
-<li><a class="reference internal" href="#">0.32.0</a></li>
-<li><a class="reference internal" href="#id2">0.31.1</a></li>
-<li><a class="reference internal" href="#id3">0.31.0</a></li>
-<li><a class="reference internal" href="#id4">0.30.3</a></li>
-<li><a class="reference internal" href="#id5">0.30.2</a></li>
-<li><a class="reference internal" href="#id6">0.30.1</a></li>
-<li><a class="reference internal" href="#id7">0.30.0</a></li>
-<li><a class="reference internal" href="#id8">0.29.1</a></li>
-<li><a class="reference internal" href="#id9">0.29.0</a></li>
-<li><a class="reference internal" href="#id10">0.28.1</a></li>
-<li><a class="reference internal" href="#id11">0.28.0</a></li>
-<li><a class="reference internal" href="#id12">0.27.0</a></li>
-<li><a class="reference internal" href="#id13">0.26.1</a></li>
-<li><a class="reference internal" href="#id14">0.26.0</a></li>
-<li><a class="reference internal" href="#id15">0.25.2</a></li>
-<li><a class="reference internal" href="#id16">0.25.1</a></li>
-<li><a class="reference internal" href="#id17">0.25.0</a></li>
-<li><a class="reference internal" href="#id18">0.24.1</a></li>
-<li><a class="reference internal" href="#id19">0.24.0</a></li>
-<li><a class="reference internal" href="#id20">0.23.0</a></li>
-<li><a class="reference internal" href="#id21">0.22.1</a></li>
-<li><a class="reference internal" href="#id22">0.22.0</a></li>
-<li><a class="reference internal" href="#id23">0.21.0</a></li>
-<li><a class="reference internal" href="#id24">0.20.1</a></li>
-<li><a class="reference internal" href="#id25">0.20.0</a></li>
-<li><a class="reference internal" href="#id26">0.19.0</a></li>
-<li><a class="reference internal" href="#id27">0.18.4</a></li>
-<li><a class="reference internal" href="#id28">0.18.3</a></li>
-<li><a class="reference internal" href="#id29">0.18.2</a></li>
-<li><a class="reference internal" href="#id30">0.18.1</a></li>
-<li><a class="reference internal" href="#id31">0.18.0</a></li>
-<li><a class="reference internal" href="#id32">0.17.4</a></li>
-<li><a class="reference internal" href="#id33">0.17.3</a></li>
-<li><a class="reference internal" href="#id34">0.17.2</a></li>
-<li><a class="reference internal" href="#id35">0.17.1</a></li>
-<li><a class="reference internal" href="#id36">0.17</a></li>
-<li><a class="reference internal" href="#id37">0.16.1</a></li>
-<li><a class="reference internal" href="#id38">0.16.0</a></li>
-<li><a class="reference internal" href="#id39">0.15.2</a></li>
-<li><a class="reference internal" href="#id40">0.15.1</a></li>
-<li><a class="reference internal" href="#id41">0.15</a></li>
-<li><a class="reference internal" href="#id42">0.14</a></li>
-<li><a class="reference internal" href="#id43">0.13</a></li>
-<li><a class="reference internal" href="#id44">0.12</a></li>
-<li><a class="reference internal" href="#id45">0.11</a></li>
-<li><a class="reference internal" href="#id46">0.10</a></li>
-<li><a class="reference internal" href="#id47">0.9.17</a></li>
-<li><a class="reference internal" href="#id48">0.9.16</a></li>
-<li><a class="reference internal" href="#id49">0.9.15</a></li>
-<li><a class="reference internal" href="#id50">0.9.14</a></li>
-<li><a class="reference internal" href="#id51">0.9.13</a></li>
-<li><a class="reference internal" href="#id52">0.9.12</a></li>
-<li><a class="reference internal" href="#id53">0.9.10</a></li>
-<li><a class="reference internal" href="#id54">0.9.9</a></li>
-<li><a class="reference internal" href="#id55">0.9.8</a></li>
-<li><a class="reference internal" href="#id56">0.9.7</a></li>
-<li><a class="reference internal" href="#id57">0.9.6</a></li>
-<li><a class="reference internal" href="#id58">0.9.5</a></li>
-<li><a class="reference internal" href="#id59">0.9.4</a></li>
-<li><a class="reference internal" href="#id60">0.9.3</a></li>
-<li><a class="reference internal" href="#id61">0.9.2</a></li>
-<li><a class="reference internal" href="#id62">0.9.1</a></li>
-<li><a class="reference internal" href="#id63">0.9.0</a></li>
-<li><a class="reference internal" href="#id64">0.8.16</a></li>
-<li><a class="reference internal" href="#id65">0.8.15</a></li>
-<li><a class="reference internal" href="#id66">0.8.14</a></li>
-<li><a class="reference internal" href="#id67">0.8.13</a></li>
-<li><a class="reference internal" href="#id68">0.8.12</a></li>
-<li><a class="reference internal" href="#id69">0.8.11</a></li>
+<li><a class="reference internal" href="#">0.33.0</a></li>
+<li><a class="reference internal" href="#id2">0.32.0</a></li>
+<li><a class="reference internal" href="#id3">0.31.1</a></li>
+<li><a class="reference internal" href="#id4">0.31.0</a></li>
+<li><a class="reference internal" href="#id5">0.30.3</a></li>
+<li><a class="reference internal" href="#id6">0.30.2</a></li>
+<li><a class="reference internal" href="#id7">0.30.1</a></li>
+<li><a class="reference internal" href="#id8">0.30.0</a></li>
+<li><a class="reference internal" href="#id9">0.29.1</a></li>
+<li><a class="reference internal" href="#id10">0.29.0</a></li>
+<li><a class="reference internal" href="#id11">0.28.1</a></li>
+<li><a class="reference internal" href="#id12">0.28.0</a></li>
+<li><a class="reference internal" href="#id13">0.27.0</a></li>
+<li><a class="reference internal" href="#id14">0.26.1</a></li>
+<li><a class="reference internal" href="#id15">0.26.0</a></li>
+<li><a class="reference internal" href="#id16">0.25.2</a></li>
+<li><a class="reference internal" href="#id17">0.25.1</a></li>
+<li><a class="reference internal" href="#id18">0.25.0</a></li>
+<li><a class="reference internal" href="#id19">0.24.1</a></li>
+<li><a class="reference internal" href="#id20">0.24.0</a></li>
+<li><a class="reference internal" href="#id21">0.23.0</a></li>
+<li><a class="reference internal" href="#id22">0.22.1</a></li>
+<li><a class="reference internal" href="#id23">0.22.0</a></li>
+<li><a class="reference internal" href="#id24">0.21.0</a></li>
+<li><a class="reference internal" href="#id25">0.20.1</a></li>
+<li><a class="reference internal" href="#id26">0.20.0</a></li>
+<li><a class="reference internal" href="#id27">0.19.0</a></li>
+<li><a class="reference internal" href="#id28">0.18.4</a></li>
+<li><a class="reference internal" href="#id29">0.18.3</a></li>
+<li><a class="reference internal" href="#id30">0.18.2</a></li>
+<li><a class="reference internal" href="#id31">0.18.1</a></li>
+<li><a class="reference internal" href="#id32">0.18.0</a></li>
+<li><a class="reference internal" href="#id33">0.17.4</a></li>
+<li><a class="reference internal" href="#id34">0.17.3</a></li>
+<li><a class="reference internal" href="#id35">0.17.2</a></li>
+<li><a class="reference internal" href="#id36">0.17.1</a></li>
+<li><a class="reference internal" href="#id37">0.17</a></li>
+<li><a class="reference internal" href="#id38">0.16.1</a></li>
+<li><a class="reference internal" href="#id39">0.16.0</a></li>
+<li><a class="reference internal" href="#id40">0.15.2</a></li>
+<li><a class="reference internal" href="#id41">0.15.1</a></li>
+<li><a class="reference internal" href="#id42">0.15</a></li>
+<li><a class="reference internal" href="#id43">0.14</a></li>
+<li><a class="reference internal" href="#id44">0.13</a></li>
+<li><a class="reference internal" href="#id45">0.12</a></li>
+<li><a class="reference internal" href="#id46">0.11</a></li>
+<li><a class="reference internal" href="#id47">0.10</a></li>
+<li><a class="reference internal" href="#id48">0.9.17</a></li>
+<li><a class="reference internal" href="#id49">0.9.16</a></li>
+<li><a class="reference internal" href="#id50">0.9.15</a></li>
+<li><a class="reference internal" href="#id51">0.9.14</a></li>
+<li><a class="reference internal" href="#id52">0.9.13</a></li>
+<li><a class="reference internal" href="#id53">0.9.12</a></li>
+<li><a class="reference internal" href="#id54">0.9.10</a></li>
+<li><a class="reference internal" href="#id55">0.9.9</a></li>
+<li><a class="reference internal" href="#id56">0.9.8</a></li>
+<li><a class="reference internal" href="#id57">0.9.7</a></li>
+<li><a class="reference internal" href="#id58">0.9.6</a></li>
+<li><a class="reference internal" href="#id59">0.9.5</a></li>
+<li><a class="reference internal" href="#id60">0.9.4</a></li>
+<li><a class="reference internal" href="#id61">0.9.3</a></li>
+<li><a class="reference internal" href="#id62">0.9.2</a></li>
+<li><a class="reference internal" href="#id63">0.9.1</a></li>
+<li><a class="reference internal" href="#id64">0.9.0</a></li>
+<li><a class="reference internal" href="#id65">0.8.16</a></li>
+<li><a class="reference internal" href="#id66">0.8.15</a></li>
+<li><a class="reference internal" href="#id67">0.8.14</a></li>
+<li><a class="reference internal" href="#id68">0.8.13</a></li>
+<li><a class="reference internal" href="#id69">0.8.12</a></li>
+<li><a class="reference internal" href="#id70">0.8.11</a></li>
<li><a class="reference internal" href="#x">0.8.x</a></li>
-<li><a class="reference internal" href="#id70">0.7.x</a></li>
-<li><a class="reference internal" href="#id71">0.6.x</a></li>
-<li><a class="reference internal" href="#id72">0.5.x</a></li>
-<li><a class="reference internal" href="#id73">0.2</a></li>
+<li><a class="reference internal" href="#id71">0.7.x</a></li>
+<li><a class="reference internal" href="#id72">0.6.x</a></li>
+<li><a class="reference internal" href="#id73">0.5.x</a></li>
+<li><a class="reference internal" href="#id74">0.2</a></li>
</ul>
<div role="note" aria-label="source link">
@@ -1045,8 +1056,8 @@ Thanks to Marcus Cavanaugh for pointing out some coros.queue(0) bugs.</p>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
- <li class="nav-item nav-item-this"><a href="">0.32.0</a></li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-this"><a href="">0.33.0</a></li>
</ul>
</div>
diff --git a/doc/design_patterns.html b/doc/design_patterns.html
index 19b3b74..2b23051 100644
--- a/doc/design_patterns.html
+++ b/doc/design_patterns.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Design Patterns &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Design Patterns &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="basic_usage.html" title="Basic Usage"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Design Patterns</a></li>
</ul>
</div>
@@ -192,7 +192,7 @@
<li class="right" >
<a href="basic_usage.html" title="Basic Usage"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Design Patterns</a></li>
</ul>
</div>
diff --git a/doc/environment.html b/doc/environment.html
index 4ceabe8..073b478 100644
--- a/doc/environment.html
+++ b/doc/environment.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Environment Variables &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Environment Variables &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="testing.html" title="Testing Eventlet"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Environment Variables</a></li>
</ul>
</div>
@@ -114,7 +114,7 @@ use, so any control of the pool size needs to happen before then.</p>
<li class="right" >
<a href="testing.html" title="Testing Eventlet"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Environment Variables</a></li>
</ul>
</div>
diff --git a/doc/examples.html b/doc/examples.html
index 3da6953..30f07a1 100644
--- a/doc/examples.html
+++ b/doc/examples.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Examples &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Examples &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="patching.html" title="Greening The World"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Examples</a></li>
</ul>
</div>
@@ -595,7 +595,7 @@ implementation.</p>
<li class="right" >
<a href="patching.html" title="Greening The World"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Examples</a></li>
</ul>
</div>
diff --git a/doc/genindex.html b/doc/genindex.html
index efec77f..7ee7628 100644
--- a/doc/genindex.html
+++ b/doc/genindex.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Index &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Index &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -26,7 +26,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
@@ -919,7 +919,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Index</a></li>
</ul>
</div>
diff --git a/doc/history.html b/doc/history.html
index 2c7ad73..fc3743d 100644
--- a/doc/history.html
+++ b/doc/history.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>History &#8212; Eventlet 0.32.0 documentation</title>
+ <title>History &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -31,7 +31,7 @@
<li class="right" >
<a href="authors.html" title="Authors"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">History</a></li>
</ul>
</div>
@@ -94,7 +94,7 @@
<li class="right" >
<a href="authors.html" title="Authors"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">History</a></li>
</ul>
</div>
diff --git a/doc/hubs.html b/doc/hubs.html
index 144fd47..43f21ac 100644
--- a/doc/hubs.html
+++ b/doc/hubs.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Understanding Eventlet Hubs &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Understanding Eventlet Hubs &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="zeromq.html" title="Zeromq"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Understanding Eventlet Hubs</a></li>
</ul>
</div>
@@ -198,7 +198,7 @@ unexpectedly without being deprecated first.</p>
<li class="right" >
<a href="zeromq.html" title="Zeromq"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Understanding Eventlet Hubs</a></li>
</ul>
</div>
diff --git a/doc/index.html b/doc/index.html
index eaa3a83..7191414 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Eventlet Documentation &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Eventlet Documentation &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -31,7 +31,7 @@
<li class="right" >
<a href="basic_usage.html" title="Basic Usage"
accesskey="N">next</a> |</li>
- <li class="nav-item nav-item-0"><a href="#">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="#">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Eventlet Documentation</a></li>
</ul>
</div>
@@ -228,7 +228,7 @@
<li class="right" >
<a href="basic_usage.html" title="Basic Usage"
>next</a> |</li>
- <li class="nav-item nav-item-0"><a href="#">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="#">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Eventlet Documentation</a></li>
</ul>
</div>
diff --git a/doc/modules.html b/doc/modules.html
index 97e5acc..544d223 100644
--- a/doc/modules.html
+++ b/doc/modules.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Module Reference &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Module Reference &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="environment.html" title="Environment Variables"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Module Reference</a></li>
</ul>
</div>
@@ -131,7 +131,7 @@
<li class="right" >
<a href="environment.html" title="Environment Variables"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Module Reference</a></li>
</ul>
</div>
diff --git a/doc/modules/backdoor.html b/doc/modules/backdoor.html
index 55ff537..d15b1ac 100644
--- a/doc/modules/backdoor.html
+++ b/doc/modules/backdoor.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>backdoor – Python interactive interpreter within a running process &#8212; Eventlet 0.32.0 documentation</title>
+ <title>backdoor – Python interactive interpreter within a running process &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="../modules.html" title="Module Reference"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">backdoor</span></code> – Python interactive interpreter within a running process</a></li>
</ul>
@@ -157,7 +157,7 @@ variables in here.</p>
<li class="right" >
<a href="../modules.html" title="Module Reference"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">backdoor</span></code> – Python interactive interpreter within a running process</a></li>
</ul>
diff --git a/doc/modules/corolocal.html b/doc/modules/corolocal.html
index 2be6da5..b55f421 100644
--- a/doc/modules/corolocal.html
+++ b/doc/modules/corolocal.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>corolocal – Coroutine local storage &#8212; Eventlet 0.32.0 documentation</title>
+ <title>corolocal – Coroutine local storage &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="backdoor.html" title="backdoor – Python interactive interpreter within a running process"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">corolocal</span></code> – Coroutine local storage</a></li>
</ul>
@@ -110,7 +110,7 @@
<li class="right" >
<a href="backdoor.html" title="backdoor – Python interactive interpreter within a running process"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">corolocal</span></code> – Coroutine local storage</a></li>
</ul>
diff --git a/doc/modules/dagpool.html b/doc/modules/dagpool.html
index 49b3f6d..0043b45 100644
--- a/doc/modules/dagpool.html
+++ b/doc/modules/dagpool.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>dagpool – Dependency-Driven Greenthreads &#8212; Eventlet 0.32.0 documentation</title>
+ <title>dagpool – Dependency-Driven Greenthreads &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="corolocal.html" title="corolocal – Coroutine local storage"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">dagpool</span></code> – Dependency-Driven Greenthreads</a></li>
</ul>
@@ -815,7 +815,7 @@ PropagateError.</p>
<li class="right" >
<a href="corolocal.html" title="corolocal – Coroutine local storage"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">dagpool</span></code> – Dependency-Driven Greenthreads</a></li>
</ul>
diff --git a/doc/modules/db_pool.html b/doc/modules/db_pool.html
index 7bcf458..3a5c881 100644
--- a/doc/modules/db_pool.html
+++ b/doc/modules/db_pool.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>db_pool – DBAPI 2 database connection pooling &#8212; Eventlet 0.32.0 documentation</title>
+ <title>db_pool – DBAPI 2 database connection pooling &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="debug.html" title="debug – Debugging tools for Eventlet"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">db_pool</span></code> – DBAPI 2 database connection pooling</a></li>
</ul>
@@ -473,7 +473,7 @@ called a second time.</p>
<li class="right" >
<a href="debug.html" title="debug – Debugging tools for Eventlet"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">db_pool</span></code> – DBAPI 2 database connection pooling</a></li>
</ul>
diff --git a/doc/modules/debug.html b/doc/modules/debug.html
index e91b636..500a773 100644
--- a/doc/modules/debug.html
+++ b/doc/modules/debug.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>debug – Debugging tools for Eventlet &#8212; Eventlet 0.32.0 documentation</title>
+ <title>debug – Debugging tools for Eventlet &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="dagpool.html" title="dagpool – Dependency-Driven Greenthreads"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">debug</span></code> – Debugging tools for Eventlet</a></li>
</ul>
@@ -77,7 +77,7 @@ greenlet is resumed. Therefore, any code that runs for a long
time without yielding to the hub will get interrupted by the
blocking detector (don’t use it in production!).</p>
<p>The <em>resolution</em> argument governs how long the SIGALARM timeout
-waits in seconds. The implementation uses <a class="reference external" href="https://docs.python.org/3/library/signal.html#signal.setitimer" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">signal.setitimer()</span></code></a>
+waits in seconds. The implementation uses <a class="reference external" href="https://docs.python.org/3/library/signal.html#signal.setitimer" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">signal.setitimer()</span></code></a>
and can be specified as a floating-point value.
The shorter the resolution, the greater the chance of false
positives.</p>
@@ -191,7 +191,7 @@ it normally does.</p>
<li class="right" >
<a href="dagpool.html" title="dagpool – Dependency-Driven Greenthreads"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">debug</span></code> – Debugging tools for Eventlet</a></li>
</ul>
diff --git a/doc/modules/event.html b/doc/modules/event.html
index 071b0af..ea1db34 100644
--- a/doc/modules/event.html
+++ b/doc/modules/event.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>event – Cross-greenthread primitive &#8212; Eventlet 0.32.0 documentation</title>
+ <title>event – Cross-greenthread primitive &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="db_pool.html" title="db_pool – DBAPI 2 database connection pooling"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">event</span></code> – Cross-greenthread primitive</a></li>
</ul>
@@ -134,7 +134,7 @@ new stacktrace.</p>
</pre></div>
</div>
<p>If it’s important to preserve the entire original stack trace,
-you must pass in the entire <a class="reference external" href="https://docs.python.org/3/library/sys.html#sys.exc_info" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.exc_info()</span></code></a> tuple.</p>
+you must pass in the entire <a class="reference external" href="https://docs.python.org/3/library/sys.html#sys.exc_info" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.exc_info()</span></code></a> tuple.</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">import</span> <span class="nn">sys</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">evt</span> <span class="o">=</span> <span class="n">event</span><span class="o">.</span><span class="n">Event</span><span class="p">()</span>
<span class="gp">&gt;&gt;&gt; </span><span class="k">try</span><span class="p">:</span>
@@ -153,7 +153,7 @@ you must pass in the entire <a class="reference external" href="https://docs.pyt
</div>
<p>Note that doing so stores a traceback object directly on the
Event object, which may cause reference cycles. See the
-<a class="reference external" href="https://docs.python.org/3/library/sys.html#sys.exc_info" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.exc_info()</span></code></a> documentation.</p>
+<a class="reference external" href="https://docs.python.org/3/library/sys.html#sys.exc_info" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">sys.exc_info()</span></code></a> documentation.</p>
</dd></dl>
<dl class="py method">
@@ -234,7 +234,7 @@ specifying a timeout for the operation in seconds (or fractions thereof).</p>
<li class="right" >
<a href="db_pool.html" title="db_pool – DBAPI 2 database connection pooling"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">event</span></code> – Cross-greenthread primitive</a></li>
</ul>
diff --git a/doc/modules/greenpool.html b/doc/modules/greenpool.html
index 42d497d..ac8ab29 100644
--- a/doc/modules/greenpool.html
+++ b/doc/modules/greenpool.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>greenpool – Green Thread Pools &#8212; Eventlet 0.32.0 documentation</title>
+ <title>greenpool – Green Thread Pools &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="event.html" title="event – Cross-greenthread primitive"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">greenpool</span></code> – Green Thread Pools</a></li>
</ul>
@@ -146,7 +146,7 @@ None; the results of <em>function</em> are not retrievable.</p>
<dl class="py method">
<dt class="sig sig-object py" id="eventlet.greenpool.GreenPool.starmap">
<span class="sig-name descname"><span class="pre">starmap</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">function</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iterable</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#eventlet.greenpool.GreenPool.starmap" title="Permalink to this definition">¶</a></dt>
-<dd><p>This is the same as <a class="reference external" href="https://docs.python.org/3/library/itertools.html#itertools.starmap" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">itertools.starmap()</span></code></a>, except that <em>func</em> is
+<dd><p>This is the same as <a class="reference external" href="https://docs.python.org/3/library/itertools.html#itertools.starmap" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">itertools.starmap()</span></code></a>, except that <em>func</em> is
executed in a separate green thread for each item, with the concurrency
limited by the pool’s size. In operation, starmap consumes a constant
amount of memory, proportional to the size of the pool, and is thus
@@ -218,7 +218,7 @@ suited for iterating over extremely long input lists.</p>
<li class="right" >
<a href="event.html" title="event – Cross-greenthread primitive"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">greenpool</span></code> – Green Thread Pools</a></li>
</ul>
diff --git a/doc/modules/greenthread.html b/doc/modules/greenthread.html
index c0874a3..ed12d8e 100644
--- a/doc/modules/greenthread.html
+++ b/doc/modules/greenthread.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>greenthread – Green Thread Implementation &#8212; Eventlet 0.32.0 documentation</title>
+ <title>greenthread – Green Thread Implementation &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="greenpool.html" title="greenpool – Green Thread Pools"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">greenthread</span></code> – Green Thread Implementation</a></li>
</ul>
@@ -248,7 +248,7 @@ trace; the print can be disabled by calling
<li class="right" >
<a href="greenpool.html" title="greenpool – Green Thread Pools"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">greenthread</span></code> – Green Thread Implementation</a></li>
</ul>
diff --git a/doc/modules/pools.html b/doc/modules/pools.html
index d75a04e..64503ce 100644
--- a/doc/modules/pools.html
+++ b/doc/modules/pools.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>pools - Generic pools of resources &#8212; Eventlet 0.32.0 documentation</title>
+ <title>pools - Generic pools of resources &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="greenthread.html" title="greenthread – Green Thread Implementation"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">pools</span></code> - Generic pools of resources</a></li>
</ul>
@@ -64,7 +64,7 @@ the resource.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">http_pool</span> <span class="o">=</span> <span class="n">pools</span><span class="o">.</span><span class="n">Pool</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="k">lambda</span><span class="p">:</span> <span class="n">httplib2</span><span class="o">.</span><span class="n">Http</span><span class="p">(</span><span class="n">timeout</span><span class="o">=</span><span class="mi">90</span><span class="p">))</span>
</pre></div>
</div>
-<p>or <a class="reference external" href="https://docs.python.org/3/library/functools.html#functools.partial" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">functools.partial()</span></code></a>:</p>
+<p>or <a class="reference external" href="https://docs.python.org/3/library/functools.html#functools.partial" title="(in Python v3.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">functools.partial()</span></code></a>:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">partial</span>
<span class="n">http_pool</span> <span class="o">=</span> <span class="n">pools</span><span class="o">.</span><span class="n">Pool</span><span class="p">(</span><span class="n">create</span><span class="o">=</span><span class="n">partial</span><span class="p">(</span><span class="n">httplib2</span><span class="o">.</span><span class="n">Http</span><span class="p">,</span> <span class="n">timeout</span><span class="o">=</span><span class="mi">90</span><span class="p">))</span>
</pre></div>
@@ -239,7 +239,7 @@ called a second time.</p>
<li class="right" >
<a href="greenthread.html" title="greenthread – Green Thread Implementation"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">pools</span></code> - Generic pools of resources</a></li>
</ul>
diff --git a/doc/modules/queue.html b/doc/modules/queue.html
index 290be39..b8eb434 100644
--- a/doc/modules/queue.html
+++ b/doc/modules/queue.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>queue – Queue class &#8212; Eventlet 0.32.0 documentation</title>
+ <title>queue – Queue class &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="pools.html" title="pools - Generic pools of resources"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">queue</span></code> – Queue class</a></li>
</ul>
@@ -47,11 +47,11 @@
<div class="body" role="main">
<section id="module-eventlet.queue">
-<span id="queue-queue-class"></span><h1><a class="reference external" href="https://docs.python.org/3/library/queue.html#module-queue" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">queue</span></code></a> – Queue class<a class="headerlink" href="#module-eventlet.queue" title="Permalink to this headline">¶</a></h1>
+<span id="queue-queue-class"></span><h1><a class="reference external" href="https://docs.python.org/3/library/queue.html#module-queue" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">queue</span></code></a> – Queue class<a class="headerlink" href="#module-eventlet.queue" title="Permalink to this headline">¶</a></h1>
<p>Synchronized queues.</p>
<p>The <a class="reference internal" href="#module-eventlet.queue" title="eventlet.queue"><code class="xref py py-mod docutils literal notranslate"><span class="pre">eventlet.queue</span></code></a> module implements multi-producer, multi-consumer
queues that work across greenlets, with the API similar to the classes found in
-the standard <code class="xref py py-mod docutils literal notranslate"><span class="pre">Queue</span></code> and <a class="reference external" href="https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Queue" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">multiprocessing</span></code></a>
+the standard <code class="xref py py-mod docutils literal notranslate"><span class="pre">Queue</span></code> and <a class="reference external" href="https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Queue" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">multiprocessing</span></code></a>
modules.</p>
<p>A major difference is that queues in this module operate as channels when
initialized with <em>maxsize</em> of zero. In such case, both <code class="xref py py-meth docutils literal notranslate"><span class="pre">Queue.empty()</span></code>
@@ -208,7 +208,7 @@ For each <code class="xref py py-meth docutils literal notranslate"><span class=
<p>If a <a class="reference internal" href="#eventlet.queue.Queue.join" title="eventlet.queue.Queue.join"><code class="xref py py-meth docutils literal notranslate"><span class="pre">join()</span></code></a> is currently blocking, it will resume when all items have been processed
(meaning that a <a class="reference internal" href="#eventlet.queue.Queue.task_done" title="eventlet.queue.Queue.task_done"><code class="xref py py-meth docutils literal notranslate"><span class="pre">task_done()</span></code></a> call was received for every item that had been
<code class="xref py py-meth docutils literal notranslate"><span class="pre">put</span></code> into the queue).</p>
-<p>Raises a <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#ValueError" title="(in Python v3.9)"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> if called more times than there were items placed in the queue.</p>
+<p>Raises a <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#ValueError" title="(in Python v3.10)"><code class="xref py py-exc docutils literal notranslate"><span class="pre">ValueError</span></code></a> if called more times than there were items placed in the queue.</p>
</dd></dl>
</dd></dl>
@@ -264,7 +264,7 @@ For each <code class="xref py py-meth docutils literal notranslate"><span class=
<li class="right" >
<a href="pools.html" title="pools - Generic pools of resources"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">queue</span></code> – Queue class</a></li>
</ul>
diff --git a/doc/modules/semaphore.html b/doc/modules/semaphore.html
index 2de0c48..a9fd0e0 100644
--- a/doc/modules/semaphore.html
+++ b/doc/modules/semaphore.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>semaphore – Semaphore classes &#8212; Eventlet 0.32.0 documentation</title>
+ <title>semaphore – Semaphore classes &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="queue.html" title="queue – Queue class"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">semaphore</span></code> – Semaphore classes</a></li>
</ul>
@@ -56,7 +56,7 @@ Optionally initialize with a resource <em>count</em>, then <a class="reference i
<a class="reference internal" href="#eventlet.semaphore.Semaphore.release" title="eventlet.semaphore.Semaphore.release"><code class="xref py py-meth docutils literal notranslate"><span class="pre">release()</span></code></a> resources as needed. Attempting to <a class="reference internal" href="#eventlet.semaphore.Semaphore.acquire" title="eventlet.semaphore.Semaphore.acquire"><code class="xref py py-meth docutils literal notranslate"><span class="pre">acquire()</span></code></a> when
<em>count</em> is zero suspends the calling greenthread until <em>count</em> becomes
nonzero again.</p>
-<p>This is API-compatible with <a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.Semaphore" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.Semaphore</span></code></a>.</p>
+<p>This is API-compatible with <a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.Semaphore" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.Semaphore</span></code></a>.</p>
<p>It is a context manager, and thus can be used in a with block:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sem</span> <span class="o">=</span> <span class="n">Semaphore</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>
<span class="k">with</span> <span class="n">sem</span><span class="p">:</span>
@@ -159,10 +159,10 @@ and is ignored</p>
again. Attempting to <a class="reference internal" href="#eventlet.semaphore.CappedSemaphore.release" title="eventlet.semaphore.CappedSemaphore.release"><code class="xref py py-meth docutils literal notranslate"><span class="pre">release()</span></code></a> after <em>count</em> has reached <em>limit</em>
suspends the calling greenthread until <em>count</em> becomes less than <em>limit</em>
again.</p>
-<p>This has the same API as <a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.Semaphore" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.Semaphore</span></code></a>, though its
+<p>This has the same API as <a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.Semaphore" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.Semaphore</span></code></a>, though its
semantics and behavior differ subtly due to the upper limit on calls
to <a class="reference internal" href="#eventlet.semaphore.CappedSemaphore.release" title="eventlet.semaphore.CappedSemaphore.release"><code class="xref py py-meth docutils literal notranslate"><span class="pre">release()</span></code></a>. It is <strong>not</strong> compatible with
-<a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.BoundedSemaphore" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.BoundedSemaphore</span></code></a> because it blocks when reaching <em>limit</em>
+<a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.BoundedSemaphore" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">threading.BoundedSemaphore</span></code></a> because it blocks when reaching <em>limit</em>
instead of raising a ValueError.</p>
<p>It is a context manager, and thus can be used in a with block:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">sem</span> <span class="o">=</span> <span class="n">CappedSemaphore</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>
@@ -277,7 +277,7 @@ counter is greater than or equal to <em>limit</em>.</p>
<li class="right" >
<a href="queue.html" title="queue – Queue class"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">semaphore</span></code> – Semaphore classes</a></li>
</ul>
diff --git a/doc/modules/timeout.html b/doc/modules/timeout.html
index bf517ec..1961c7b 100644
--- a/doc/modules/timeout.html
+++ b/doc/modules/timeout.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>timeout – Universal Timeouts &#8212; Eventlet 0.32.0 documentation</title>
+ <title>timeout – Universal Timeouts &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="semaphore.html" title="semaphore – Semaphore classes"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">timeout</span></code> – Universal Timeouts</a></li>
</ul>
@@ -91,7 +91,7 @@ and is only useful if you’re planning to raise it directly.</p>
<p>There are two Timeout caveats to be aware of:</p>
<ul class="simple">
<li><p>If the code block in the try/finally or with-block never cooperatively yields, the timeout cannot be raised. In Eventlet, this should rarely be a problem, but be aware that you cannot time out CPU-only operations with this class.</p></li>
-<li><p>If the code block catches and doesn’t re-raise <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#BaseException" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">BaseException</span></code></a> (for example, with <code class="docutils literal notranslate"><span class="pre">except:</span></code>), then it will catch the Timeout exception, and might not abort as intended.</p></li>
+<li><p>If the code block catches and doesn’t re-raise <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#BaseException" title="(in Python v3.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">BaseException</span></code></a> (for example, with <code class="docutils literal notranslate"><span class="pre">except:</span></code>), then it will catch the Timeout exception, and might not abort as intended.</p></li>
</ul>
<p>When catching timeouts, keep in mind that the one you catch may not be the
one you set; if you plan on silencing a timeout, always check that it’s the
@@ -131,7 +131,7 @@ value.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
-<li><p><strong>seconds</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.9)"><em>int</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.9)"><em>float</em></a>) – seconds before timeout occurs</p></li>
+<li><p><strong>seconds</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><em>int</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.10)"><em>float</em></a>) – seconds before timeout occurs</p></li>
<li><p><strong>func</strong> – the callable to execute with a timeout; it must cooperatively yield, or else the timeout will not be able to trigger</p></li>
<li><p><strong>*args</strong> – positional arguments to pass to <em>func</em></p></li>
<li><p><strong>**kwds</strong> – keyword arguments to pass to <em>func</em></p></li>
@@ -211,7 +211,7 @@ is passed through to the caller.</p>
<li class="right" >
<a href="semaphore.html" title="semaphore – Semaphore classes"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">timeout</span></code> – Universal Timeouts</a></li>
</ul>
diff --git a/doc/modules/websocket.html b/doc/modules/websocket.html
index 20b8f66..e791a61 100644
--- a/doc/modules/websocket.html
+++ b/doc/modules/websocket.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>websocket – Websocket Server &#8212; Eventlet 0.32.0 documentation</title>
+ <title>websocket – Websocket Server &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="timeout.html" title="timeout – Universal Timeouts"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">websocket</span></code> – Websocket Server</a></li>
</ul>
@@ -195,7 +195,7 @@ vector.</p>
<li class="right" >
<a href="timeout.html" title="timeout – Universal Timeouts"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">websocket</span></code> – Websocket Server</a></li>
</ul>
diff --git a/doc/modules/wsgi.html b/doc/modules/wsgi.html
index 5af3ee8..e068d60 100644
--- a/doc/modules/wsgi.html
+++ b/doc/modules/wsgi.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>wsgi – WSGI server &#8212; Eventlet 0.32.0 documentation</title>
+ <title>wsgi – WSGI server &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="websocket.html" title="websocket – Websocket Server"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">wsgi</span></code> – WSGI server</a></li>
</ul>
@@ -285,7 +285,7 @@ in the wsgi test case <code class="docutils literal notranslate"><span class="pr
<li class="right" >
<a href="websocket.html" title="websocket – Websocket Server"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">wsgi</span></code> – WSGI server</a></li>
</ul>
diff --git a/doc/modules/zmq.html b/doc/modules/zmq.html
index 7df2c4f..ba49595 100644
--- a/doc/modules/zmq.html
+++ b/doc/modules/zmq.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>eventlet.green.zmq – ØMQ support &#8212; Eventlet 0.32.0 documentation</title>
+ <title>eventlet.green.zmq – ØMQ support &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="wsgi.html" title="wsgi – WSGI server"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" accesskey="U">Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">eventlet.green.zmq</span></code> – ØMQ support</a></li>
</ul>
@@ -112,7 +112,7 @@
<li class="right" >
<a href="wsgi.html" title="wsgi – WSGI server"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="../index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../modules.html" >Module Reference</a> &#187;</li>
<li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">eventlet.green.zmq</span></code> – ØMQ support</a></li>
</ul>
diff --git a/doc/objects.inv b/doc/objects.inv
index 5536a7d..909e033 100644
--- a/doc/objects.inv
+++ b/doc/objects.inv
Binary files differ
diff --git a/doc/patching.html b/doc/patching.html
index 235a5c8..5b45147 100644
--- a/doc/patching.html
+++ b/doc/patching.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Greening The World &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Greening The World &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="design_patterns.html" title="Design Patterns"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Greening The World</a></li>
</ul>
</div>
@@ -92,7 +92,7 @@ library. This has the disadvantage of appearing quite magical, but the advantag
<span class="n">eventlet</span><span class="o">.</span><span class="n">monkey_patch</span><span class="p">()</span>
</pre></div>
</div>
-<p>The keyword arguments afford some control over which modules are patched, in case that’s important. Most patch the single module of the same name (e.g. time=True means that the time module is patched [time.sleep is patched by eventlet.sleep]). The exceptions to this rule are <em>socket</em>, which also patches the <a class="reference external" href="https://docs.python.org/3/library/ssl.html#module-ssl" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a> module if present; and <em>thread</em>, which patches <code class="xref py py-mod docutils literal notranslate"><span class="pre">thread</span></code>, <a class="reference external" href="https://docs.python.org/3/library/threading.html#module-threading" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">threading</span></code></a>, and <code class="xref py py-mod docutils literal notranslate"><span class="pre">Queue</span></code>.</p>
+<p>The keyword arguments afford some control over which modules are patched, in case that’s important. Most patch the single module of the same name (e.g. time=True means that the time module is patched [time.sleep is patched by eventlet.sleep]). The exceptions to this rule are <em>socket</em>, which also patches the <a class="reference external" href="https://docs.python.org/3/library/ssl.html#module-ssl" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a> module if present; and <em>thread</em>, which patches <code class="xref py py-mod docutils literal notranslate"><span class="pre">thread</span></code>, <a class="reference external" href="https://docs.python.org/3/library/threading.html#module-threading" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">threading</span></code></a>, and <code class="xref py py-mod docutils literal notranslate"><span class="pre">Queue</span></code>.</p>
<p>Here’s an example of using monkey_patch to patch only a few modules:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">eventlet</span>
<span class="n">eventlet</span><span class="o">.</span><span class="n">monkey_patch</span><span class="p">(</span><span class="n">socket</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">select</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
@@ -172,7 +172,7 @@ library. This has the disadvantage of appearing quite magical, but the advantag
<li class="right" >
<a href="design_patterns.html" title="Design Patterns"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Greening The World</a></li>
</ul>
</div>
diff --git a/doc/py-modindex.html b/doc/py-modindex.html
index 37b91f9..2d92e43 100644
--- a/doc/py-modindex.html
+++ b/doc/py-modindex.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Python Module Index &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Python Module Index &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -29,7 +29,7 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
@@ -162,7 +162,7 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Python Module Index</a></li>
</ul>
</div>
diff --git a/doc/search.html b/doc/search.html
index ba6fd29..82507a9 100644
--- a/doc/search.html
+++ b/doc/search.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Search &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Search &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -32,7 +32,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Search</a></li>
</ul>
</div>
@@ -91,7 +91,7 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Search</a></li>
</ul>
</div>
diff --git a/doc/searchindex.js b/doc/searchindex.js
index f357a11..913ba33 100644
--- a/doc/searchindex.js
+++ b/doc/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["authors","basic_usage","changelog","design_patterns","environment","examples","history","hubs","index","modules","modules/backdoor","modules/corolocal","modules/dagpool","modules/db_pool","modules/debug","modules/event","modules/greenpool","modules/greenthread","modules/pools","modules/queue","modules/semaphore","modules/timeout","modules/websocket","modules/wsgi","modules/zmq","patching","ssl","testing","threading","zeromq"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,sphinx:56},filenames:["authors.rst","basic_usage.rst","changelog.rst","design_patterns.rst","environment.rst","examples.rst","history.rst","hubs.rst","index.rst","modules.rst","modules/backdoor.rst","modules/corolocal.rst","modules/dagpool.rst","modules/db_pool.rst","modules/debug.rst","modules/event.rst","modules/greenpool.rst","modules/greenthread.rst","modules/pools.rst","modules/queue.rst","modules/semaphore.rst","modules/timeout.rst","modules/websocket.rst","modules/wsgi.rst","modules/zmq.rst","patching.rst","ssl.rst","testing.rst","threading.rst","zeromq.rst"],objects:{"":{zmq:[24,1,0,"-"]},"eventlet.backdoor":{SocketConsole:[10,0,1,""],backdoor:[10,3,1,""],backdoor_server:[10,3,1,""]},"eventlet.backdoor.SocketConsole":{"switch":[10,2,1,""]},"eventlet.corolocal":{get_ident:[11,3,1,""],local:[11,0,1,""]},"eventlet.dagpool":{Collision:[12,4,1,""],DAGPool:[12,0,1,""],PropagateError:[12,4,1,""]},"eventlet.dagpool.DAGPool":{__getitem__:[12,2,1,""],__init__:[12,2,1,""],get:[12,2,1,""],items:[12,2,1,""],keys:[12,2,1,""],kill:[12,2,1,""],post:[12,2,1,""],running:[12,2,1,""],running_keys:[12,2,1,""],spawn:[12,2,1,""],spawn_many:[12,2,1,""],wait:[12,2,1,""],wait_each:[12,2,1,""],wait_each_exception:[12,2,1,""],wait_each_success:[12,2,1,""],waitall:[12,2,1,""],waiting:[12,2,1,""],waiting_for:[12,2,1,""]},"eventlet.db_pool":{BaseConnectionPool:[13,0,1,""],ConnectTimeout:[13,4,1,""],ConnectionPool:[13,5,1,""],DatabaseConnector:[13,0,1,""],GenericConnectionWrapper:[13,0,1,""],PooledConnectionWrapper:[13,0,1,""],RawConnectionPool:[13,0,1,""],TpooledConnectionPool:[13,0,1,""],cleanup_rollback:[13,3,1,""]},"eventlet.db_pool.BaseConnectionPool":{clear:[13,2,1,""],get:[13,2,1,""],item:[13,2,1,""],put:[13,2,1,""]},"eventlet.db_pool.DatabaseConnector":{credentials_for:[13,2,1,""],get:[13,2,1,""]},"eventlet.db_pool.GenericConnectionWrapper":{affected_rows:[13,2,1,""],autocommit:[13,2,1,""],begin:[13,2,1,""],change_user:[13,2,1,""],character_set_name:[13,2,1,""],close:[13,2,1,""],commit:[13,2,1,""],cursor:[13,2,1,""],dump_debug_info:[13,2,1,""],errno:[13,2,1,""],error:[13,2,1,""],errorhandler:[13,2,1,""],insert_id:[13,2,1,""],literal:[13,2,1,""],ping:[13,2,1,""],query:[13,2,1,""],rollback:[13,2,1,""],select_db:[13,2,1,""],server_capabilities:[13,2,1,""],set_character_set:[13,2,1,""],set_isolation_level:[13,2,1,""],set_server_option:[13,2,1,""],set_sql_mode:[13,2,1,""],show_warnings:[13,2,1,""],shutdown:[13,2,1,""],sqlstate:[13,2,1,""],stat:[13,2,1,""],store_result:[13,2,1,""],string_literal:[13,2,1,""],thread_id:[13,2,1,""],use_result:[13,2,1,""],warning_count:[13,2,1,""]},"eventlet.db_pool.PooledConnectionWrapper":{close:[13,2,1,""]},"eventlet.db_pool.RawConnectionPool":{connect:[13,2,1,""],create:[13,2,1,""]},"eventlet.db_pool.TpooledConnectionPool":{connect:[13,2,1,""],create:[13,2,1,""]},"eventlet.debug":{format_hub_listeners:[14,3,1,""],format_hub_timers:[14,3,1,""],hub_blocking_detection:[14,3,1,""],hub_exceptions:[14,3,1,""],hub_listener_stacks:[14,3,1,""],hub_prevent_multiple_readers:[14,3,1,""],hub_timer_stacks:[14,3,1,""],spew:[14,3,1,""],tpool_exceptions:[14,3,1,""],unspew:[14,3,1,""]},"eventlet.event":{Event:[15,0,1,""]},"eventlet.event.Event":{ready:[15,2,1,""],send:[15,2,1,""],send_exception:[15,2,1,""],wait:[15,2,1,""]},"eventlet.greenpool":{GreenPile:[16,0,1,""],GreenPool:[16,0,1,""]},"eventlet.greenpool.GreenPile":{next:[16,2,1,""],spawn:[16,2,1,""]},"eventlet.greenpool.GreenPool":{free:[16,2,1,""],imap:[16,2,1,""],resize:[16,2,1,""],running:[16,2,1,""],spawn:[16,2,1,""],spawn_n:[16,2,1,""],starmap:[16,2,1,""],waitall:[16,2,1,""],waiting:[16,2,1,""]},"eventlet.greenthread":{GreenThread:[17,0,1,""],getcurrent:[17,3,1,""],kill:[17,3,1,""],sleep:[17,3,1,""],spawn:[17,3,1,""],spawn_after:[17,3,1,""],spawn_after_local:[17,3,1,""],spawn_n:[17,3,1,""]},"eventlet.greenthread.GreenThread":{cancel:[17,2,1,""],kill:[17,2,1,""],link:[17,2,1,""],unlink:[17,2,1,""],wait:[17,2,1,""]},"eventlet.hubs":{get_default_hub:[7,3,1,""],get_hub:[7,3,1,""],trampoline:[7,3,1,""],use_hub:[7,3,1,""]},"eventlet.patcher":{import_patched:[25,3,1,""],is_monkey_patched:[25,3,1,""],monkey_patch:[25,3,1,""]},"eventlet.pools":{Pool:[18,0,1,""],TokenPool:[18,0,1,""]},"eventlet.pools.Pool":{create:[18,2,1,""],free:[18,2,1,""],get:[18,2,1,""],item:[18,2,1,""],put:[18,2,1,""],resize:[18,2,1,""],waiting:[18,2,1,""]},"eventlet.pools.TokenPool":{create:[18,2,1,""]},"eventlet.queue":{Empty:[19,4,1,""],Full:[19,4,1,""],LifoQueue:[19,0,1,""],LightQueue:[19,0,1,""],PriorityQueue:[19,0,1,""],Queue:[19,0,1,""]},"eventlet.queue.LightQueue":{empty:[19,2,1,""],full:[19,2,1,""],get:[19,2,1,""],get_nowait:[19,2,1,""],getting:[19,2,1,""],put:[19,2,1,""],put_nowait:[19,2,1,""],putting:[19,2,1,""],qsize:[19,2,1,""],resize:[19,2,1,""]},"eventlet.queue.Queue":{join:[19,2,1,""],task_done:[19,2,1,""]},"eventlet.semaphore":{BoundedSemaphore:[20,0,1,""],CappedSemaphore:[20,0,1,""],Semaphore:[20,0,1,""]},"eventlet.semaphore.BoundedSemaphore":{release:[20,2,1,""]},"eventlet.semaphore.CappedSemaphore":{acquire:[20,2,1,""],balance:[20,6,1,""],bounded:[20,2,1,""],locked:[20,2,1,""],release:[20,2,1,""]},"eventlet.semaphore.Semaphore":{acquire:[20,2,1,""],balance:[20,6,1,""],bounded:[20,2,1,""],locked:[20,2,1,""],release:[20,2,1,""]},"eventlet.timeout":{Timeout:[21,0,1,""],with_timeout:[21,3,1,""]},"eventlet.timeout.eventlet.timeout.Timeout.Timeout":{cancel:[21,2,1,""],pending:[21,5,1,""]},"eventlet.tpool":{Proxy:[28,0,1,""],execute:[28,3,1,""]},"eventlet.websocket":{WebSocket:[22,0,1,""],WebSocketWSGI:[22,0,1,""]},"eventlet.websocket.WebSocket":{close:[22,2,1,""],send:[22,2,1,""],wait:[22,2,1,""]},"eventlet.wsgi":{format_date_time:[23,3,1,""],server:[23,3,1,""]},eventlet:{GreenPile:[1,0,1,""],GreenPool:[1,0,1,""],Queue:[1,0,1,""],StopServe:[1,0,1,""],Timeout:[1,0,1,""],backdoor:[10,1,0,"-"],connect:[1,3,1,""],corolocal:[11,1,0,"-"],dagpool:[12,1,0,"-"],db_pool:[13,1,0,"-"],debug:[14,1,0,"-"],event:[15,1,0,"-"],greenpool:[16,1,0,"-"],greenthread:[17,1,0,"-"],import_patched:[1,3,1,""],listen:[1,3,1,""],monkey_patch:[1,3,1,""],pools:[18,1,0,"-"],queue:[19,1,0,"-"],serve:[1,3,1,""],sleep:[1,3,1,""],spawn:[1,3,1,""],spawn_after:[1,3,1,""],spawn_n:[1,3,1,""],tpool:[28,1,0,"-"],websocket:[22,1,0,"-"],wrap_ssl:[1,3,1,""],wsgi:[23,1,0,"-"]}},objnames:{"0":["py","class","Python class"],"1":["py","module","Python module"],"2":["py","method","Python method"],"3":["py","function","Python function"],"4":["py","exception","Python exception"],"5":["py","attribute","Python attribute"],"6":["py","property","Python property"]},objtypes:{"0":"py:class","1":"py:module","2":"py:method","3":"py:function","4":"py:exception","5":"py:attribute","6":"py:property"},terms:{"0":[0,1,3,5,12,13,15,17,18,19,20,21,22,23,26,27],"001":27,"01":2,"02":2,"0mq":29,"1":[1,3,5,12,14,15,20,21,23,24,26,27],"10":13,"100":[0,2,9,26],"1000":[1,3,16],"10000":[3,5],"10038":2,"1024":[5,23,26],"104":2,"11":5,"115":2,"120":15,"123":2,"127":[1,5,26,27],"13":22,"136":[0,2],"139":2,"158":2,"16":27,"162":0,"183":0,"194":0,"1950":29,"2":[0,8,9,15,18,20,21,23,24,26],"20":[27,28],"200":[3,5,23],"2006":6,"2008":2,"2009":5,"2010":2,"22":[0,5],"22e9de1d7957":2,"295":2,"3":[0,3,8,15,23,24],"30":[13,21],"3000":10,"3001":5,"32":[5,22],"32384":5,"327":2,"334":2,"365":26,"37":2,"4":[3,8,12,13,15,18,23],"400":2,"403":5,"404":5,"414":23,"427":2,"5":[5,8,13,18,21],"50":[1,5,26],"500":23,"508":2,"53":0,"541":2,"547":2,"583":2,"598":2,"5c0322dc559bf":2,"6":23,"6000":[3,5],"601":2,"619":2,"62":2,"645":2,"651":2,"654":2,"66":0,"660":2,"677":2,"683":2,"69":0,"6f":23,"7":[8,26],"70":0,"7000":5,"705":2,"71":0,"718":2,"722":2,"7231":23,"73":[0,2],"74":[0,2],"76":[2,22],"7692":2,"77":[0,2],"78":0,"8":[0,22,25],"80":[2,5],"8090":[5,22,23],"8192":23,"83":[0,2],"8388608":22,"8443":26,"86":0,"89":0,"8mib":[2,22],"9":[0,22],"90":18,"9010":5,"91":2,"94":0,"94p2":2,"95":0,"9999":1,"9p9m":2,"\u00f8mq":[8,9],"abstract":[15,16,29],"boolean":23,"break":[2,3,5,27],"byte":[2,5,23,29],"case":[0,2,3,5,7,12,13,18,19,20,21,23,25,26,27,28,29],"catch":[2,12,21],"class":[1,2,7,8,9,10,11,12,13,15,16,17,18,21,22,23,25,28],"default":[2,7,12,13,17,19,20,21,22,23,27,28],"do":[1,2,3,5,7,12,14,15,16,17,20,22,25,27,28],"export":23,"final":[2,5,12,13,21],"float":[14,15,17,21],"function":[2,3,5,8,10,12,13,14,16,17,18,21,22,23,25,27,28],"hron\u010dok":2,"import":[0,1,2,3,5,6,7,8,10,12,13,15,18,22,23,26,27,28],"int":21,"kobli\u017eek":0,"long":[2,10,13,14,16,21,23],"new":[1,2,3,5,10,12,13,15,16,18,19,20,26,28],"nov\u00fd":0,"ond\u0159ej":0,"pi\u00ebt":0,"public":2,"return":[1,2,3,5,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,28],"short":[5,14],"static":3,"switch":[2,7,10,17,28],"throw":15,"transient":2,"true":[1,2,3,5,7,12,14,15,17,19,20,21,23,25,28],"try":[2,5,12,13,14,15,21,25],"villac\u00ed":[0,2],"while":[2,3,5,12,15,23,28,29],A:[2,5,7,12,13,16,18,19,20,22,23,25,28,29],As:[12,21,22,23,26],At:[12,23],But:[2,12,14],By:[12,17,22,28],For:[1,5,12,15,17,19,23,26,27],If:[1,3,7,8,10,12,13,15,16,17,18,19,20,21,22,23,25,26,27],In:[1,2,7,10,12,13,16,18,19,20,21,26,29],It:[1,2,3,5,7,10,12,13,14,15,16,17,18,19,20,22,25,27,28],Its:12,NOT:17,Not:[2,5,12,27],Of:12,On:7,One:[3,12,23,25,27],Or:12,That:[3,12,27],The:[0,1,2,3,4,5,7,8,10,12,13,14,15,16,17,18,19,20,22,23,27,28],Then:12,There:[2,3,16,18,20,21,27],These:[1,4,12,27],To:[1,5,7,8,12,14,16,17,22,23,27],With:[2,8,12,28,29],_:[2,15],__:12,__all__:10,__class__:12,__del__:2,__doc__:10,__enter__:2,__exit__:2,__file__:5,__future__:5,__getitem:12,__getitem__:12,__init__:[2,12],__main__:[5,7],__name__:[5,10,12],__set__:2,__str__:2,__version__:2,_at_fork_reinit:2,_exc:15,_exit_func:2,_imp:2,_main_wrapp:2,_queuelock:2,_recv_loop:2,_socket_nodn:0,aayush:0,abil:[2,25,27],abl:[1,6,17,21,23],abort:[1,2,17,21],about:[2,3,5,6,10,12,14,15,23,25,27],abov:[10,12,23],abramowitz:0,absenc:0,accept:[0,1,2,3,4,5,10,12,13,18,23,26,29],access:[1,2,10,27,28],accident:[1,3],accompani:23,account:[2,20],accumul:[0,2],accur:23,achiev:[14,28],acquir:[0,2,20],across:[2,19],act:[5,18],action:25,activ:[10,23],actor:2,actual:[5,12,18,23],acycl:12,ad:[0,2,6,19],adamkg:0,add:[1,2,5],addit:[13,14,17,21,23],addition:2,additional_modul:[1,25],addl:29,addr:[1,5,26],address:[1,2,3,5,12,23],addressfamili:1,adjust:18,adopt:2,advanc:4,advantag:[1,25,26],advic:0,advis:16,advisori:2,af_inet:[1,26],affect:18,affected_row:13,affin:2,afford:[1,25],after:[1,2,6,12,13,14,17,20,21,23,27],ag:[0,2],again:[2,7,12,13,15,20],against:[2,14,25],aggreg:3,agnost:13,agusto:2,aha:12,aka:12,alaniz:0,alanp:2,aldona:0,alex:[0,2],alexei:[0,2],alexi:[0,2],alia:[12,13],alik:13,all:[1,2,3,5,6,12,13,15,16,17,19,22,23,26,27],allow:[0,1,2,12,13,16,22,23,29],along:2,alreadi:[2,3,5,12,13,15,16,17,18,22,23,28],already_handl:2,also:[1,2,3,6,7,12,16,22,23,25,28],alter:2,altern:[2,12],although:[2,12],alvarez:2,alwai:[2,12,19,21,23],amajorek:2,ambroff:[0,2],amen:28,amount:[1,3,13,16],an:[0,1,2,3,4,5,6,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29],andrei:[0,2],andrew:0,ani:[1,3,4,5,6,7,12,13,14,16,17,18,21,23,25,27,28],annot:27,announc:25,annoy:1,anonym:0,anoth:[1,2,7,12,15,17,20,26],answer:[2,12],anthoni:0,antonio:[0,2],anymor:2,anyth:[1,12],anywai:2,api:[2,7,8,13,19,20,23],app:[2,3,5],appar:25,appear:[2,25],append:23,appli:[2,3],applic:[1,2,3,5,7,10,12,14,21,22,23,25],appreci:0,approach:25,appropri:[2,12,27],ar:[0,1,2,3,4,5,7,8,10,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28,29],arbitrari:[12,15],arg1:23,arg2:23,arg:[1,2,10,11,12,13,15,16,17,19,21,23,28],argument:[0,1,2,3,7,9,10,12,14,15,16,17,18,20,21,22,23,25],armstrong:2,around:[1,2],arrai:23,arrang:[5,15,17],arriv:12,artur:[0,2],ashutosh:[0,2],ask:[2,12],aspect:[3,25],assertionerror:15,assign:2,associ:[2,12,16],astrum:[0,2],asynchat:2,asynchron:[2,13,29],asyncor:25,atle:0,atom:29,attack:22,attempt:[12,20],attent:0,attribut:[2,12,28],attributeerror:2,authent:13,author:[2,8,29],auto:2,autocommit:13,automat:[2,7,25],autowrap:28,autowrap_nam:28,avail:[1,2,7,8,12,13,16,17,18,19,22],averi:2,avoid:[2,12,15,25],awai:[6,17,27],awaken:20,awar:[1,2,12,21,24],awesom:27,ayncor:2,azhar:[0,2],b:[5,12,15,25,26],bachri:[0,2],back:[2,5,7,13,18,22,23],backbon:6,backdoor:[2,8,9],backdoor_serv:10,backend:7,backlog:[1,2],backtrac:2,backward:2,bad:[2,3,12],badli:29,balanc:20,ballanc:0,ban:3,bando:0,bandwidth:23,bar:23,bare:3,barton:[0,2],base:[2,5,6,7,13,23,25,27],baseconn:13,baseconnectionpool:[2,13],baseexcept:[21,23],basehttpserv:25,basi:[0,2,7,13,15,23],basic:[3,8],baz:15,bean:6,becam:6,becaus:[1,2,3,4,7,12,19,20,22,25,27],becciu:2,becom:[3,12,13,16,20,23],been:[0,2,7,10,12,13,19,21,22,23],befor:[2,4,7,10,12,13,18,20,21,23,25,28],began:6,begin:[4,7,13],behav:[1,2,10,12,19,20,23,25,28],behavior:[1,2,3,4,12,14,16,17,20,22,25],behaviour:2,being:[1,2,5,7,14,17,29],beislei:0,below:16,ben:[0,2],benchmark:2,bend:2,benefit:[13,25],bennett:[0,2],benoit:[0,2],best:[7,18,25,27],beta:[3,5,8],better:[0,2,14],between:[0,1,2,3,10,12,15,27,28],beyond:7,bidirect:5,big:27,bilenko:0,bin:[2,5],bind:[1,2,12,24,25,26,27,29],bit:13,bitbucket:[0,2],blank:2,block:[1,2,3,6,10,12,13,14,16,18,19,20,21,26,28],block_on:2,blockingli:20,board:2,bob:[0,6],bodi:[2,3,5,8,10,23,26],body_length:23,boil:3,bombard:29,book:[2,29],bool:13,borzenkov:[0,2],both:[2,12,13,19,25,27],bound:[3,20,23,29],boundedsemaphor:[2,20],branch:[2,25],brandon:2,brantlei:0,brett:2,brian:[0,2],broadcast:5,broken:[2,5,22],brought:2,brows:2,browser:[5,22],brunswick:[0,2],brutal:5,bruynoogh:[0,2],bryan:0,buffer:[0,2],buflen:2,bufsiz:2,bug:[2,8,20],bugfix:2,build:[2,10,12,18],build_product_for_kei:12,builder:12,built:[1,2,7,25,26],builtin:[2,25],bulg:29,bunch:[1,2,3,5,8,13,15,16,25,27],bundl:2,burk:[0,2],busi:[0,2],busywait:2,c:[3,5,12,24,28],ca_cert:1,cach:0,cadefault:0,cafil:0,calcul:17,call:[1,2,3,4,5,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28],call_aft:2,callabl:[2,12,21],callback:[2,5],calledprocesserror:2,caller:[2,10,12,13,17,18,21],can:[0,1,2,3,4,5,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28],cancel:[1,2,17,21],cannot:[18,21,23],canon:[3,17],capabl:5,capac:[16,20],capath:0,capit:2,capitalize_response_head:[2,23],cappedsemaphor:20,care:3,carlisl:0,carter:0,categor:12,caus:[2,3,7,12,13,15,17,18,23],cavanaugh:[0,2],caveat:[13,21],cb:5,ccp:2,ceas:6,cert:[23,26],cert_req:1,certain:[1,2,12,25],certfil:23,certif:[2,26],cesar:[0,2],cflag:12,cgi:2,cgihttpserv:2,chain:12,challeng:25,chanc:[0,1,14],chang:[2,3,7,10,12,14,16,22,25,27],changbo:0,change_us:13,channel:[2,19],character_set_nam:13,characterist:23,chase:12,chat:[0,2,8],chat_serv:5,chatserv:5,cheap:1,check:[1,2,12,13,18,20,21],check_hostnam:2,chesneau:0,chet:0,child:2,children:0,chri:[0,2],christofi:[0,2],christoph:[0,2],chrome:2,chronolog:12,chu:0,chuck:0,chunk:[0,1,2,23],chunked_encod:2,chunkreaderror:2,chwagssd:2,cipher:2,circular:2,clad:29,clai:[0,2],classmethod:13,clean:2,cleaner:2,cleanup:[2,13],cleanup_rollback:13,clear:[2,13,14],cleaton:[0,2],clever:1,client:[0,1,2,5,8,10,14,22,23,26,27,29],client_addr:1,client_conn:26,client_ip:23,client_sock:[1,27],clock:2,clone:2,close:[0,1,2,5,13,22,23,26],closed_callback:5,closer:2,closur:22,code:[0,1,2,3,5,7,8,12,14,21,22,23,27,28],coexist:22,collect:[3,5,13,23,28],collin:[0,2],collis:12,com:[2,3,5,6,8,13,21,24,26],come:[2,3,12,23,25,28],comic:29,command:[5,10,26,27],comment:2,commit:13,common:[1,2,3,7,12,25,28],commun:[1,2,3,15,23,28],comparison:[2,29],compat:[0,2,13,20,28],compil:[5,12],complet:[1,2,3,7,12,16,17,19,23,25,27,28],complex:3,complianc:2,complic:12,concaten:3,concept:[1,6],concurr:[1,3,5,8,12,13,16,18,28],condit:2,configur:[2,7,12,26,28],confin:28,conform:0,conjunct:[14,28],conn:13,conn_info:10,conn_pool:13,connect:[1,2,3,8,9,10,22,23,26,27,28,29],connect_ex:2,connect_tcp:2,connect_timeout:13,connectionpool:13,connecttimeout:13,conserv:1,consid:[7,12,14,25],consist:[1,2,20,27],consol:[10,27],constant:[2,16],constern:12,constrain:12,construct:[1,3,4,12,13,16,17,18],constructor:[2,9],consult:2,consum:[1,2,3,8,12,16,18,19],contact:2,contain:[2,3,5,12,13,14,17,18,23,25,27,28],content:[2,3,5,9,23],context:[1,2,17,18,20,26],contin:2,continu:[0,2,9,10,12],contrast:12,contribut:[0,12],contributor:8,contriv:3,control:[2,3,4,5,7,8,17,25],conveni:[0,2,3,8,10,16,21,22,25,27],convent:[27,29],convert:[1,2,22],cooper:[1,3,10,13,17,18,21,25,28],coordin:5,copi:[2,5,27],copyright:[2,10],core:2,corei:[0,2],coro:2,coroloc:[2,8,9],corotwin:2,coroutin:[1,2,5,6,7,8,9,15,17,18,28],coroutinepool:2,correct:[0,2,12,25,27],correctli:[0,2],correspond:[12,13,18],corrupt:1,cosmic:29,cost:28,costa:[0,2],could:[2,3,5,6,12],count:[2,19,20],counter:20,counterpart:26,coupl:12,cours:[5,12,25],courtesi:2,cover:27,coverag:[2,8],cp:13,cpu:[2,21],cpython:[2,8],crash:[2,5],crawl:5,crawler:[3,8],creat:[3,13,15,16,17,18,19,22,23,26],create_connect:2,creation:[1,13],credenti:13,credentials_for:13,credit:10,critic:14,cross:[8,9,28],crt:23,ctrl:5,cuni:[0,2],current:[0,1,2,7,8,10,11,12,13,14,15,16,17,19,20,21,25,27,28],current_s:2,current_thread:2,curri:17,curried_arg:17,curried_kwarg:17,cursor:[13,28],custom:[1,2,23],custom_pool:23,customiz:2,cycl:[15,18],cython:24,d:[0,2,3,5,12,27],dag:12,dagpool:[2,8,9],dagu:[0,2],dai:[6,26],daisuk:[0,2],dan:2,danc:2,daniel:[0,2,25],daringfirebal:5,darwin:2,data:[0,1,2,3,5,12,14,19,21,23],databas:[8,9,28],databaseconnector:9,datagram:29,date_tim:23,davanum:[0,2],dave:0,david:[0,2],davoian:0,db:[2,13],db_modul:13,db_pool:[2,8,9],dbapi:[8,9],dbfbfc818e3d:2,dbname:13,dc:13,dead:10,deadlock:[2,12,16],deal:2,death:2,debug:[0,2,8,9,10,11,17,23],decid:[13,25],decis:23,decod:5,decor:[2,22],decoupl:12,decrement:20,def:[1,3,5,8,12,15,16,17,18,22,23,28],defaultselector:2,defer:2,defin:[18,23,25],deflat:[0,2],del:2,delai:[1,17],delet:2,deliv:[12,19],deliveri:[2,12,29],delport:0,demand:13,demo:5,demonstr:5,deni:0,denomin:7,dep:12,depend:[0,1,2,5,6,7,8,9,13,25,26,29],deprec:[2,7,8,23],deprecationwarn:2,depth:2,deriv:25,derk:[0,2],desc:10,descriptor:[2,7,14,23],deseri:22,design:[1,8,27],desir:[1,6,7,12,17,18,28],despit:2,dest:5,destin:13,destroi:5,detail:[1,2,14,22],detect:[0,2,14,23,27],detector:[2,14],determin:[12,13,14],deva:0,develop:[2,6,22],devpol:2,devpollselector:2,diagnos:12,diagnosi:0,dict:[10,12],dictionari:[2,10,13,23],did:[2,12],didn:3,differ:[0,1,3,5,12,15,16,19,20,22,28,29],difficult:12,dir:10,direct:[12,20],directli:[1,12,13,15,17,21,27],directori:[5,6,26,27],dirnam:5,disabl:[2,7,17,23],disadvantag:25,discard:[2,12],disconnect:[2,5,23],discov:12,discret:29,disguis:29,dispatch:[5,7,8,27],distinct:12,distinguish:[2,12],distract:2,distribut:27,dmitri:[0,2],dmitrii:[0,2],dn:2,dnspython:[0,2],do_handshake_connect:2,do_handshake_on_connect:1,do_some_stuff:20,do_someth:16,doc:[2,20,26],docstr:2,doctest:8,document:[0,1,2,7,15,22],doe:[2,5,7,10,12,14,18,20,27],doesn:[2,3,5,7,12,13,20,21,25,27],don:[1,2,3,5,12,14,23,25,27],donagh:2,done:[0,1,2,3,5,13,18,20,25],donovan:[0,2,6],dostuff:18,doubl:[0,2],down:[0,2,3,19],download:27,downstream:12,dprog:12,draft:2,dramat:3,driven:[2,8,9,23],drop:[2,16,19],drug:29,du:0,due:[2,20],dump:27,dump_debug_info:13,dup:[0,2,23],duplex:2,duplic:2,dure:[2,6,13,25,27],dweimer:2,e:[1,2,5,8,12,13,16,17,25],each:[1,2,3,7,10,12,16,19,23,27,28],eai_nodata:2,earli:[2,16,23,25],easi:[2,3,7,23,26,27],easier:[2,5,12,27],easili:[3,13],easy_instal:2,echo:[3,8],echoserv:[2,5],ed:[2,10],edward:[0,2],eexist:2,effect:[5,12,13,29],effici:2,effort:14,either:[7,12,13,17,18,21,25,26,29],elabor:[22,23],elaps:[1,7,17],element:[3,25],elif:5,elig:17,elimin:[2,7],els:[2,5,12,17,19,21],emb:2,embed:23,emit:27,empti:[2,5,12,18,19,21,22,23],en_al:[3,5,8],enabl:[2,7],enchant:[0,2],encod:[0,2,22],encount:12,encrypt:23,end:5,endless:2,endpoint:29,engin:25,enotconn:2,enough:[16,27],enqueu:19,ensur:[1,2,7,12],enter:12,enthusiast:2,entir:[15,25,27],entri:[2,13,19,20],enum34:2,enumer:12,env:[2,5,23],environ:[0,2,3,5,7,8,22,23,27,28],environment:27,eof:5,epol:[2,7,27],epollselector:2,equal:[0,20],equival:[4,21,25],era:29,erdfelt:[0,2],erenst:[0,2],eric:[0,2],erpc:2,err:12,errno:[13,22],error:[0,2,5,13,15,22,23],errorhandl:13,especi:[2,14],essenc:[1,12],essenti:3,etc:2,eugen:0,evalu:27,even:[2,12,17,23],evenlet:23,event:[0,2,7,8,9,14,23,29],eventlet:[0,1,2,3,4,5,6,9,10,11,12,13,15,16,17,18,19,20,21,22,23,25,28,29],eventlet_hub:[2,4,7,27],eventlet_no_greendn:2,eventlet_threadpool_s:[4,28],eventlet_tpool_dn:2,eventlet_tpool_gethostbynam:2,eventu:12,everi:[1,2,5,7,12,13,14,19,20,23,25,28],everyth:[1,2,12,25,27],everywher:7,evid:3,evt:[2,15],exact:[0,2,29],exactli:[2,12,20,25,26],exampl:[0,1,2,3,8,13,15,17,21,22,23,25,26,27,28],exc:[2,12,15],exc_aft:2,exc_info:[2,15,17],exce:[13,18,20],exceed:[2,23],except:[0,1,2,3,5,13,14,15,16,17,19,21,23,25,29],exceptionsubclass:12,excess:[1,2,22],exec:2,execut:[1,2,3,10,13,14,16,17,21,23,27,28],execv:2,exercis:[5,27],exist:[1,2,7,12,13,16,18,27],exit:[2,5,16,17,23],expect:[2,23],expens:17,expir:2,expiri:2,explain:2,explicit:[2,12,13],explicitli:[1,2,7,12,17,25],express:[17,18],extens:[0,2,9],extern:[2,3,6,12],extrem:16,face:1,fact:[3,12],factor:27,fai:2,fail:[2,4,12,21,27],failur:[2,12],fall:3,fals:[1,2,5,12,14,17,18,19,20,21,23],famili:1,farm:[5,16],fashion:[2,26],fast:2,faster:[1,17,19],fastest:[7,17],favo:[0,2],favor:2,fcntl:2,fd:[0,2,5,7],featur:[1,2,5,21,23],feed:[3,8],feedpars:[3,5],feedscrap:[3,5],feng:0,fetch:[3,5,8,19,26],fetch_titl:[3,5],fetish:29,few:[2,3,4,6,22,25],fewer:[1,2],field:[2,23],figur:[0,14],file:[2,3,5,7,14,15,16,22,23,25,27],filenam:[16,27],filter:12,find:[1,8,12,22,23],findit:5,fine:[7,25],finer:27,finish:[12,16,17,23],finit:[1,17],fire:2,first:[1,2,4,7,12,13,17,18,19,21,25,26],five:12,fix:[0,2,12],flag:[0,2,12,21],flori:[0,2],flow:12,flush:[2,5],follow:[2,12,17,22,23,26,27],foo:[2,23,27],foo_class_test:27,foo_test:27,forbidden:5,forc:[4,28],forcibl:22,ford:[0,2],forestal:2,forev:[12,23],forgot:12,forgotten:7,fork:[2,6],form:[7,19],format:[12,14,15,23,27],format_date_tim:23,format_hub_listen:14,format_hub_tim:14,formerli:19,forth:[12,22],fortun:[25,28],forward:[2,6,8,23,28],found:[5,19],fraction:[15,17],frame:[2,17,22],framework:[5,6,7],free:[1,13,16,18,19],freebsd:2,friendli:1,from:[0,1,2,3,5,7,8,10,12,13,14,15,16,17,18,19,22,23,25,26,27,28,29],from_brows:22,ftplib:2,fukuchi:[0,2],full:[2,3,19,22,23,27],fuller:2,fulli:[2,5,23],func:[1,16,17,21,23],functool:18,fund:2,fundament:1,further:29,furthermor:2,futur:[2,8],g:[0,1,2,12,13,16,17,25],gao:2,garbag:13,garcia:2,garth:2,gasp:3,gaynor:2,gcb:0,gener:[1,2,8,9,12,13,15,17,22,23,27,29],genericconnectionwrapp:13,genrsa:26,geoff:[0,2],geoffrei:[0,2],georg:[0,2],gerrard:[0,2],get:[0,1,2,3,5,6,7,12,13,14,16,17,18,19,20,21,27,29],get_default_hub:[2,7],get_hub:[2,7],get_id:[11,28],get_nowait:19,getaddrinfo:2,getattr:2,getcurr:17,gethostbynam:[2,5],getsocknam:27,getsockopt:[0,2],geturl:5,gevent:2,gevorg:0,gh:[0,2],gholt:2,ghsa:2,gif:[3,5,8],gigabyt:3,github:[2,24],give:[0,2,13,18],given:[3,7,10,12,13,14,16,17,19,20,22],global:[1,2,3],go:[5,14,23],goal:1,godwin:0,goe:19,goetz:[0,2],gogreen:0,gohad:[0,2],gone:2,good:[0,1,3,5,7,15,17,23,25],goodspe:[0,2],googl:[2,3,5,8,21,26],got:[3,5,8,12,13,18],gotten:[12,19],govern:14,grace:[2,5,22],gracefulli:1,grainger:[0,2],grammat:2,grant:[0,2],granular:27,graph:12,great:[0,5],greater:[14,18,20],greatli:0,green:[0,1,2,3,5,8,9,23,26,28,29],green_fileobject:2,greendn:2,greenfil:2,greenfileio:2,greenio:2,greenlet:[2,6,7,10,11,14,17,19,23,28],greenletcontext:2,greenletexit:[17,23],greenlib:2,greenpil:[1,2,3,5,16],greenpip:2,greenpool:[1,2,3,5,8,9,12,23],greensocket:[0,2],greenssl:2,greensslobject:2,greenthread:[0,2,5,7,8,9,10,13,14,16,18,19,20,21,24,28],gregori:[0,2],grinberg:[0,2],group:5,grow:3,grugq:[0,2],gt:17,guarante:12,guard:20,gubarev:[0,2],guemar:[0,2],gunicorn:2,guo:0,gysin:0,h1:23,ha:[0,1,2,3,5,6,7,10,12,13,15,16,17,18,20,21,22,23,25,26],had:[2,3,6,7,19],haferkamp:[0,2],haikel:[0,2],hand:[3,5,12,29],handi:3,handl:[0,1,2,3,5,10,12,22,23,26,27],handler:[2,5,22],hang:[2,23],hansen:[0,2],happen:[3,4,7,12,20,25],happili:2,hard:[12,14,18],hardcod:27,harder:27,hardi:0,harkot:[0,2],harri:0,hasn:17,hassl:8,have:[1,2,3,5,7,12,13,17,19,23,25,26,27,28],he:6,header:[0,2,9,22],headers_raw:2,hello:[5,22,23,26],hello_world:[5,22,23],help:[0,2,10,12,23],henc:12,here:[1,2,3,5,10,20,21,22,25,26,27],hi:6,high:[13,18],higher:2,hint:[0,23],histor:13,histori:8,hit:1,hk:23,hmm:12,hoerner:2,hog:2,hohberg:2,hold:[1,2,13,15,18],holger:0,holt:[0,2],hood:25,hook:[9,14],host:[1,2,6,13],hostnam:13,hostport:10,how:[1,2,3,5,8,10,12,13,14,15,20,23,27],howev:[6,12],hrachyshka:[0,2],html:[2,5,23,27],html_path:5,http:[2,3,5,6,8,18,21,23,24,26],http_pool:18,httpc:2,httpd:2,httpdate:2,httplib2:[2,18,25],httplib:2,httpprotocol:23,httpserver:2,hua:[0,2],hub:[0,2,4,8,14,28],hub_blocking_detect:14,hub_except:[14,17],hub_listener_stack:14,hub_prevent_multiple_read:14,hub_timer_stack:14,hudson:2,huge:27,hundr:23,hung:12,hussain:[0,2],hybrid:7,i1:[3,5,8],i:[1,2,3,5,6,7,8,16,17,25],ibarra:2,id:11,idea:[7,17],ideal:7,ident:[2,5],identifi:12,idiom:[1,3],idl:[2,13],ietf:23,ignor:[1,2,5,19,20,23],ihar:[0,2],illumin:1,imag:[3,5,8],imagin:[3,20],imap:[3,5,8,12,16],img:3,immedi:[1,12,15,17,19,20],imp:2,imped:27,implement:[0,1,2,5,6,7,8,9,12,14,15,18,19,20],implic:12,implicit:12,implicitli:12,import_patch:[1,3,5,25],importerror:2,imposs:2,improp:2,improperli:2,improv:[0,2,23],includ:[2,3,6,10,12,13,23,25,27],inclus:27,incom:[1,22,29],incompat:[0,2],incorpor:2,incorrect:[0,2],incorrectli:2,increas:[2,19],incred:[0,5,14],increment:[3,20],indetermin:[12,18],index:[2,8],indic:[5,12,18,19,23],indra:6,infinit:[2,19],info:[10,23],inform:[1,10,12,25],inherit:[23,25],init:2,initi:[2,12,19,20],inject:[2,29],input:[1,2,3,5,12,16,23],insecur:26,insensit:2,insert_id:[2,13],insid:23,inspect:[1,7,10,14],inspir:2,instal:[2,5,7,14,27],instanc:[1,7,12,13,17,18,21,22,23],instead:[1,2,3,4,7,12,13,14,16,20,25,27],instruct:2,integ:[2,16,17,20],integr:[0,2],intend:[13,21],intention:12,interact:[8,9,12,22],interchang:1,interest:[3,5,19],interfac:[1,2,25,26,28,29],interfer:17,interlock:20,intern:[2,7,10,13,20],internet:[2,5],interpret:[8,9],interrupt:[12,14],intl:[3,5,8],introduc:[0,2],invalid:[0,2],investig:2,invis:3,invit:2,invoc:28,invok:20,involv:[3,12,23,27],io:2,ioerror:2,ip:[3,5,23],ippolito:[0,6],ipv6:2,is_monkey_patch:25,is_timeout:2,ishaya:2,isinst:[12,28],isn:[2,3,27],isol:2,isotop:29,issu:[0,2,6,23],issuer:26,item:[12,13,15,16,18,19],iter:[0,1,2,3,5,12,16],itertool:16,its:[1,2,3,4,5,10,12,13,14,16,17,18,19,20,27,28],itself:[1,2,3,5,7,12,13,14,17,21,25,27,29],jacofouri:2,jago:0,jake:[0,2],jakub:[0,2],jame:0,jan:[0,2],janusz:[0,2],jarrod:0,jaum:2,jessica:2,jira:2,jm8w:2,job:[0,2,3,5,16],joe:0,johann:[0,2],john:0,johnson:0,join:[2,3,5,19],join_reactor:2,josh:[0,2],joshua:0,json:2,jsonhttp:2,juan:2,julien:2,junctur:14,junyi:2,just:[3,5,12,25,26,27],justdoit0823:2,justin:2,k:23,kaprielian:0,kartic:0,kasarher:2,kashirin:2,kasurd:0,keep:[2,5,21,26],keepal:[2,23],kei:[3,12,23,25,26,28,29],kent:0,kept:3,kernel:14,kerr:[0,2],kerrin:[0,2],kevent:2,kevin:0,keyboardinterrupt:5,keyerror:12,keyfil:23,keyword:[1,2,10,12,13,17,21,25],kill:[2,12,17,23],killal:2,kim:[0,2],kind:5,know:[1,2,7,12,14],known:[2,12],konstantin:[0,2],kortmann:2,kovari:[0,2],kqueue:[2,7,27],kqueueselector:2,krekel:0,krishnamurthi:0,kruglyak:[0,2],kuo:[0,2],kw:[1,11,13,16],kw_additional_modul:[1,25],kwan:0,kwarg3:23,kwarg4:23,kwarg:[2,10,13,16,17,23,28],kwd:[12,21],lab:[3,6,8],lack:[2,25,27],lambda:[5,18],languag:12,larg:[2,17],larger:20,lasso:[0,2],last:[2,12,15,21],lastli:27,late:25,later:[1,2,3,21,26],latin:2,launch:[1,3,7,12,16,23],lazi:7,lead:0,leak:2,learn:10,least:[1,2,17,27],leav:[1,10,12],lee:[0,2],left:[2,5,12],legaci:2,legal:2,len:[3,5,8,23],length:[2,5,22,23],lengthi:13,less:[2,16,19,20,23,29],let:[7,12],level:[2,23],levent:[0,2],lib:[2,6,27],liberal_regex_for_matching_url:5,libev:[2,7],libnam:12,librari:[0,1,2,6,7,8,12,19,24,28],libzmq:2,licens:[2,10],life:[6,13],lifespan:13,lifetim:25,lifoqueu:19,light:6,lightqueu:19,like:[1,2,5,7,12,13,14,17,19,20,22,23,25,26,27,28],limit:[1,2,3,5,13,16,18,20,21,27],linb:[0,2],linden:[2,3,6,8],line:[1,2,3,5,7,15,16,21,23,25,27],linger:2,link:[1,2,5,17],linkflag:12,linux:[2,7,27],lior:[0,2],list:[0,2,3,4,5,15,16,17,27],listen:[1,2,3,5,7,10,14,22,23,26,27],liter:[0,12,13],littl:[5,7,19,27,28],live:0,ll:[5,27,28],local:[1,7,8,9,10,27],localhost:[5,10,13,27],locat:[0,6],lock:[1,2,20],log:[0,2,14,22,23],log_format:[2,23],log_output:[2,23],log_x_forwarded_for:23,logfil:2,logger:23,logic:14,logo:[3,5,8],logutil:2,lon:2,longer:[2,13],look:27,loop:[1,2,3,5,6,7,10,17,23],loss:2,lost:2,lot:1,lowercas:[0,2],lowest:[7,19],lu:[0,2],luci:0,luke:0,luo:[0,2],m:5,macosx:2,mad:2,made:[2,5,8,19],magic:25,mai:[1,5,6,7,12,13,15,17,18,19,20,21,23,25,26,29],mail:0,main:[1,2,6,7,17,25,28],mainloop:7,maintain:[8,13],major:[1,2,19,28],majorek:0,make:[0,1,2,3,5,7,12,14,15,20,23,26,27,28],makefil:[2,5,21],makegreenfil:2,malcolm:[0,2],malicki:0,manag:[1,2,5,7,13,18,20],mandat:23,mani:[0,1,2,5,12,16,20,23,27,29],manner:[7,25],manual:2,manuel:2,map:13,marc:0,marcel:2,marcin:[0,2],marcu:[0,2],marhuenda:2,mark:[2,13,18],mark_as_clos:[2,7],mashup:5,mask:2,match:[2,18,28],matt:[0,2],matthew:[0,2],max:[12,16,18],max_ag:13,max_frame_length:22,max_http_vers:23,max_idl:13,max_siz:[13,18,23],maximum:[1,2,18,19,22,23],maxsiz:19,mcarter:2,mccabe:2,mclaren:[0,2],mean:[2,4,5,7,12,13,19,23,25,27,29],meant:[2,6,10],measur:13,mechan:[2,23],memori:[1,2,3,16],mere:[2,17],merg:2,merritt:[0,2],messag:[2,5,22,23,29],meth:28,method:[0,1,2,3,7,12,13,17,18,19,20,22,23,25,28],michael:[0,2],middl:2,might:[7,12,15,17,21,22,23,25,27,28],miguel:[0,2],mike:[0,2],mikepk:[0,2],min:18,min_siz:[2,13,18],mind:21,minimum:[3,23],minimum_chunk_s:[0,2,23],minimum_write_chunk_s:23,minor:2,miro:2,misc:2,mishra:[0,2],mismatch:[2,27],miss:[2,27],mission:2,mistak:[2,14],mit:8,mix:29,mode:2,modern:2,modif:2,modifi:[2,3,18,25],modul:[0,1,2,5,7,8,10,13,14,15,17,19,22,23,25,26,27,28,29],module_nam:25,modulenam:1,mollett:2,moment:[14,23],monkei:2,monkey_patch:[1,2,25],monkeypatch:[1,2,8,28],monoton:2,more:[1,2,3,5,6,8,10,12,16,18,19,20,22,23,25,26],most:[1,2,5,6,13,15,19,20,21,25,27],mostli:19,move:[2,5],mswindow:2,much:[1,2,12,13,20,26,27],multi:[2,8,19],multicast:29,multipl:[1,2,5,7,10,12,13,14,15,20,23,25,29],multiplex:7,multiprocess:19,multitudin:2,murau:[0,2],murthi:0,muscl:29,must:[2,12,13,15,17,18,20,21,23,25],my:21,my_func:28,my_handl:22,myapp:10,myfunc:10,myhandl:1,myhub:7,myobject:18,mypackag:7,mypool:18,mysock:21,mysql:2,mysqldb:[0,2,13],n:[3,5,23,26],nake:1,name:[1,2,6,7,12,13,23,25,27,28],nameerror:2,nameserv:2,nat:[0,2],nativ:[7,25,28],natur:12,nearli:1,necessari:[2,7,12,18,19,22],necessarili:12,need:[1,2,4,7,12,18,20,23,25,26],neg:[2,16,20],neither:12,net:[2,5],network:[2,6,8,25,27],neudorf:[0,2],never:[10,12,15,19,21],new_connect:5,new_siz:[16,18],new_sock:[3,5],new_url:5,new_writ:5,newli:12,next:[2,3,12,16,17,20],nginx:2,nica:[0,2],nice:[0,2,27],nick:[0,2],noblock:[0,2],nobodi:2,node:[12,26],non:[2,5,6,9,12,18,25,26],nonblock:[2,28],nonblockingli:1,none:[1,2,5,7,10,12,13,14,15,16,18,19,20,21,22,23,25],nonsens:2,nonsocket:2,nontrivi:12,nonzero:20,nor:[12,18],normal:[1,3,7,10,13,14,17,22,23,25,28,29],nose:[2,27],nosetest:27,notabl:2,notdon:12,note:[1,3,4,5,15,17,22,27],noth:17,notic:[2,12],notify_open:2,now:[2,12,13],nullari:18,number:[1,2,3,5,12,13,15,16,18,19,20,23,27],nvisit:5,o2:12,o:[0,6,7,16,17],obj:[13,18,28],object:[1,2,7,12,13,15,16,17,18,19,22,23,28],observ:[10,12],obtain:12,obviou:1,occasion:[17,27],occur:[15,21],octal:0,oden:0,off:[1,3,12,25],often:[2,12,14],ok:[3,5,20,23],old:[2,7],oldest:22,omit:[1,12,21,27],onc:[2,3,6,12,13,15],one:[1,2,3,4,5,7,10,12,13,15,16,17,18,19,20,21,23,25,26,27,28,29],ones:[1,5,7,12,25,27],onli:[0,1,2,4,5,7,8,12,13,15,17,18,19,21,23,25,26,28,29],onno:2,onto:28,opaqu:18,open:[0,1,2,3,5,6,8,13,16,21,23],openssl:[0,2,26],oper:[0,2,5,6,7,10,13,15,16,18,19,21,23,28],oppenheim:[0,2],opportun:17,opposit:20,optim:[2,3,4],option:[0,1,2,12,19,20,22,23,27,28],order:[3,6,7,12,13,18,19,20,22,27,28],order_as_stack:18,org:[3,5,8,23,24],organ:29,orient:29,orig_err:12,origin:[8,12,15,22],originalerror:12,orishoshan:[0,2],orlov:[0,2],os:[0,1,2,5,25,27,28],oserror:2,other:[1,2,3,7,12,13,15,17,18,19,20,22,23,25,27,28],otherwis:[17,19,20],our:5,out:[0,1,2,5,10,13,14,15,16,18,20,21,25],outbound:5,outgo:3,output:[2,12,27],outq:5,outsid:[12,21],over:[1,2,3,5,12,16,17,25,26],overal:[2,16],overhaul:2,overhead:[19,28],overrid:2,overridden:[2,23],overriden:[0,2,13,18],own:[5,7,12,16,17,27,28],owner:2,p:5,packag:[2,23,25,27],page:[0,2,5,8],pagel:[0,2],pai:0,pair:[2,12,23,25,29],parallel:[1,2,3,5,27],paramet:[1,2,12,13,16,21,23],paramiko:2,parent:[2,15,17,28],pars:[3,5],parse_q:2,part:[1,2,23],parti:7,partial:[2,12,18],particip:5,particular:[2,3,13,25,27],pascu:2,pass:[0,2,5,7,12,13,15,18,21,22,23,26],passwd:13,past:25,patch:[0,2,8,25],patcher:[0,2,25],patcher_test:2,path:[2,5,12,22],path_info:[2,5,22],pathlib:2,patienc:0,patrick:0,patrin:2,pattern:[1,5,8],paul:[0,2],pavel:6,payload:[22,23],peak:13,peer:29,pend:[1,12,21],pep333:23,pep:[0,2,25],per:[0,1,2,13,23],perform:[2,6,10,12,17,23,25],perhap:5,period:13,permessag:[0,2],peter:[0,2],phu:[0,2],physic:29,pick:[4,20],pie:12,pigmej:2,pile:[3,5],pin:2,ping:13,pipe:[5,22,28],place:[2,7,19,25,27],plai:2,plain:[2,3,5,13,23],plan:21,platform:[2,7,27],plch:2,pleas:[2,22,26],plu:[2,12],plugin:27,plumb:2,png:3,podoliaka:[0,2],point:[1,2,5,12,14,15],poll:[0,2,7,12],pollhub:2,pollselector:2,pollut:2,polyak:[0,2],pool:[1,2,3,4,5,8,9,12,14],pooledconnectionwrapp:13,popen4:2,popen:2,popul:18,port:[1,2,3,8,10,23,27],portant:[0,2],posit:[12,14,19,20,21],possibl:[1,2,7,12,17,19,20,25],post:[0,3,5,9],postgr:0,posthook:[2,23],potenti:2,power:[14,26],pprint:12,practic:[3,7,25],pre:[0,18],preced:0,precis:2,precompil:12,predict:14,preemptiv:1,prefer:[1,7,22],prematur:2,prepopul:12,present:[1,2,15,25,27,29],preserv:[2,15],preston:[0,2,6],pretend:23,pretti:5,prevent:[1,2,14,17],previou:[2,13,18],previous:[2,12],primari:[2,8,13,22,28],primit:[1,8,9,17,28],primitv:5,print:[1,2,3,5,8,12,13,14,15,16,17,18,23,26,27,28],print_funct:5,printout:27,prior:12,prioriti:19,priorityqueu:19,privat:[23,26],probabl:[2,7],problem:[2,3,12,21,25],problemat:23,proc:2,proce:12,process:[1,2,3,5,8,9,12,16,19,22,23],produc:[2,8,12,19,28],producer_consum:5,product:[3,12,14],profil:[0,2],program:[4,5,7,12],programmat:12,progress:12,project:[0,2,6,29],promot:7,proof:6,propag:2,propagateerror:12,proper:20,properli:[2,23],properti:[17,20,22],proport:16,protect:[2,3,14],protocol:[2,22,23],provabl:12,provid:[0,1,2,3,5,12,13,18,21,22,23,25,27,28,29],provision:23,proxi:[0,2,3,13,28],psycopg2:[2,13,25],psycopg:[2,25],pub:2,pull:[0,2],punct:5,purpos:[2,3,26,27],push:[5,20],put:[2,5,7,13,15,18,19,23,29],put_nowait:19,putter:19,py27:2,py2:2,py37:2,py39:2,py3:2,py3k:2,py:[0,2,5,15,22,23,26,27],pycon:[2,6],pycurl:2,pyevent:[2,7,28],pygtk:0,pyobj:2,pyopenssl:[1,2,8],pypi:[0,2,5],pytest:2,python2:2,python3:[0,2],python:[0,1,2,3,5,6,7,9,12,23,24,25,26,27,28],pythonpath:[5,27],pyzmq:[2,24],q:5,qi:2,qsize:19,qthcn:0,quad:2,quan:[0,2],quantiti:16,queri:[2,13],question:[0,12],queu:[1,29],queue:[1,2,5,8,9,15,25,29],quick:1,quickli:5,quirk:0,quit:[1,5,16,25,27],r:[0,2,5,16,23],race:2,radioact:29,radix:0,rai:29,rais:[1,2,5,7,12,13,14,15,16,17,19,20,21,22,23],ralf:[0,2],ramakrishnan:[0,2],ran:27,rand:2,random:[2,5,20,28],rang:5,rare:[2,21,25],rather:[1,3,5,12,27],rational:9,raw_path_info:2,rawconnectionpool:13,raylu:[0,2],raymon:2,raymond:0,rcvtimeo:2,rdtype:2,re:[2,5,15,21,25,26,28],reach:20,reactor:2,read:[0,1,2,3,5,7,8,14,21,23,26,27],read_chat_forev:5,readabl:[1,2],readal:2,reader:[2,3,5],readi:[2,7,12,15],readlin:[0,2,3,5,21],readm:0,readuntil:2,real:28,realli:14,realtim:12,reason:[12,13,25,27,28],rebuild:[2,12],receiv:[2,3,14,19,29],recent:[2,15,19,21],recommend:12,reconnect:29,record:[12,14],recurs:[2,8,12],recursionerror:2,recursive_crawl:5,recv:[2,3,5],recv_into:2,red:6,redbo:2,reduc:[0,2],redund:2,reentrant:[2,16],ref:2,refactor:2,refer:[1,2,8,13,15,25],reflect:[2,12],regard:0,regardless:[1,2,12,17],regist:[7,14],register_at_fork:2,regular:[1,2,5],reimplement:2,reimport:2,rel:2,relat:[1,2,8,16,25],relationship:29,releas:[2,20],relev:12,reli:[20,25],reliabl:[2,29],reload:5,remain:[8,13,23,28],remot:2,remote_port:[0,2],remov:[2,5,8,13,14,17,19],renam:2,render:0,repeatedli:[3,15],replac:[2,12,25],report:[0,2,12,19,27],repr:[5,26],repres:[1,12,13,16,20,28],represent:2,repro:0,req:26,request:[0,1,2,3,5,8,10,12,22,23,26],request_lin:23,request_method:5,requir:[1,2,5,6,7,12,13,20,23,25],rescu:25,research:29,resembl:19,reset:[2,15],resiz:[2,16,18,19],resolut:14,resolv:[2,5],resourc:[8,9,14,20],resourcewarn:2,respect:[0,2,3,5,12,19],respond:[0,3,23],respons:[0,2,9,22],rest:[1,10,12,13],restart:12,restor:25,restrict:[1,28],restructur:7,restserv:6,result:[0,1,2,3,5,12,13,15,16,17,18,21],result_from_a:12,result_from_zlib:12,resum:[2,10,12,14,19],retri:[0,2],retriev:[1,3,12,16,17,19],return_valu:12,retval:15,reus:[13,15],reuse_addr:1,reuse_port:1,revers:20,review:2,rfc3493:2,rfc7231:23,rfc:[2,23],rfk:[0,2],rhel:2,rhode:2,right:[2,17,18],risk:16,rivera:0,rlock:2,rm:2,robinson:0,robot:5,robust:[2,3],rollback:13,roman:[0,2],root:13,routin:18,rss:3,rtyler:2,ru:5,rudd:0,ruijun:[0,2],rule:[10,25],run:[0,1,2,3,5,6,7,8,9,12,14,16,17,23,26,27,28],runner:2,running_kei:12,runtim:[18,25],runtimeerror:15,rw:5,ryan:[0,2],s33kr1t:13,s:[0,1,2,3,4,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28],safe:[1,2,7,25,28],safeti:5,sai:12,sake:26,salmon:[0,2],sam:2,same:[0,1,2,3,5,6,7,10,12,14,15,16,17,20,21,22,23,25,26,27],sampl:23,samuel:[0,2],saranwrap:2,save:[0,1],saw:5,scenario:23,schedul:[1,2,6,7,17,21],schema:13,scheme:2,schmir:[0,2],schmitt:0,scope:[2,7],scott:[0,2],scraper:[3,8],script:2,sean:[0,2],search:[5,8],second:[0,1,2,7,13,14,15,17,18,19,21],secondlif:[2,26],secret:29,section:[21,23],secur:[2,23,26],sedov:2,see:[1,2,4,5,7,12,14,15,17,21,22,25,27],seed:5,seek:2,seem:5,seen:5,select26:2,select:[0,1,2,7,13,25],select_db:13,selector:2,selectselector:2,self:[10,15,18,26],sem:20,semant:[2,20,29],semaphor:[0,2,8,9],send:[2,5,15,22,23],send_except:[2,15],send_hundred_continue_head:2,send_hundred_continue_respons:23,sendal:[0,2,3,5],sender:5,sendto:2,sens:27,sensibl:[2,27],sent:[2,23],separ:[1,2,16],sequenc:[2,12,25],sergei:[0,2],sergeyev:[0,2],serial:[12,22],serv:[1,2,10,12,23,27],serve_forev:2,server:[1,2,8,9,10,26,27,29],server_cap:13,server_ev:23,server_hostnam:2,server_sid:[1,23],server_sock:27,servic:3,session:1,set:[1,2,5,10,12,13,14,17,18,20,21,22,23,26,28],set_accept_st:26,set_character_set:13,set_hundred_continue_response_head:23,set_isolation_level:[2,13],set_nonblock:2,set_num_thread:2,set_server_opt:13,set_sql_mod:13,setitim:[2,14],settimeout:[0,2],setup:[2,12,27,29],setuptool:2,sever:[12,13],seyeong:[0,2],sha1:26,share:[1,13,14],shaun:[0,2],shaw:2,shepelev:[0,2],ship:2,shop:26,shorter:14,shorthand:12,should:[1,2,12,15,17,20,21,22,23,25,28],shouldn:2,show:[3,5],show_valu:14,show_warn:13,shown:[12,23],shutdown:[2,13,26],side:3,sigalarm:14,sigchld:2,sign:[20,26],signal:14,signatur:[2,17],signific:2,silenc:21,silent:4,similar:[2,15,19],similarli:12,simmon:[0,2],simon:0,simpl:[3,5,8,12,22,23],simplehttpserv:2,simplejson:2,simpler:28,simplest:28,simpli:[1,2,7,10,12,13,22,23,25,27],simplic:[1,26],simultan:[0,2,3,5,29],sinc:[5,25,28],singh:0,singl:[1,2,10,12,13,15,16,18,22,23,25],singleton:7,sit:1,site:[5,23],situ:10,situat:[12,16,20],six:[2,5],size:[2,4,12,16,18,19,23,28],size_or_pool:16,skip:[2,27],skip_if_no_ssl:2,skirko:[0,2],slant:0,sleep:[1,2,5,15,17,21,25],slide:0,slight:25,slightli:[2,3,22,23],slot:[16,19],slow:25,small:[0,2,5,23],smart:[2,27],snapshot:12,sndhwm:2,so:[0,1,2,3,4,5,7,10,12,13,15,17,20,21,23,25,27],so_reuseaddr:[0,1,2],so_reuseport:2,sock:[1,2,10,22,23,26],sock_dgram:29,sock_stream:[26,29],socket:[0,1,2,3,7,8,10,14,17,22,23,25,26,28,29],socket_timeout:[2,23],socketconsol:10,socketserv:25,softwar:13,some:[1,2,3,5,6,7,12,13,17,18,20,21,25,26,27,28,29],someon:[2,12],someth:[2,3],sometim:[2,25,27],somewhat:3,soon:12,soren:[0,2],sorri:2,sort:[5,12,25],sottil:0,soup:27,sourc:[0,2,5,6,8,27],soviet:29,spandex:29,spare:6,spawn:[2,3,5,8,10,12,15,16,17,23,26,27],spawn_aft:[1,2,17],spawn_after_loc:17,spawn_mani:12,spawn_n:[1,3,5,15,16,17],speak:29,spec:[22,23],special:[7,12,21],specif:[1,7,12,13,17,23,27],specifi:[4,7,10,12,14,15,17,18,20,23,25],spent:6,spew:14,sporad:0,spread:2,sqlite:2,sqlstate:13,squeaki:2,squelch:0,sriniva:[0,2],ssl:[0,1,2,8,9,22,25],ssl_listen:2,ssl_version:1,sslconnect:2,sslcontext:2,sslsocket:[2,26],sslv23_method:26,sslwantreaderror:2,stack:[5,14,15,17],stacktrac:15,stand:2,standalon:16,standard:[1,2,3,5,8,9,19,26],stanescu:0,stanworth:[0,2],starmap:16,start:[1,2,3,5,6,7,12,17,23],start_respons:[3,5,23],start_url:5,starting_id:28,startup:2,stasiak:[0,2],stat:13,state:[6,10,14,25],statement:[1,2,12,13,18,21,25],statu:23,status_cod:23,stawiarski:[0,2],stderr:23,stdin:15,stdlib:[2,27],stdlib_queu:19,stdout:14,stefan:[0,2],stefano:0,step:2,steven:[0,2],stick:[5,10,28],still:[2,12,13,21,22],stinner:[0,2],stock:[0,2],stolen:29,stomp:2,stop:[1,2,6,12,14],stopiter:[12,16],stopserv:1,storag:[8,9],store:[3,12,15],store_result:13,str:[2,12,23],straightforward:2,straightforwardli:12,strang:2,stream:29,strict:[12,29],strictli:[12,20],string:[2,3,12,14,21,22,23,28],string_liter:13,strip:[2,5],structur:[1,3],stuart:[0,2],stub:27,stuck:12,stuf:1,stuff:[1,2],style:[3,6],sub:[2,27],subclass:[2,12,13,18,19],submiss:0,submodul:2,subprocess:[0,2],subscrib:2,subsect:1,subsequ:[12,19],subset:13,substanti:7,subtl:2,subtli:20,succe:12,succeed:12,success:2,successfulli:[12,17],suffic:12,suggest:0,suit:[2,13,16],suitabl:2,sullivan:0,summari:[1,27],supersocket:2,suppli:[1,7,10,17,23,28],support:[0,2,5,7,9,19,22,25,27,29],suppos:[12,13,18],suppress:[2,21],suppress_ragged_eof:[1,2],sure:[0,1,2,7,20],suspend:[1,7,16,20],svn:6,swallow:2,swap:25,swap_in:2,swap_out:2,switch_out:2,switchingtodeadgreenlet:2,sy:[2,15,23,25],synchron:[2,19,29],syntax:2,syntaxwarn:2,syscal:[0,2],system:[1,2,7,14,25,27],systemexit:5,szotten:[0,2],t:[1,2,3,5,7,12,13,14,17,20,21,23,25,27],takashi:2,take:[1,6,12,13,15,20,29],taken:13,tal:0,talk:[2,6,8],tarbal:[2,27],target:[13,17],task:[2,7,16,19],task_don:19,taso:0,tavi:[0,2],tcp:[1,2,29],tcp_listen:2,tcp_nodelai:2,tcp_quickack:2,tcp_server:2,teardown:29,technic:23,tediou:5,tegel:[0,2],tell:[14,19,27],telnet:[5,10],templat:23,tempmod:27,temporarili:25,ten:3,tend:13,term:[1,3,8],termin:[1,5,12,14,17,22,26],tesler:[0,2],tess:0,test:[0,2,8,12,13,23,26],test_024a_expect_100_continue_with_head:23,test_024b_expect_100_continue_with_headers_multiple_chunk:23,test_024c_expect_100_continue_with_headers_multiple_nonchunk:23,test_import_patched_default:2,text:[2,3,5,23],than:[1,3,5,12,13,16,17,18,19,20,23,25,26,27],thank:[2,8],thei:[1,2,3,4,5,7,12,13,15,16,19,23,25,27,28],them:[2,7,12,13,14,15,20,27,28,29],themselv:28,therebi:3,therefor:[2,14,25,28],therein:2,thereof:15,thi:[1,2,3,4,5,7,8,10,12,13,14,16,17,18,19,20,21,22,23,25,26,27,28],thier:0,thing:[5,10,13,15,16,17,18,20,28],third:7,thoma:[0,2],those:[2,3,5,12,23,27,28],though:[1,2,12,17,20,23,27],thousand:3,thread:[0,1,2,3,5,7,8,9,19,20,23,25],thread_id:13,threadloc:2,threadpool:[2,4],threadpoolexecutor:2,three:[2,13],through:[5,12,13,21],throughout:13,throw_arg:17,thrown:27,thu:[2,6,7,12,16,20,23,29],ti:3,tian:[0,2],tim:[0,2],time:[1,2,3,6,12,13,14,15,16,17,18,19,20,21,22,23,25,28,29],timeout:[0,1,2,5,7,8,9,14,15,18,19,20,23],timeout_exc:7,timeout_valu:21,timeoutexpir:2,timer:[2,7,13,14,21],timestamp:23,titl:[3,5],toe:2,toggl:14,token:[13,18],tokenpool:[13,18],told:2,toma:2,tomaz:[0,2],too:[2,5,7,12,13,20,21],took:21,tool:[8,9,23,27],top:2,topolog:12,total:2,tour:3,tox:2,tpool:[0,2,4,8,14],tpool_except:14,tpooledconnectionpool:[2,13],trace:[2,14,15,17],trace_nam:14,traceback:[2,15,21,23],track:[0,2,13],trampolin:[2,6,7],transact:23,transfer:[2,29],transpar:[6,26,29],trap_error:2,travi:[0,2],treat:2,tree:[6,12,27],tri:7,trick:28,tricki:7,trigger:[15,21],trim:2,truli:[2,5,18],trunk:6,tsafe:2,tucker:0,tune:10,tupl:[1,2,10,12,15,17,19,23],turn:[7,12],tushar:[0,2],tutori:9,tweak:[2,22],twice:12,twist:[0,2],twistedr:2,twistedutil:2,two:[1,5,12,15,18,21,29],txt:5,tyler:[0,2],type:[2,3,5,10,12,17,21,23,28,29],typeerror:2,typic:[5,12,19],typo:[0,2],udp:2,ultim:12,un:25,unavail:29,unavoid:17,unblock:[12,19,20],unbound:20,uncaught:[1,12],uncompress:[2,22],uncov:0,under:[2,8,22,25],underli:[2,12,23,26],understand:[1,2,4,8,27],unencrypt:23,unexpect:21,unexpectedli:[7,28],unfinish:[2,13,19],unicod:[2,22],unidirect:5,unidirection:5,uniform:12,uniqu:[12,18],unit:[1,2,27],unittest:[6,27],univers:[2,8,9],universal_newlin:2,unix:[2,23],unknown:12,unless:12,unlik:[12,19],unlink:[0,2,17],unmodifi:2,unnecessari:2,unpack:2,unpatch:2,unpredict:1,unqualifi:2,unrel:0,unreli:29,unschedul:15,unspecifi:12,unspew:14,until:[1,2,3,7,12,15,16,17,18,19,20,28],unus:[2,13],unwrap:2,up:[2,5,7,10,12,13,14,16,17,18,19,20,23,26,27],updat:[2,6],upgrad:[0,2],upload:12,upon:[13,25],upper:[3,20],upstream:[2,12],urban:[0,2],url:[2,3,5,8,23,26],url_length_limit:23,url_match:5,url_regex:5,url_schem:[2,23],urllib2:[0,2,5,21,26],urllib:[3,5,8,26],urlopen:[0,3,5,8,26],us:[0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28,29],usabl:23,usag:[2,3,8,12],use_certificate_fil:26,use_hub:[2,4,7],use_privatekey_fil:26,use_result:13,useless:[12,13],user:[2,4,8,13,23,29],usr:5,usual:27,utf:[2,22],util:[2,14],uuid:12,v20:2,v2:2,v:[0,2],val:0,valid:22,valu:[1,2,3,5,10,12,13,14,15,16,17,20,21,22,23,28],value1:12,value2:12,valueerror:[2,19,20],vanderlinden:[0,2],variabl:[2,7,8,10,22,23,27,28],variant:19,variou:[2,3],varrazzo:[0,2,25],vast:28,vatamaniuc:[0,2],ve:[12,13,25],vector:22,verbos:[1,2],veri:[1,2,3,5,12,13,18,20,21],verifi:27,version:[1,2,3,10,22,23,24,25,26,27],versu:12,via:[2,7,10,18,27,28],victor:[0,2],violat:23,vishvananda:2,visit:15,volunt:0,vs:23,w:[0,2,5],wa:[2,3,6,10,12,19,20,21,27],wai:[1,2,5,10,12,15,17,18,22,23,25,27,28],wait:[0,2,5,7,12,13,14,15,16,17,18,19,20,22,23,26],wait_each:12,wait_each_except:12,wait_each_success:12,wait_on:15,waital:[5,12,16],waiter:15,waiting_for:12,waitpid:2,wake:[0,2,7,13,20],wall_second:23,want:[1,2,3,12,13,17,23,27,28],warn:22,warning_count:13,water:[13,18],we:[0,1,2,3,5,12,25,27],weak:25,web:[3,8,22,23],webcrawl:[0,5],webob:0,weboscket:0,websocket:[0,2,8,9,23],websocket_chat:5,websockets13:2,websocketwsgi:[5,22],weight:6,weird:[2,27],well:[2,5,12,23,25,27],were:[0,2,3,5,6,12,19,27],what:[1,2,4,7,8,12,14,25,27],whatev:[12,13,17,18],wheel:2,when:[1,2,3,5,6,7,10,12,13,14,15,16,17,18,19,20,21,23,25,27,28,29],whenev:[13,18,19],where:[2,3,12,13,15,19,23,29],wherea:25,whether:[2,12,13,14,17,19,23,25],which:[1,2,3,5,7,12,13,14,15,16,17,18,20,22,23,25,27,28],whitespac:2,whitnei:0,who:[2,8,13,18],whole:[2,16],whoop:15,whose:12,why:[2,7],wiki:2,william:[0,2],windisch:[0,2],window:[0,2],winerror:2,with_timeout:[2,21],within:[2,8,9,12,17,19,21],without:[2,7,12,13,14,16,17,19,20,21],wodg:27,woken:[15,19],won:[1,3,7,21],wonder:6,word:[2,12,13,18],work:[1,2,3,5,6,8,12,13,16,19,22,23,25,26,27,28],workaround:2,worker:[3,5,16],world:[5,6,8,22,23,28],would:[1,2,12,13,20],wrap:[2,12,21,22,23,26,27,28],wrap_:2,wrap_pipes_with_coroutine_pip:2,wrap_socket:[1,2],wrap_socket_with_coroutine_socket:2,wrap_ssl:[0,1,2,23],wrapper:[2,12,13,28],wright:[0,2],wrii:0,write:[2,5,6,7,8,14,25,26],writelin:2,writer:[2,5],written:[6,23,24],wrong:2,ws:[5,22],wsgi:[0,2,3,8,9,22],wsgi_app:23,wsgi_test:23,wsl:2,ww:[3,5,8],www:[3,5,8,21,24],x509:26,x:[5,23],xreadlin:2,y3:[3,5,8],yamamoto:2,yandex:5,yang:[0,2],yashwardhan:0,ye:3,yet:[2,6,12,22,27],yield:[1,2,3,10,12,13,14,17,18,21,23,25,28],yimg:[3,5,8],you:[1,2,3,5,6,7,8,10,12,13,14,15,17,18,21,22,23,25,26,27,28,29],young:0,your:[0,1,2,5,7,12,26,27],yourself:[5,7],yuichi:0,yule:0,zed:2,zero:[16,18,19,20],zeromq:[0,2,8,24],zeroreturnerror:2,zhang:[0,2],zhengwei:2,ziegler:0,zip:5,zipkin:2,zlib:12,zmq:[0,2,8,9,29]},titles:["Authors","Basic Usage","0.32.0","Design Patterns","Environment Variables","Examples","History","Understanding Eventlet Hubs","Eventlet Documentation","Module Reference","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">backdoor</span></code> \u2013 Python interactive interpreter within a running process","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">corolocal</span></code> \u2013 Coroutine local storage","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">dagpool</span></code> \u2013 Dependency-Driven Greenthreads","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">db_pool</span></code> \u2013 DBAPI 2 database connection pooling","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">debug</span></code> \u2013 Debugging tools for Eventlet","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">event</span></code> \u2013 Cross-greenthread primitive","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">greenpool</span></code> \u2013 Green Thread Pools","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">greenthread</span></code> \u2013 Green Thread Implementation","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">pools</span></code> - Generic pools of resources","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">queue</span></code> \u2013 Queue class","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">semaphore</span></code> \u2013 Semaphore classes","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">timeout</span></code> \u2013 Universal Timeouts","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">websocket</span></code> \u2013 Websocket Server","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">wsgi</span></code> \u2013 WSGI server","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">eventlet.green.zmq</span></code> \u2013 \u00d8MQ support","Greening The World","Using SSL With Eventlet","Testing Eventlet","Threads","Zeromq"],titleterms:{"0":2,"1":2,"10":2,"100":23,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"2":[2,13],"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":2,"29":2,"3":2,"30":2,"31":2,"32":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"\u00f8mq":[24,29],"class":[19,20],"function":[1,7],"import":25,If:0,The:25,To:0,With:26,api:[1,29],argument:13,author:0,backdoor:10,basic:1,bug:0,chat:5,client:3,connect:[5,13],constructor:13,consum:5,content:[8,12],continu:23,contributor:0,control:1,conveni:1,coroloc:11,coroutin:11,coverag:27,crawler:5,cross:15,dagpool:12,databas:13,databaseconnector:13,db_pool:13,dbapi:13,debug:14,depend:12,design:3,dispatch:3,doctest:27,document:[8,29],driven:12,e:0,echo:5,environ:4,event:15,eventlet:[7,8,14,24,26,27],exampl:[5,12],except:12,extens:23,feed:5,find:0,forward:5,gener:18,green:[16,17,24,25],greenpool:16,greenthread:[1,12,15,17],hassl:0,header:23,histori:6,hook:23,how:7,hub:[7,27],i:0,implement:17,indic:8,interact:10,interpret:10,introspect:12,lab:0,librari:[25,27],licens:8,linden:0,local:11,maintain:0,modul:[9,12],monkeypatch:25,more:7,multi:5,network:1,non:23,origin:0,patch:1,pattern:3,pool:[13,16,18,28],port:5,post:[12,23],preload:12,primari:1,primit:15,process:10,produc:5,propag:12,pyopenssl:26,python:[8,10],queue:19,rational:12,recurs:5,refer:9,relat:7,resourc:18,respons:23,run:10,scan:12,scraper:5,semaphor:20,server:[3,5,22,23],simpl:28,socket:5,spawn:1,ssl:[23,26],standard:[23,25,27],storag:11,success:12,support:[8,23,24],tabl:8,test:27,thank:0,thread:[16,17,28],timeout:21,tool:14,tpool:28,tutori:12,understand:7,univers:21,us:26,usag:1,user:5,variabl:4,version:8,web:5,websocket:[5,22],what:29,who:0,within:10,work:7,world:25,write:27,wsgi:[5,23],x:2,you:0,zeromq:29,zmq:24}}) \ No newline at end of file
+Search.setIndex({docnames:["authors","basic_usage","changelog","design_patterns","environment","examples","history","hubs","index","modules","modules/backdoor","modules/corolocal","modules/dagpool","modules/db_pool","modules/debug","modules/event","modules/greenpool","modules/greenthread","modules/pools","modules/queue","modules/semaphore","modules/timeout","modules/websocket","modules/wsgi","modules/zmq","patching","ssl","testing","threading","zeromq"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,sphinx:56},filenames:["authors.rst","basic_usage.rst","changelog.rst","design_patterns.rst","environment.rst","examples.rst","history.rst","hubs.rst","index.rst","modules.rst","modules/backdoor.rst","modules/corolocal.rst","modules/dagpool.rst","modules/db_pool.rst","modules/debug.rst","modules/event.rst","modules/greenpool.rst","modules/greenthread.rst","modules/pools.rst","modules/queue.rst","modules/semaphore.rst","modules/timeout.rst","modules/websocket.rst","modules/wsgi.rst","modules/zmq.rst","patching.rst","ssl.rst","testing.rst","threading.rst","zeromq.rst"],objects:{"":{zmq:[24,1,0,"-"]},"eventlet.backdoor":{SocketConsole:[10,0,1,""],backdoor:[10,3,1,""],backdoor_server:[10,3,1,""]},"eventlet.backdoor.SocketConsole":{"switch":[10,2,1,""]},"eventlet.corolocal":{get_ident:[11,3,1,""],local:[11,0,1,""]},"eventlet.dagpool":{Collision:[12,4,1,""],DAGPool:[12,0,1,""],PropagateError:[12,4,1,""]},"eventlet.dagpool.DAGPool":{__getitem__:[12,2,1,""],__init__:[12,2,1,""],get:[12,2,1,""],items:[12,2,1,""],keys:[12,2,1,""],kill:[12,2,1,""],post:[12,2,1,""],running:[12,2,1,""],running_keys:[12,2,1,""],spawn:[12,2,1,""],spawn_many:[12,2,1,""],wait:[12,2,1,""],wait_each:[12,2,1,""],wait_each_exception:[12,2,1,""],wait_each_success:[12,2,1,""],waitall:[12,2,1,""],waiting:[12,2,1,""],waiting_for:[12,2,1,""]},"eventlet.db_pool":{BaseConnectionPool:[13,0,1,""],ConnectTimeout:[13,4,1,""],ConnectionPool:[13,5,1,""],DatabaseConnector:[13,0,1,""],GenericConnectionWrapper:[13,0,1,""],PooledConnectionWrapper:[13,0,1,""],RawConnectionPool:[13,0,1,""],TpooledConnectionPool:[13,0,1,""],cleanup_rollback:[13,3,1,""]},"eventlet.db_pool.BaseConnectionPool":{clear:[13,2,1,""],get:[13,2,1,""],item:[13,2,1,""],put:[13,2,1,""]},"eventlet.db_pool.DatabaseConnector":{credentials_for:[13,2,1,""],get:[13,2,1,""]},"eventlet.db_pool.GenericConnectionWrapper":{affected_rows:[13,2,1,""],autocommit:[13,2,1,""],begin:[13,2,1,""],change_user:[13,2,1,""],character_set_name:[13,2,1,""],close:[13,2,1,""],commit:[13,2,1,""],cursor:[13,2,1,""],dump_debug_info:[13,2,1,""],errno:[13,2,1,""],error:[13,2,1,""],errorhandler:[13,2,1,""],insert_id:[13,2,1,""],literal:[13,2,1,""],ping:[13,2,1,""],query:[13,2,1,""],rollback:[13,2,1,""],select_db:[13,2,1,""],server_capabilities:[13,2,1,""],set_character_set:[13,2,1,""],set_isolation_level:[13,2,1,""],set_server_option:[13,2,1,""],set_sql_mode:[13,2,1,""],show_warnings:[13,2,1,""],shutdown:[13,2,1,""],sqlstate:[13,2,1,""],stat:[13,2,1,""],store_result:[13,2,1,""],string_literal:[13,2,1,""],thread_id:[13,2,1,""],use_result:[13,2,1,""],warning_count:[13,2,1,""]},"eventlet.db_pool.PooledConnectionWrapper":{close:[13,2,1,""]},"eventlet.db_pool.RawConnectionPool":{connect:[13,2,1,""],create:[13,2,1,""]},"eventlet.db_pool.TpooledConnectionPool":{connect:[13,2,1,""],create:[13,2,1,""]},"eventlet.debug":{format_hub_listeners:[14,3,1,""],format_hub_timers:[14,3,1,""],hub_blocking_detection:[14,3,1,""],hub_exceptions:[14,3,1,""],hub_listener_stacks:[14,3,1,""],hub_prevent_multiple_readers:[14,3,1,""],hub_timer_stacks:[14,3,1,""],spew:[14,3,1,""],tpool_exceptions:[14,3,1,""],unspew:[14,3,1,""]},"eventlet.event":{Event:[15,0,1,""]},"eventlet.event.Event":{ready:[15,2,1,""],send:[15,2,1,""],send_exception:[15,2,1,""],wait:[15,2,1,""]},"eventlet.greenpool":{GreenPile:[16,0,1,""],GreenPool:[16,0,1,""]},"eventlet.greenpool.GreenPile":{next:[16,2,1,""],spawn:[16,2,1,""]},"eventlet.greenpool.GreenPool":{free:[16,2,1,""],imap:[16,2,1,""],resize:[16,2,1,""],running:[16,2,1,""],spawn:[16,2,1,""],spawn_n:[16,2,1,""],starmap:[16,2,1,""],waitall:[16,2,1,""],waiting:[16,2,1,""]},"eventlet.greenthread":{GreenThread:[17,0,1,""],getcurrent:[17,3,1,""],kill:[17,3,1,""],sleep:[17,3,1,""],spawn:[17,3,1,""],spawn_after:[17,3,1,""],spawn_after_local:[17,3,1,""],spawn_n:[17,3,1,""]},"eventlet.greenthread.GreenThread":{cancel:[17,2,1,""],kill:[17,2,1,""],link:[17,2,1,""],unlink:[17,2,1,""],wait:[17,2,1,""]},"eventlet.hubs":{get_default_hub:[7,3,1,""],get_hub:[7,3,1,""],trampoline:[7,3,1,""],use_hub:[7,3,1,""]},"eventlet.patcher":{import_patched:[25,3,1,""],is_monkey_patched:[25,3,1,""],monkey_patch:[25,3,1,""]},"eventlet.pools":{Pool:[18,0,1,""],TokenPool:[18,0,1,""]},"eventlet.pools.Pool":{create:[18,2,1,""],free:[18,2,1,""],get:[18,2,1,""],item:[18,2,1,""],put:[18,2,1,""],resize:[18,2,1,""],waiting:[18,2,1,""]},"eventlet.pools.TokenPool":{create:[18,2,1,""]},"eventlet.queue":{Empty:[19,4,1,""],Full:[19,4,1,""],LifoQueue:[19,0,1,""],LightQueue:[19,0,1,""],PriorityQueue:[19,0,1,""],Queue:[19,0,1,""]},"eventlet.queue.LightQueue":{empty:[19,2,1,""],full:[19,2,1,""],get:[19,2,1,""],get_nowait:[19,2,1,""],getting:[19,2,1,""],put:[19,2,1,""],put_nowait:[19,2,1,""],putting:[19,2,1,""],qsize:[19,2,1,""],resize:[19,2,1,""]},"eventlet.queue.Queue":{join:[19,2,1,""],task_done:[19,2,1,""]},"eventlet.semaphore":{BoundedSemaphore:[20,0,1,""],CappedSemaphore:[20,0,1,""],Semaphore:[20,0,1,""]},"eventlet.semaphore.BoundedSemaphore":{release:[20,2,1,""]},"eventlet.semaphore.CappedSemaphore":{acquire:[20,2,1,""],balance:[20,6,1,""],bounded:[20,2,1,""],locked:[20,2,1,""],release:[20,2,1,""]},"eventlet.semaphore.Semaphore":{acquire:[20,2,1,""],balance:[20,6,1,""],bounded:[20,2,1,""],locked:[20,2,1,""],release:[20,2,1,""]},"eventlet.timeout":{Timeout:[21,0,1,""],with_timeout:[21,3,1,""]},"eventlet.timeout.eventlet.timeout.Timeout.Timeout":{cancel:[21,2,1,""],pending:[21,5,1,""]},"eventlet.tpool":{Proxy:[28,0,1,""],execute:[28,3,1,""]},"eventlet.websocket":{WebSocket:[22,0,1,""],WebSocketWSGI:[22,0,1,""]},"eventlet.websocket.WebSocket":{close:[22,2,1,""],send:[22,2,1,""],wait:[22,2,1,""]},"eventlet.wsgi":{format_date_time:[23,3,1,""],server:[23,3,1,""]},eventlet:{GreenPile:[1,0,1,""],GreenPool:[1,0,1,""],Queue:[1,0,1,""],StopServe:[1,0,1,""],Timeout:[1,0,1,""],backdoor:[10,1,0,"-"],connect:[1,3,1,""],corolocal:[11,1,0,"-"],dagpool:[12,1,0,"-"],db_pool:[13,1,0,"-"],debug:[14,1,0,"-"],event:[15,1,0,"-"],greenpool:[16,1,0,"-"],greenthread:[17,1,0,"-"],import_patched:[1,3,1,""],listen:[1,3,1,""],monkey_patch:[1,3,1,""],pools:[18,1,0,"-"],queue:[19,1,0,"-"],serve:[1,3,1,""],sleep:[1,3,1,""],spawn:[1,3,1,""],spawn_after:[1,3,1,""],spawn_n:[1,3,1,""],tpool:[28,1,0,"-"],websocket:[22,1,0,"-"],wrap_ssl:[1,3,1,""],wsgi:[23,1,0,"-"]}},objnames:{"0":["py","class","Python class"],"1":["py","module","Python module"],"2":["py","method","Python method"],"3":["py","function","Python function"],"4":["py","exception","Python exception"],"5":["py","attribute","Python attribute"],"6":["py","property","Python property"]},objtypes:{"0":"py:class","1":"py:module","2":"py:method","3":"py:function","4":"py:exception","5":"py:attribute","6":"py:property"},terms:{"0":[0,1,3,5,12,13,15,17,18,19,20,21,22,23,26,27],"001":27,"01":2,"02":2,"0mq":29,"1":[1,3,5,12,14,15,20,21,23,24,26,27],"10":13,"100":[0,2,9,26],"1000":[1,3,16],"10000":[3,5],"10038":2,"1024":[5,23,26],"104":2,"11":5,"115":2,"120":15,"123":2,"127":[1,5,26,27],"13":22,"136":[0,2],"139":2,"158":2,"16":27,"162":0,"183":0,"194":0,"1950":29,"2":[0,8,9,15,18,20,21,23,24,26],"20":[27,28],"200":[3,5,23],"2006":6,"2008":2,"2009":5,"2010":2,"22":[0,5],"22e9de1d7957":2,"295":2,"3":[0,3,8,15,23,24],"30":[13,21],"3000":10,"3001":5,"32":[5,22],"32384":5,"327":2,"334":2,"365":26,"37":2,"4":[3,8,12,13,15,18,23],"400":2,"403":5,"404":5,"414":23,"427":2,"462":2,"5":[5,8,13,18,21],"50":[1,5,26],"500":23,"508":2,"53":0,"541":2,"547":2,"578":2,"583":2,"598":2,"5c0322dc559bf":2,"6":23,"6000":[3,5],"601":2,"619":2,"62":2,"645":2,"651":2,"654":2,"66":0,"660":2,"677":2,"683":2,"69":0,"697":2,"6f":23,"7":[8,26],"70":0,"7000":5,"705":2,"71":0,"715":2,"718":2,"722":2,"7231":23,"726":2,"73":[0,2],"74":[0,2],"76":[2,22],"7692":2,"77":[0,2],"78":0,"8":[0,22,25],"80":[2,5],"8090":[5,22,23],"8192":23,"83":[0,2],"8388608":22,"8443":26,"86":0,"89":0,"8mib":[2,22],"9":[0,22],"90":18,"9010":5,"91":2,"94":0,"94p2":2,"95":0,"9999":1,"9p9m":2,"\u00f8mq":[8,9],"abstract":[15,16,29],"boolean":23,"break":[2,3,5,27],"byte":[2,5,23,29],"case":[0,2,3,5,7,12,13,18,19,20,21,23,25,26,27,28,29],"catch":[2,12,21],"class":[1,2,7,8,9,10,11,12,13,15,16,17,18,21,22,23,25,28],"default":[2,7,12,13,17,19,20,21,22,23,27,28],"do":[1,2,3,5,7,12,14,15,16,17,20,22,25,27,28],"export":23,"final":[2,5,12,13,21],"float":[14,15,17,21],"function":[2,3,5,8,10,12,13,14,16,17,18,21,22,23,25,27,28],"hron\u010dok":2,"import":[0,1,2,3,5,6,7,8,10,12,13,15,18,22,23,26,27,28],"int":21,"kobli\u017eek":0,"long":[2,10,13,14,16,21,23],"new":[1,2,3,5,10,12,13,15,16,18,19,20,26,28],"nov\u00fd":0,"ond\u0159ej":0,"pi\u00ebt":0,"public":2,"return":[1,2,3,5,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,28],"short":[5,14],"static":3,"switch":[2,7,10,17,28],"throw":15,"transient":2,"true":[1,2,3,5,7,12,14,15,17,19,20,21,23,25,28],"try":[2,5,12,13,14,15,21,25],"villac\u00ed":[0,2],"while":[2,3,5,12,15,23,28,29],A:[2,5,7,12,13,16,18,19,20,22,23,25,28,29],As:[12,21,22,23,26],At:[12,23],But:[2,12,14],By:[12,17,22,28],For:[1,5,12,15,17,19,23,26,27],If:[1,3,7,8,10,12,13,15,16,17,18,19,20,21,22,23,25,26,27],In:[1,2,7,10,12,13,16,18,19,20,21,26,29],It:[1,2,3,5,7,10,12,13,14,15,16,17,18,19,20,22,25,27,28],Its:12,NOT:17,Not:[2,5,12,27],Of:12,On:7,One:[3,12,23,25,27],Or:12,That:[3,12,27],The:[0,1,2,3,4,5,7,8,10,12,13,14,15,16,17,18,19,20,22,23,27,28],Then:12,There:[2,3,16,18,20,21,27],These:[1,4,12,27],To:[1,5,7,8,12,14,16,17,22,23,27],With:[2,8,12,28,29],_:[2,15],__:12,__all__:10,__class__:12,__del__:2,__doc__:10,__enter__:2,__exit__:2,__file__:5,__future__:5,__getitem:12,__getitem__:12,__init__:[2,12],__main__:[5,7],__name__:[5,10,12],__set__:2,__str__:2,__version__:2,_at_fork_reinit:2,_exc:15,_exit_func:2,_imp:2,_main_wrapp:2,_queuelock:2,_recv_loop:2,_socket_nodn:0,aayush:0,abil:[2,25,27],abl:[1,6,17,21,23],abort:[1,2,17,21],about:[2,3,5,6,10,12,14,15,23,25,27],abov:[10,12,23],abramowitz:0,absenc:0,accept:[0,1,2,3,4,5,10,12,13,18,23,26,29],access:[1,2,10,27,28],accident:[1,3],accompani:23,account:[2,20],accumul:[0,2],accur:23,achiev:[14,28],acquir:[0,2,20],across:[2,19],act:[5,18],action:25,activ:[10,23],actor:2,actual:[5,12,18,23],acycl:12,ad:[0,2,6,19],adamkg:0,add:[1,2,5],addit:[13,14,17,21,23],addition:2,additional_modul:[1,25],addl:29,addr:[1,5,26],address:[1,2,3,5,12,23],addressfamili:1,adjust:18,adopt:2,advanc:4,advantag:[1,25,26],advic:0,advis:16,advisori:2,af_inet:[1,26],affect:18,affected_row:13,affin:2,afford:[1,25],after:[1,2,6,12,13,14,17,20,21,23,27],ag:[0,2],again:[2,7,12,13,15,20],against:[2,14,25],aggreg:3,agnost:13,agusto:2,aha:12,aka:12,alaniz:0,alanp:2,aldona:0,alex:[0,2],alexei:[0,2],alexi:[0,2],alia:[12,13],alik:13,all:[1,2,3,5,6,12,13,15,16,17,19,22,23,26,27],allow:[0,1,2,12,13,16,22,23,29],along:2,alreadi:[2,3,5,12,13,15,16,17,18,22,23,28],already_handl:2,also:[1,2,3,6,7,12,16,22,23,25,28],alter:2,altern:[2,12],although:[2,12],alvarez:2,alwai:[2,12,19,21,23],amajorek:2,ambroff:[0,2],amen:28,amount:[1,3,13,16],an:[0,1,2,3,4,5,6,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28,29],andrei:[0,2],andrew:0,ani:[1,3,4,5,6,7,12,13,14,16,17,18,21,23,25,27,28],annot:27,announc:25,annoy:1,anonym:0,anoth:[1,2,7,12,15,17,20,26],answer:[2,12],anthoni:0,antonio:[0,2],anymor:2,anyth:[1,12],anywai:2,api:[2,7,8,13,19,20,23],app:[2,3,5],appar:25,appear:[2,25],append:23,appli:[2,3],applic:[1,2,3,5,7,10,12,14,21,22,23,25],appreci:0,approach:25,appropri:[2,12,27],ar:[0,1,2,3,4,5,7,8,10,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28,29],arbitrari:[12,15],arg1:23,arg2:23,arg:[1,2,10,11,12,13,15,16,17,19,21,23,28],argument:[0,1,2,3,7,9,10,12,14,15,16,17,18,20,21,22,23,25],armstrong:2,around:[1,2],arrai:23,arrang:[5,15,17],arriv:12,artur:[0,2],ashutosh:[0,2],ask:[2,12],aspect:[3,25],assertionerror:15,assign:2,associ:[2,12,16],astrum:[0,2],asynchat:2,asynchron:[2,13,29],asyncor:25,atle:0,atom:29,attack:22,attempt:[12,20],attent:0,attribut:[2,12,28],attributeerror:2,authent:13,author:[2,8,29],auto:2,autocommit:13,automat:[2,7,25],autowrap:28,autowrap_nam:28,avail:[1,2,7,8,12,13,16,17,18,19,22],averi:2,avoid:[2,12,15,25],awai:[6,17,27],awaken:20,awar:[1,2,12,21,24],awesom:27,ayncor:2,azhar:[0,2],b:[5,12,15,25,26],bachri:[0,2],back:[2,5,7,13,18,22,23],backbon:6,backdoor:[2,8,9],backdoor_serv:10,backend:7,backlog:[1,2],backtrac:2,backward:2,bad:[2,3,12],badli:29,balanc:20,ballanc:0,ban:3,bando:0,bandwidth:23,bar:23,bare:3,barton:[0,2],base:[2,5,6,7,13,23,25,27],baseconn:13,baseconnectionpool:[2,13],baseexcept:[21,23],basehttpserv:25,basi:[0,2,7,13,15,23],basic:[3,8],baz:15,bean:6,becam:6,becaus:[1,2,3,4,7,12,19,20,22,25,27],becciu:2,becom:[3,12,13,16,20,23],been:[0,2,7,10,12,13,19,21,22,23],befor:[2,4,7,10,12,13,18,20,21,23,25,28],began:6,begin:[4,7,13],behav:[1,2,10,12,19,20,23,25,28],behavior:[1,2,3,4,12,14,16,17,20,22,25],behaviour:2,being:[1,2,5,7,14,17,29],beislei:0,below:16,ben:[0,2],benchmark:2,bend:2,benefit:[13,25],bennett:[0,2],benoit:[0,2],best:[7,18,25,27],beta:[3,5,8],better:[0,2,14],between:[0,1,2,3,10,12,15,27,28],beyond:7,bidirect:5,big:27,bilenko:0,bin:[2,5],bind:[1,2,12,24,25,26,27,29],bit:13,bitbucket:[0,2],blank:2,block:[1,2,3,6,10,12,13,14,16,18,19,20,21,26,28],block_on:2,blockingli:20,board:2,bob:[0,6],bodi:[2,3,5,8,10,23,26],body_length:23,boil:3,bombard:29,book:[2,29],bool:13,borzenkov:[0,2],both:[2,12,13,19,25,27],bound:[3,20,23,29],boundedsemaphor:[2,20],branch:[2,25],brandon:2,brantlei:0,brett:2,brian:[0,2],broadcast:5,broken:[2,5,22],brought:2,brows:2,browser:[5,22],brunswick:[0,2],brutal:5,bruynoogh:[0,2],bryan:0,buffer:[0,2],buflen:2,bufsiz:2,bug:[2,8,20],bugfix:2,build:[2,10,12,18],build_product_for_kei:12,builder:12,built:[1,2,7,25,26],builtin:[2,25],bulg:29,bunch:[1,2,3,5,8,13,15,16,25,27],bundl:2,burk:[0,2],busi:[0,2],busywait:2,c:[3,5,12,24,28],ca_cert:1,cach:0,cadefault:0,cafil:0,calcul:17,call:[1,2,3,4,5,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28],call_aft:2,callabl:[2,12,21],callback:[2,5],calledprocesserror:2,caller:[2,10,12,13,17,18,21],can:[0,1,2,3,4,5,7,10,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28],cancel:[1,2,17,21],cannot:[18,21,23],canon:[3,17],capabl:5,capac:[16,20],capath:0,capit:2,capitalize_response_head:[2,23],cappedsemaphor:20,care:3,carlisl:0,carter:0,categor:12,caus:[2,3,7,12,13,15,17,18,23],cavanaugh:[0,2],caveat:[13,21],cb:5,ccp:2,ceas:6,cert:[23,26],cert_req:1,certain:[1,2,12,25],certfil:23,certif:[2,26],cesar:[0,2],cflag:12,cgi:2,cgihttpserv:2,chain:12,challeng:25,chanc:[0,1,14],chang:[2,3,7,10,12,14,16,22,25,27],changbo:0,change_us:13,channel:[2,19],character_set_nam:13,characterist:23,chase:12,chat:[0,2,8],chat_serv:5,chatserv:5,cheap:1,check:[1,2,12,13,18,20,21],check_hostnam:2,chesneau:0,chet:0,child:2,children:0,chri:[0,2],christofi:[0,2],christoph:[0,2],chrome:2,chronolog:12,chu:0,chuck:0,chunk:[0,1,2,23],chunked_encod:2,chunkreaderror:2,chwagssd:2,cipher:2,circular:2,clad:29,clai:[0,2],classmethod:13,clean:2,cleaner:2,cleanup:[2,13],cleanup_rollback:13,clear:[2,13,14],cleaton:[0,2],clever:1,client:[0,1,2,5,8,10,14,22,23,26,27,29],client_addr:1,client_conn:26,client_ip:23,client_sock:[1,27],clock:2,clone:2,close:[0,1,2,5,13,22,23,26],closed_callback:5,closer:2,closur:22,code:[0,1,2,3,5,7,8,12,14,21,22,23,27,28],coexist:22,collect:[3,5,13,23,28],collin:[0,2],collis:12,com:[2,3,5,6,8,13,21,24,26],come:[2,3,12,23,25,28],comic:29,command:[5,10,26,27],comment:2,commit:13,common:[1,2,3,7,12,25,28],commun:[1,2,3,15,23,28],comparison:[2,29],compat:[0,2,13,20,28],compil:[5,12],complet:[1,2,3,7,12,16,17,19,23,25,27,28],complex:3,complianc:2,complic:12,concaten:3,concept:[1,6],concurr:[1,3,5,8,12,13,16,18,28],condit:2,configur:[2,7,12,26,28],confin:28,conform:0,conjunct:[14,28],conn:13,conn_info:10,conn_pool:13,connect:[1,2,3,8,9,10,22,23,26,27,28,29],connect_ex:2,connect_tcp:2,connect_timeout:13,connectionpool:13,connecttimeout:13,conserv:1,consid:[7,12,14,25],consist:[1,2,20,27],consol:[10,27],constant:[2,16],constern:12,constrain:12,construct:[1,3,4,12,13,16,17,18],constructor:[2,9],consult:2,consum:[1,2,3,8,12,16,18,19],contact:2,contain:[2,3,5,12,13,14,17,18,23,25,27,28],content:[2,3,5,9,23],context:[1,2,17,18,20,26],contin:2,continu:[0,2,9,10,12],contrast:12,contribut:[0,12],contributor:8,contriv:3,control:[2,3,4,5,7,8,17,25],conveni:[0,2,3,8,10,16,21,22,25,27],convent:[27,29],convert:[1,2,22],cooper:[1,3,10,13,17,18,21,25,28],coordin:5,copi:[2,5,27],copyright:[2,10],core:2,corei:[0,2],coro:2,coroloc:[2,8,9],corotwin:2,coroutin:[1,2,5,6,7,8,9,15,17,18,28],coroutinepool:2,correct:[0,2,12,25,27],correctli:[0,2],correspond:[12,13,18],corrupt:1,cosmic:29,cost:28,costa:[0,2],could:[2,3,5,6,12],count:[2,19,20],counter:20,counterpart:26,coupl:12,cours:[5,12,25],courtesi:2,cover:27,coverag:[2,8],cp:13,cpu:[2,21],cpython:[2,8],crash:[2,5],crawl:5,crawler:[3,8],creat:[2,3,13,15,16,17,18,19,22,23,26],create_connect:2,creation:[1,13],credenti:13,credentials_for:13,credit:10,critic:14,cross:[8,9,28],crt:23,ctrl:5,cuni:[0,2],current:[0,1,2,7,8,10,11,12,13,14,15,16,17,19,20,21,25,27,28],current_s:2,current_thread:2,curri:17,curried_arg:17,curried_kwarg:17,cursor:[13,28],custom:[1,2,23],custom_pool:23,customiz:2,cycl:[15,18],cython:24,d:[0,2,3,5,12,27],dag:12,dagpool:[2,8,9],dagu:[0,2],dai:[6,26],daisuk:[0,2],dan:2,danc:2,daniel:[0,2,25],daringfirebal:5,darwin:2,data:[0,1,2,3,5,12,14,19,21,23],databas:[8,9,28],databaseconnector:9,datagram:29,date_tim:23,davanum:[0,2],dave:0,david:[0,2],davoian:0,db:[2,13],db_modul:13,db_pool:[2,8,9],dbapi:[8,9],dbfbfc818e3d:2,dbname:13,dc:13,dead:10,deadlock:[2,12,16],deal:2,death:2,debug:[0,2,8,9,10,11,17,23],decid:[13,25],decis:23,decod:5,decor:[2,22],decoupl:12,decrement:20,def:[1,3,5,8,12,15,16,17,18,22,23,28],defaultselector:2,defer:2,defin:[18,23,25],deflat:[0,2],del:2,delai:[1,17],delet:2,deliv:[12,19],deliveri:[2,12,29],delport:0,demand:13,demo:5,demonstr:5,deni:0,denomin:7,dep:12,depend:[0,1,2,5,6,7,8,9,13,25,26,29],deprec:[2,7,8,23],deprecationwarn:2,depth:2,deriv:25,derk:[0,2],desc:10,descriptor:[2,7,14,23],deseri:22,design:[1,8,27],desir:[1,6,7,12,17,18,28],despit:2,dest:5,destin:13,destroi:5,detail:[1,2,14,22],detect:[0,2,14,23,27],detector:[2,14],determin:[12,13,14],deva:0,develop:[2,6,22],devpol:2,devpollselector:2,diagnos:12,diagnosi:0,dict:[10,12],dictionari:[2,10,13,23],did:[2,12],didn:3,differ:[0,1,3,5,12,15,16,19,20,22,28,29],difficult:12,dir:10,direct:[12,20],directli:[1,12,13,15,17,21,27],directori:[5,6,26,27],dirnam:5,disabl:[2,7,17,23],disadvantag:25,discard:[2,12],disconnect:[2,5,23],discov:12,discret:29,disguis:29,dispatch:[5,7,8,27],distinct:12,distinguish:[2,12],distract:2,distribut:27,dmitri:[0,2],dmitrii:[0,2],dn:2,dnspython:[0,2],do_handshake_connect:2,do_handshake_on_connect:1,do_some_stuff:20,do_someth:16,doc:[2,20,26],docstr:2,doctest:8,document:[0,1,2,7,15,22],doe:[2,5,7,10,12,14,18,20,27],doesn:[2,3,5,7,12,13,20,21,25,27],don:[1,2,3,5,12,14,23,25,27],donagh:2,done:[0,1,2,3,5,13,18,20,25],donovan:[0,2,6],dostuff:18,doubl:[0,2],down:[0,2,3,19],download:27,downstream:12,dprog:12,draft:2,dramat:3,driven:[2,8,9,23],drop:[2,16,19],drug:29,du:0,due:[2,20],dump:27,dump_debug_info:13,dup:[0,2,23],duplex:2,duplic:2,dure:[2,6,13,25,27],dweimer:2,e:[1,2,5,8,12,13,16,17,25],each:[1,2,3,7,10,12,16,19,23,27,28],eai_nodata:2,earli:[2,16,23,25],easi:[2,3,7,23,26,27],easier:[2,5,12,27],easili:[3,13],easy_instal:2,echo:[3,8],echoserv:[2,5],ed:[2,10],edward:[0,2],eexist:2,effect:[5,12,13,29],effici:2,effort:14,either:[7,12,13,17,18,21,25,26,29],elabor:[22,23],elaps:[1,7,17],element:[3,25],elif:5,elig:17,elimin:[2,7],els:[2,5,12,17,19,21],emb:2,embed:23,emit:27,empti:[2,5,12,18,19,21,22,23],en_al:[3,5,8],enabl:[2,7],enchant:[0,2],encod:[0,2,22],encount:12,encrypt:23,end:5,endless:2,endpoint:29,engin:25,enotconn:2,enough:[16,27],enqueu:19,ensur:[1,2,7,12],enter:12,enthusiast:2,entir:[15,25,27],entri:[2,13,19,20],enum34:2,enumer:12,env:[2,5,23],environ:[0,2,3,5,7,8,22,23,27,28],environment:27,eof:5,epol:[2,7,27],epollselector:2,equal:[0,20],equival:[4,21,25],era:29,erdfelt:[0,2],erenst:[0,2],eric:[0,2],erpc:2,err:12,errno:[13,22],error:[0,2,5,13,15,22,23],errorhandl:13,especi:[2,14],essenc:[1,12],essenti:3,etc:2,eugen:0,evalu:27,even:[2,12,17,23],evenlet:23,event:[0,2,7,8,9,14,23,29],eventlet:[0,1,2,3,4,5,6,9,10,11,12,13,15,16,17,18,19,20,21,22,23,25,28,29],eventlet_hub:[2,4,7,27],eventlet_no_greendn:2,eventlet_threadpool_s:[4,28],eventlet_tpool_dn:2,eventlet_tpool_gethostbynam:2,eventu:12,everi:[1,2,5,7,12,13,14,19,20,23,25,28],everyth:[1,2,12,25,27],everywher:7,evid:3,evt:[2,15],exact:[0,2,29],exactli:[2,12,20,25,26],exampl:[0,1,2,3,8,13,15,17,21,22,23,25,26,27,28],exc:[2,12,15],exc_aft:2,exc_info:[2,15,17],exce:[13,18,20],exceed:[2,23],except:[0,1,2,3,5,13,14,15,16,17,19,21,23,25,29],exceptionsubclass:12,excess:[1,2,22],exec:2,execut:[1,2,3,10,13,14,16,17,21,23,27,28],execv:2,exercis:[5,27],exist:[1,2,7,12,13,16,18,27],exit:[2,5,16,17,23],expect:[2,23],expens:17,expir:2,expiri:2,explain:2,explicit:[2,12,13],explicitli:[1,2,7,12,17,25],express:[17,18],extens:[0,2,9],extern:[2,3,6,12],extrem:16,face:1,fact:[3,12],factor:27,fai:2,fail:[2,4,12,21,27],failur:[2,12],fall:3,fals:[1,2,5,12,14,17,18,19,20,21,23],famili:1,farm:[5,16],fashion:[2,26],fast:2,faster:[1,17,19],fastest:[7,17],favo:[0,2],favor:2,fcntl:2,fd:[0,2,5,7],featur:[1,2,5,21,23],feed:[3,8],feedpars:[3,5],feedscrap:[3,5],feng:0,fetch:[3,5,8,19,26],fetch_titl:[3,5],fetish:29,few:[2,3,4,6,22,25],fewer:[1,2],field:[2,23],figur:[0,14],file:[2,3,5,7,14,15,16,22,23,25,27],filenam:[16,27],filter:12,find:[1,8,12,22,23],findit:5,fine:[7,25],finer:27,finish:[12,16,17,23],finit:[1,17],fire:2,first:[1,2,4,7,12,13,17,18,19,21,25,26],five:12,fix:[0,2,12],flag:[0,2,12,21],flori:[0,2],flow:12,flush:[2,5],follow:[2,12,17,22,23,26,27],foo:[2,23,27],foo_class_test:27,foo_test:27,forbidden:5,forc:[4,28],forcibl:22,ford:[0,2],forestal:2,forev:[12,23],forgot:12,forgotten:7,fork:[2,6],form:[7,19],format:[12,14,15,23,27],format_date_tim:23,format_hub_listen:14,format_hub_tim:14,formerli:19,forth:[12,22],fortun:[25,28],forward:[2,6,8,23,28],found:[5,19],fraction:[15,17],frame:[2,17,22],framework:[5,6,7],free:[1,13,16,18,19],freebsd:2,friendli:1,from:[0,1,2,3,5,7,8,10,12,13,14,15,16,17,18,19,22,23,25,26,27,28,29],from_brows:22,ftplib:2,fukuchi:[0,2],full:[2,3,19,22,23,27],fuller:2,fulli:[2,5,23],func:[1,16,17,21,23],functool:18,fund:2,fundament:1,further:29,furthermor:2,futur:[2,8],g:[0,1,2,12,13,16,17,25],gao:2,garbag:13,garcia:2,garth:2,gasp:3,gaynor:2,gcb:0,gener:[1,2,8,9,12,13,15,17,22,23,27,29],genericconnectionwrapp:13,genrsa:26,geoff:[0,2],geoffrei:[0,2],georg:[0,2],gerrard:[0,2],get:[0,1,2,3,5,6,7,12,13,14,16,17,18,19,20,21,27,29],get_default_hub:[2,7],get_hub:[2,7],get_id:[11,28],get_nowait:19,getaddrinfo:2,getattr:2,getcurr:17,gethostbynam:[2,5],getsocknam:27,getsockopt:[0,2],geturl:5,gevent:2,gevorg:0,gh:[0,2],gholt:2,ghsa:2,gif:[3,5,8],gigabyt:3,github:[2,24],give:[0,2,13,18],given:[3,7,10,12,13,14,16,17,19,20,22],global:[1,2,3],go:[5,14,23],goal:1,godwin:0,goe:19,goetz:[0,2],gogreen:0,gohad:[0,2],gone:2,good:[0,1,3,5,7,15,17,23,25],goodspe:[0,2],googl:[2,3,5,8,21,26],got:[3,5,8,12,13,18],gotten:[12,19],govern:14,grace:[2,5,22],gracefulli:1,grainger:[0,2],grammat:2,grant:[0,2],granular:27,graph:12,great:[0,5],greater:[14,18,20],greatli:0,green:[0,1,2,3,5,8,9,23,26,28,29],green_fileobject:2,greendn:2,greenfil:2,greenfileio:2,greenio:2,greenlet:[2,6,7,10,11,14,17,19,23,28],greenletcontext:2,greenletexit:[17,23],greenlib:2,greenpil:[1,2,3,5,16],greenpip:2,greenpool:[1,2,3,5,8,9,12,23],greensocket:[0,2],greenssl:2,greensslcontext:2,greensslobject:2,greenthread:[0,2,5,7,8,9,10,13,14,16,18,19,20,21,24,28],gregori:[0,2],grinberg:[0,2],group:5,grow:3,grugq:[0,2],gt:17,guarante:12,guard:20,gubarev:[0,2],guemar:[0,2],gunicorn:2,guo:0,gysin:0,h1:23,ha:[0,1,2,3,5,6,7,10,12,13,15,16,17,18,20,21,22,23,25,26],had:[2,3,6,7,19],haferkamp:[0,2],haikel:[0,2],hand:[3,5,12,29],handi:3,handl:[0,1,2,3,5,10,12,22,23,26,27],handler:[2,5,22],hang:[2,23],hansen:[0,2],happen:[3,4,7,12,20,25],happili:2,hard:[12,14,18],hardcod:27,harder:27,hardi:0,harkot:[0,2],harri:0,hasn:17,hassl:8,have:[1,2,3,5,7,12,13,17,19,23,25,26,27,28],he:6,header:[0,2,9,22],headers_raw:2,hello:[5,22,23,26],hello_world:[5,22,23],help:[0,2,10,12,23],henc:12,here:[1,2,3,5,10,20,21,22,25,26,27],hi:6,high:[13,18],higher:2,hint:[0,23],histor:13,histori:8,hit:1,hk:23,hmm:12,hoerner:2,hog:2,hohberg:2,hold:[1,2,13,15,18],holger:0,holt:[0,2],hood:25,hook:[9,14],host:[1,2,6,13],hostnam:13,hostport:10,how:[1,2,3,5,8,10,12,13,14,15,20,23,27],howev:[6,12],hrachyshka:[0,2],html:[2,5,23,27],html_path:5,http:[2,3,5,6,8,18,21,23,24,26],http_pool:18,httpc:2,httpd:2,httpdate:2,httplib2:[2,18,25],httplib:2,httpprotocol:23,httpserver:2,hua:[0,2],hub:[0,2,4,8,14,28],hub_blocking_detect:14,hub_except:[14,17],hub_listener_stack:14,hub_prevent_multiple_read:14,hub_timer_stack:14,hudson:2,huge:27,hundr:23,hung:12,hussain:[0,2],hybrid:7,i1:[3,5,8],i:[1,2,3,5,6,7,8,16,17,25],ibarra:2,id:11,idea:[7,17],ideal:7,ident:[2,5],identifi:12,idiom:[1,3],idl:[2,13],ietf:23,ignor:[1,2,5,19,20,23],ihar:[0,2],illumin:1,imag:[3,5,8],imagin:[3,20],imap:[3,5,8,12,16],img:3,immedi:[1,12,15,17,19,20],imp:2,imped:27,implement:[0,1,2,5,6,7,8,9,12,14,15,18,19,20],implic:12,implicit:12,implicitli:12,import_patch:[1,3,5,25],importerror:2,imposs:2,improp:2,improperli:2,improv:[0,2,23],includ:[2,3,6,10,12,13,23,25,27],inclus:27,incom:[1,22,29],incompat:[0,2],incorpor:2,incorrect:[0,2],incorrectli:2,increas:[2,19],incred:[0,5,14],increment:[3,20],indetermin:[12,18],index:[2,8],indic:[5,12,18,19,23],indra:6,infinit:[2,19],info:[10,23],inform:[1,10,12,25],inherit:[23,25],init:2,initi:[2,12,19,20],inject:[2,29],input:[1,2,3,5,12,16,23],insecur:26,insensit:2,insert_id:[2,13],insid:23,inspect:[1,7,10,14],inspir:2,instal:[2,5,7,14,27],instanc:[1,7,12,13,17,18,21,22,23],instead:[1,2,3,4,7,12,13,14,16,20,25,27],instruct:2,integ:[2,16,17,20],integr:[0,2],intend:[13,21],intention:12,interact:[8,9,12,22],interchang:1,interest:[3,5,19],interfac:[1,2,25,26,28,29],interfer:17,interlock:20,intern:[2,7,10,13,20],internet:[2,5],interpret:[8,9],interrupt:[12,14],intl:[3,5,8],introduc:[0,2],invalid:[0,2],investig:2,invis:3,invit:2,invoc:28,invok:20,involv:[3,12,23,27],io:2,ioerror:2,ip:[3,5,23],ippolito:[0,6],ipv6:2,is_monkey_patch:25,is_timeout:2,ishaya:2,isinst:[12,28],isn:[2,3,27],isol:2,isotop:29,issu:[0,2,6,23],issuer:26,item:[12,13,15,16,18,19],iter:[0,1,2,3,5,12,16],itertool:16,its:[1,2,3,4,5,10,12,13,14,16,17,18,19,20,27,28],itself:[1,2,3,5,7,12,13,14,17,21,25,27,29],jacofouri:2,jago:0,jake:[0,2],jakub:[0,2],jame:0,jan:[0,2],janusz:[0,2],jarrod:0,jaum:2,jessica:2,jira:2,jm8w:2,job:[0,2,3,5,16],joe:0,johann:[0,2],john:0,johnson:0,join:[2,3,5,19],join_reactor:2,josh:[0,2],joshua:0,json:2,jsonhttp:2,juan:2,julien:2,junctur:14,junyi:2,just:[3,5,12,25,26,27],justdoit0823:2,justin:2,k:23,kaprielian:0,kartic:0,kasarher:2,kashirin:2,kasurd:0,keep:[2,5,21,26],keepal:[2,23],kei:[3,12,23,25,26,28,29],kent:0,kept:3,kernel:14,kerr:[0,2],kerrin:[0,2],kevent:2,kevin:0,keyboardinterrupt:5,keyerror:12,keyfil:23,keyword:[1,2,10,12,13,17,21,25],kill:[2,12,17,23],killal:2,kim:[0,2],kind:5,know:[1,2,7,12,14],known:[2,12],konstantin:[0,2],kortmann:2,kovari:[0,2],kqueue:[2,7,27],kqueueselector:2,krekel:0,krishnamurthi:0,kruglyak:[0,2],kuo:[0,2],kw:[1,11,13,16],kw_additional_modul:[1,25],kwan:0,kwarg3:23,kwarg4:23,kwarg:[2,10,13,16,17,23,28],kwd:[12,21],lab:[3,6,8],lack:[2,25,27],lambda:[5,18],languag:12,larg:[2,17],larger:20,lasso:[0,2],last:[2,12,15,21],lastli:27,late:25,later:[1,2,3,21,26],latin:2,launch:[1,3,7,12,16,23],lazi:7,lazili:2,lead:0,leak:2,learn:10,least:[1,2,17,27],leav:[1,10,12],lee:[0,2],left:[2,5,12],legaci:2,legal:2,len:[3,5,8,23],length:[2,5,22,23],lengthi:13,less:[2,16,19,20,23,29],let:[7,12],level:[2,23],levent:[0,2],lib:[2,6,27],liberal_regex_for_matching_url:5,libev:[2,7],libnam:12,librari:[0,1,2,6,7,8,12,19,24,28],libzmq:2,licens:[2,10],life:[6,13],lifespan:13,lifetim:25,lifoqueu:19,light:6,lightqueu:19,like:[1,2,5,7,12,13,14,17,19,20,22,23,25,26,27,28],limit:[1,2,3,5,13,16,18,20,21,27],linb:[0,2],linden:[2,3,6,8],line:[1,2,3,5,7,15,16,21,23,25,27],linger:2,link:[1,2,5,17],linkflag:12,linux:[2,7,27],lior:[0,2],list:[0,2,3,4,5,15,16,17,27],listen:[1,2,3,5,7,10,14,22,23,26,27],liter:[0,12,13],littl:[5,7,19,27,28],live:0,ll:[5,27,28],local:[1,7,8,9,10,27],localhost:[5,10,13,27],locat:[0,6],lock:[1,2,20],log:[0,2,14,22,23],log_format:[2,23],log_output:[2,23],log_x_forwarded_for:23,logfil:2,logger:23,logic:14,logo:[3,5,8],logutil:2,lon:2,longer:[2,13],look:27,loop:[1,2,3,5,6,7,10,17,23],loss:2,lost:2,lot:1,lowercas:[0,2],lowest:[7,19],lu:[0,2],luci:0,luke:0,luo:[0,2],m:5,macosx:2,mad:2,made:[2,5,8,19],magic:25,mai:[1,5,6,7,12,13,15,17,18,19,20,21,23,25,26,29],mail:0,main:[1,2,6,7,17,25,28],mainloop:7,maintain:[8,13],major:[1,2,19,28],majorek:0,make:[0,1,2,3,5,7,12,14,15,20,23,26,27,28],makefil:[2,5,21],makegreenfil:2,malcolm:[0,2],malicki:0,manag:[1,2,5,7,13,18,20],mandat:23,mani:[0,1,2,5,12,16,20,23,27,29],manner:[7,25],manual:2,manuel:2,map:13,marc:0,marcel:2,marcin:[0,2],marcu:[0,2],marhuenda:2,mark:[2,13,18],mark_as_clos:[2,7],mashup:5,mask:2,match:[2,18,28],matt:[0,2],matthew:[0,2],max:[12,16,18],max_ag:13,max_frame_length:22,max_http_vers:23,max_idl:13,max_siz:[13,18,23],maximum:[1,2,18,19,22,23],maximum_vers:2,maxsiz:19,mcarter:2,mccabe:2,mclaren:[0,2],mean:[2,4,5,7,12,13,19,23,25,27,29],meant:[2,6,10],measur:13,mechan:[2,23],memori:[1,2,3,16],mere:[2,17],merg:2,merritt:[0,2],messag:[2,5,22,23,29],meth:28,method:[0,1,2,3,7,12,13,17,18,19,20,22,23,25,28],michael:[0,2],middl:2,might:[7,12,15,17,21,22,23,25,27,28],miguel:[0,2],mike:[0,2],mikepk:[0,2],min:18,min_siz:[2,13,18],mind:21,minimum:[3,23],minimum_chunk_s:[0,2,23],minimum_vers:2,minimum_write_chunk_s:23,minor:2,miro:2,misc:2,mishra:[0,2],mismatch:[2,27],miss:[2,27],mission:2,mistak:[2,14],mit:8,mix:29,mode:2,modern:2,modif:2,modifi:[2,3,18,25],modul:[0,1,2,5,7,8,10,13,14,15,17,19,22,23,25,26,27,28,29],module_nam:25,modulenam:1,mollett:2,moment:[14,23],monkei:2,monkey_patch:[1,2,25],monkeypatch:[1,2,8,28],monoton:2,more:[1,2,3,5,6,8,10,12,16,18,19,20,22,23,25,26],most:[1,2,5,6,13,15,19,20,21,25,27],mostli:19,move:[2,5],mswindow:2,much:[1,2,12,13,20,26,27],multi:[2,8,19],multicast:29,multipl:[1,2,5,7,10,12,13,14,15,20,23,25,29],multiplex:7,multiprocess:19,multitudin:2,murau:[0,2],murthi:0,muscl:29,must:[2,12,13,15,17,18,20,21,23,25],my:21,my_func:28,my_handl:22,myapp:10,myfunc:10,myhandl:1,myhub:7,myobject:18,mypackag:7,mypool:18,mysock:21,mysql:2,mysqldb:[0,2,13],n:[3,5,23,26],nake:1,name:[1,2,6,7,12,13,23,25,27,28],nameerror:2,nameserv:2,nat:[0,2],nativ:[7,25,28],natur:12,nearli:1,necessari:[2,7,12,18,19,22],necessarili:12,need:[1,2,4,7,12,18,20,23,25,26],neg:[2,16,20],neither:12,net:[2,5],network:[2,6,8,25,27],neudorf:[0,2],never:[10,12,15,19,21],new_connect:5,new_siz:[16,18],new_sock:[3,5],new_url:5,new_writ:5,newli:12,next:[2,3,12,16,17,20],nginx:2,nica:[0,2],nice:[0,2,27],nick:[0,2],noblock:[0,2],nobodi:2,node:[12,26],non:[2,5,6,9,12,18,25,26],nonblock:[2,28],nonblockingli:1,none:[1,2,5,7,10,12,13,14,15,16,18,19,20,21,22,23,25],nonsens:2,nonsocket:2,nontrivi:12,nonzero:20,nor:[12,18],normal:[1,3,7,10,13,14,17,22,23,25,28,29],nose:[2,27],nosetest:27,notabl:2,notdon:12,note:[1,3,4,5,15,17,22,27],noth:17,notic:[2,12],notify_open:2,now:[2,12,13],nullari:18,number:[1,2,3,5,12,13,15,16,18,19,20,23,27],nvisit:5,o2:12,o:[0,6,7,16,17],obj:[13,18,28],object:[1,2,7,12,13,15,16,17,18,19,22,23,28],observ:[10,12],obtain:12,obviou:1,occasion:[17,27],occur:[15,21],octal:0,oden:0,off:[1,3,12,25],often:[2,12,14],ok:[3,5,20,23],old:[2,7],oldest:22,omit:[1,12,21,27],onc:[2,3,6,12,13,15],one:[1,2,3,4,5,7,10,12,13,15,16,17,18,19,20,21,23,25,26,27,28,29],ones:[1,5,7,12,25,27],onli:[0,1,2,4,5,7,8,12,13,15,17,18,19,21,23,25,26,28,29],onno:2,onto:28,opaqu:18,open:[0,1,2,3,5,6,8,13,16,21,23],openssl:[0,2,26],oper:[0,2,5,6,7,10,13,15,16,18,19,21,23,28],oppenheim:[0,2],opportun:17,opposit:20,optim:[2,3,4],option:[0,1,2,12,19,20,22,23,27,28],order:[3,6,7,12,13,18,19,20,22,27,28],order_as_stack:18,org:[3,5,8,23,24],organ:29,orient:29,orig_err:12,origin:[8,12,15,22],originalerror:12,orishoshan:[0,2],orlov:[0,2],os:[0,1,2,5,25,27,28],oserror:2,other:[1,2,3,7,12,13,15,17,18,19,20,22,23,25,27,28],otherwis:[17,19,20],our:5,out:[0,1,2,5,10,13,14,15,16,18,20,21,25],outbound:5,outgo:3,output:[2,12,27],outq:5,outsid:[12,21],over:[1,2,3,5,12,16,17,25,26],overal:[2,16],overhaul:2,overhead:[19,28],overrid:2,overridden:[2,23],overriden:[0,2,13,18],own:[5,7,12,16,17,27,28],owner:2,p:5,packag:[2,23,25,27],page:[0,2,5,8],pagel:[0,2],pai:0,pair:[2,12,23,25,29],parallel:[1,2,3,5,27],paramet:[1,2,12,13,16,21,23],paramiko:2,parent:[2,15,17,28],pars:[3,5],parse_q:2,part:[1,2,23],parti:7,partial:[2,12,18],particip:5,particular:[2,3,13,25,27],pascu:2,pass:[0,2,5,7,12,13,15,18,21,22,23,26],passwd:13,past:25,patch:[0,2,8,25],patcher:[0,2,25],patcher_test:2,path:[2,5,12,22],path_info:[2,5,22],pathlib:2,patienc:0,patrick:0,patrin:2,pattern:[1,5,8],paul:[0,2],pavel:6,payload:[22,23],peak:13,peer:29,pend:[1,12,21],pep333:23,pep:[0,2,25],per:[0,1,2,13,23],perform:[2,6,10,12,17,23,25],perhap:5,period:13,permessag:[0,2],peter:[0,2],phu:[0,2],physic:29,pick:[4,20],pie:12,pigmej:2,pile:[3,5],pin:2,ping:13,pipe:[5,22,28],place:[2,7,19,25,27],plai:2,plain:[2,3,5,13,23],plan:21,platform:[2,7,27],plch:2,pleas:[2,22,26],plu:[2,12],plugin:27,plumb:2,png:3,podoliaka:[0,2],point:[1,2,5,12,14,15],poll:[0,2,7,12],pollhub:2,pollselector:2,pollut:2,polyak:[0,2],pool:[1,2,3,4,5,8,9,12,14],pooledconnectionwrapp:13,popen4:2,popen:2,popul:18,port:[1,2,3,8,10,23,27],portant:[0,2],posit:[12,14,19,20,21],possibl:[1,2,7,12,17,19,20,25],post:[0,3,5,9],postgr:0,posthook:[2,23],potenti:2,power:[14,26],pprint:12,practic:[3,7,25],pre:[0,18],preced:0,precis:2,precompil:12,predict:14,preemptiv:1,prefer:[1,7,22],prematur:2,prepopul:12,present:[1,2,15,25,27,29],preserv:[2,15],preston:[0,2,6],pretend:23,pretti:5,prevent:[1,2,14,17],previou:[2,13,18],previous:[2,12],primari:[2,8,13,22,28],primit:[1,8,9,17,28],primitv:5,print:[1,2,3,5,8,12,13,14,15,16,17,18,23,26,27,28],print_funct:5,printout:27,prior:12,prioriti:19,priorityqueu:19,privat:[23,26],probabl:[2,7],problem:[2,3,12,21,25],problemat:23,proc:2,proce:12,process:[1,2,3,5,8,9,12,16,19,22,23],produc:[2,8,12,19,28],producer_consum:5,product:[3,12,14],profil:[0,2],program:[4,5,7,12],programmat:12,progress:12,project:[0,2,6,29],promot:7,proof:6,propag:2,propagateerror:12,proper:20,properli:[2,23],properti:[17,20,22],proport:16,protect:[2,3,14],protocol:[2,22,23],provabl:12,provid:[0,1,2,3,5,12,13,18,21,22,23,25,27,28,29],provision:23,proxi:[0,2,3,13,28],psycopg2:[2,13,25],psycopg:[2,25],pub:2,pull:[0,2],punct:5,purpos:[2,3,26,27],push:[5,20],put:[2,5,7,13,15,18,19,23,29],put_nowait:19,putter:19,py27:2,py2:2,py37:2,py39:2,py3:2,py3k:2,py:[0,2,5,15,22,23,26,27],pycon:[2,6],pycurl:2,pyevent:[2,7,28],pygtk:0,pyobj:2,pyopenssl:[1,2,8],pypi:[0,2,5],pytest:2,python2:2,python3:[0,2],python:[0,1,2,3,5,6,7,9,12,23,24,25,26,27,28],pythonpath:[5,27],pyzmq:[2,24],q:5,qi:2,qsize:19,qthcn:0,quad:2,quan:[0,2],quantiti:16,queri:[2,13],question:[0,12],queu:[1,29],queue:[1,2,5,8,9,15,25,29],quick:1,quickli:5,quirk:0,quit:[1,5,16,25,27],r:[0,2,5,16,23],race:2,radioact:29,radix:0,rai:29,rais:[1,2,5,7,12,13,14,15,16,17,19,20,21,22,23],ralf:[0,2],ramakrishnan:[0,2],ran:27,rand:2,random:[2,5,20,28],rang:5,rare:[2,21,25],rather:[1,2,3,5,12,27],rational:9,raw_path_info:2,rawconnectionpool:13,raylu:[0,2],raymon:2,raymond:0,rcvtimeo:2,rdtype:2,re:[2,5,15,21,25,26,28],reach:20,reactor:2,read:[0,1,2,3,5,7,8,14,21,23,26,27],read_chat_forev:5,readabl:[1,2],readal:2,reader:[2,3,5],readi:[2,7,12,15],readlin:[0,2,3,5,21],readm:0,readuntil:2,real:28,realli:14,realtim:12,reason:[12,13,25,27,28],rebuild:[2,12],receiv:[2,3,14,19,29],recent:[2,15,19,21],recommend:12,reconnect:29,record:[12,14],recurs:[2,8,12],recursionerror:2,recursive_crawl:5,recv:[2,3,5],recv_into:2,red:6,redbo:2,reduc:[0,2],redund:2,reentrant:[2,16],ref:2,refactor:2,refer:[1,2,8,13,15,25],reflect:[2,12],regard:0,regardless:[1,2,12,17],regist:[7,14],register_at_fork:2,regular:[1,2,5],reimplement:2,reimport:2,rel:2,relat:[1,2,8,16,25],relationship:29,releas:[2,20],relev:12,reli:[20,25],reliabl:[2,29],reload:5,remain:[8,13,23,28],remot:2,remote_port:[0,2],remov:[2,5,8,13,14,17,19],renam:2,render:0,repeatedli:[3,15],replac:[2,12,25],report:[0,2,12,19,27],repr:[5,26],repres:[1,12,13,16,20,28],represent:2,repro:0,req:26,request:[0,1,2,3,5,8,10,12,22,23,26],request_lin:23,request_method:5,requir:[1,2,5,6,7,12,13,20,23,25],rescu:25,research:29,resembl:19,reset:[2,15],resiz:[2,16,18,19],resolut:14,resolv:[2,5],resourc:[8,9,14,20],resourcewarn:2,respect:[0,2,3,5,12,19],respond:[0,3,23],respons:[0,2,9,22],rest:[1,10,12,13],restart:12,restor:25,restrict:[1,28],restructur:7,restserv:6,result:[0,1,2,3,5,12,13,15,16,17,18,21],result_from_a:12,result_from_zlib:12,resum:[2,10,12,14,19],retri:[0,2],retriev:[1,3,12,16,17,19],return_valu:12,retval:15,reus:[13,15],reuse_addr:1,reuse_port:1,revers:20,review:2,rfc3493:2,rfc7231:23,rfc:[2,23],rfk:[0,2],rhel:2,rhode:2,right:[2,17,18],risk:16,rivera:0,rlock:2,rm:2,robinson:0,robot:5,robust:[2,3],rollback:13,roman:[0,2],root:13,routin:18,rss:3,rtyler:2,ru:5,rudd:0,ruijun:[0,2],rule:[10,25],run:[0,1,2,3,5,6,7,8,9,12,14,16,17,23,26,27,28],runner:2,running_kei:12,runtim:[18,25],runtimeerror:15,rw:5,ryan:[0,2],s33kr1t:13,s:[0,1,2,3,4,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23,25,26,27,28],safe:[1,2,7,25,28],safeti:5,sai:12,sake:26,salmon:[0,2],sam:2,same:[0,1,2,3,5,6,7,10,12,14,15,16,17,20,21,22,23,25,26,27],sampl:23,samuel:[0,2],saranwrap:2,save:[0,1],saw:5,scenario:23,schedul:[1,2,6,7,17,21],schema:13,scheme:2,schmir:[0,2],schmitt:0,scope:[2,7],scott:[0,2],scraper:[3,8],script:2,sean:[0,2],search:[5,8],second:[0,1,2,7,13,14,15,17,18,19,21],secondlif:[2,26],secret:29,section:[21,23],secur:[2,23,26],sedov:2,see:[1,2,4,5,7,12,14,15,17,21,22,25,27],seed:5,seek:2,seem:5,seen:5,select26:2,select:[0,1,2,7,13,25],select_db:13,selector:2,selectselector:2,self:[10,15,18,26],sem:20,semant:[2,20,29],semaphor:[0,2,8,9],send:[2,5,15,22,23],send_except:[2,15],send_hundred_continue_head:2,send_hundred_continue_respons:23,sendal:[0,2,3,5],sender:5,sendto:2,sens:27,sensibl:[2,27],sent:[2,23],separ:[1,2,16],sequenc:[2,12,25],sergei:[0,2],sergeyev:[0,2],serial:[12,22],serv:[1,2,10,12,23,27],serve_forev:2,server:[1,2,8,9,10,26,27,29],server_cap:13,server_ev:23,server_hostnam:2,server_sid:[1,23],server_sock:27,servic:3,session:1,set:[1,2,5,10,12,13,14,17,18,20,21,22,23,26,28],set_accept_st:26,set_character_set:13,set_hundred_continue_response_head:23,set_isolation_level:[2,13],set_nonblock:2,set_num_thread:2,set_server_opt:13,set_sql_mod:13,setitim:[2,14],setter:2,settimeout:[0,2],setup:[2,12,27,29],setuptool:2,sever:[12,13],seyeong:[0,2],sha1:26,share:[1,13,14],shaun:[0,2],shaw:2,shepelev:[0,2],ship:2,shop:26,shorter:14,shorthand:12,should:[1,2,12,15,17,20,21,22,23,25,28],shouldn:2,show:[3,5],show_valu:14,show_warn:13,shown:[12,23],shutdown:[2,13,26],side:3,sigalarm:14,sigchld:2,sign:[20,26],signal:14,signatur:[2,17],signific:2,silenc:21,silent:4,similar:[2,15,19],similarli:12,simmon:[0,2],simon:0,simpl:[3,5,8,12,22,23],simplehttpserv:2,simplejson:2,simpler:28,simplest:28,simpli:[1,2,7,10,12,13,22,23,25,27],simplic:[1,26],simultan:[0,2,3,5,29],sinc:[5,25,28],singh:0,singl:[1,2,10,12,13,15,16,18,22,23,25],singleton:7,sit:1,site:[5,23],situ:10,situat:[12,16,20],six:[2,5],size:[2,4,12,16,18,19,23,28],size_or_pool:16,skip:[2,27],skip_if_no_ssl:2,skirko:[0,2],slant:0,sleep:[1,2,5,15,17,21,25],slide:0,slight:25,slightli:[2,3,22,23],slot:[16,19],slow:25,small:[0,2,5,23],smart:[2,27],snapshot:12,sndhwm:2,so:[0,1,2,3,4,5,7,10,12,13,15,17,20,21,23,25,27],so_reuseaddr:[0,1,2],so_reuseport:2,sock:[1,2,10,22,23,26],sock_dgram:29,sock_stream:[26,29],socket:[0,1,2,3,7,8,10,14,17,22,23,25,26,28,29],socket_timeout:[2,23],socketconsol:10,socketserv:25,softwar:13,some:[1,2,3,5,6,7,12,13,17,18,20,21,25,26,27,28,29],someon:[2,12],someth:[2,3],sometim:[2,25,27],somewhat:3,soon:12,soren:[0,2],sorri:2,sort:[5,12,25],sottil:0,soup:27,sourc:[0,2,5,6,8,27],soviet:29,spandex:29,spare:6,spawn:[2,3,5,8,10,12,15,16,17,23,26,27],spawn_aft:[1,2,17],spawn_after_loc:17,spawn_mani:12,spawn_n:[1,3,5,15,16,17],speak:29,spec:[22,23],special:[7,12,21],specif:[1,7,12,13,17,23,27],specifi:[4,7,10,12,14,15,17,18,20,23,25],spent:6,spew:14,sporad:0,spread:2,sqlite:2,sqlstate:13,squeaki:2,squelch:0,sriniva:[0,2],ssl:[0,1,2,8,9,22,25],ssl_listen:2,ssl_version:1,sslconnect:2,sslcontext:2,sslsocket:[2,26],sslv23_method:26,sslwantreaderror:2,stack:[5,14,15,17],stacktrac:15,stand:2,standalon:16,standard:[1,2,3,5,8,9,19,26],stanescu:0,stanworth:[0,2],starmap:16,start:[1,2,3,5,6,7,12,17,23],start_respons:[3,5,23],start_url:5,starting_id:28,startup:2,stasiak:[0,2],stat:13,state:[6,10,14,25],statement:[1,2,12,13,18,21,25],statu:23,status_cod:23,stawiarski:[0,2],stderr:23,stdin:15,stdlib:[2,27],stdlib_queu:19,stdout:14,stefan:[0,2],stefano:0,step:2,steven:[0,2],stick:[5,10,28],still:[2,12,13,21,22],stinner:[0,2],stock:[0,2],stolen:29,stomp:2,stop:[1,2,6,12,14],stopiter:[12,16],stopserv:1,storag:[8,9],store:[3,12,15],store_result:13,str:[2,12,23],straightforward:2,straightforwardli:12,strang:2,stream:29,strict:[12,29],strictli:[12,20],string:[2,3,12,14,21,22,23,28],string_liter:13,strip:[2,5],structur:[1,3],stuart:[0,2],stub:27,stuck:12,stuf:1,stuff:[1,2],style:[3,6],sub:[2,27],subclass:[2,12,13,18,19],submiss:0,submodul:2,subprocess:[0,2],subscrib:2,subsect:1,subsequ:[12,19],subset:13,substanti:7,subtl:2,subtli:20,succe:12,succeed:12,success:2,successfulli:[12,17],suffic:12,suggest:0,suit:[2,13,16],suitabl:2,sullivan:0,summari:[1,27],supersocket:2,suppli:[1,7,10,17,23,28],support:[0,2,5,7,9,19,22,25,27,29],suppos:[12,13,18],suppress:[2,21],suppress_ragged_eof:[1,2],sure:[0,1,2,7,20],suspend:[1,7,16,20],svn:6,swallow:2,swap:25,swap_in:2,swap_out:2,switch_out:2,switchingtodeadgreenlet:2,sy:[2,15,23,25],synchron:[2,19,29],syntax:2,syntaxwarn:2,syscal:[0,2],system:[1,2,7,14,25,27],systemexit:5,szotten:[0,2],t:[1,2,3,5,7,12,13,14,17,20,21,23,25,27],takashi:2,take:[1,6,12,13,15,20,29],taken:13,tal:0,talk:[2,6,8],tarbal:[2,27],target:[13,17],task:[2,7,16,19],task_don:19,taso:0,tavi:[0,2],tcp:[1,2,29],tcp_listen:2,tcp_nodelai:2,tcp_quickack:2,tcp_server:2,teardown:29,technic:23,tediou:5,tegel:[0,2],tell:[14,19,27],telnet:[5,10],templat:23,tempmod:27,temporarili:25,ten:3,tend:13,term:[1,3,8],termin:[1,5,12,14,17,22,26],tesler:[0,2],tess:0,test:[0,2,8,12,13,23,26],test_024a_expect_100_continue_with_head:23,test_024b_expect_100_continue_with_headers_multiple_chunk:23,test_024c_expect_100_continue_with_headers_multiple_nonchunk:23,test_import_patched_default:2,text:[2,3,5,23],than:[1,2,3,5,12,13,16,17,18,19,20,23,25,26,27],thank:[2,8],thei:[1,2,3,4,5,7,12,13,15,16,19,23,25,27,28],them:[2,7,12,13,14,15,20,27,28,29],themselv:28,therebi:3,therefor:[2,14,25,28],therein:2,thereof:15,thi:[1,2,3,4,5,7,8,10,12,13,14,16,17,18,19,20,21,22,23,25,26,27,28],thier:0,thing:[5,10,13,15,16,17,18,20,28],third:7,thoma:[0,2],those:[2,3,5,12,23,27,28],though:[1,2,12,17,20,23,27],thousand:3,thread:[0,1,2,3,5,7,8,9,19,20,23,25],thread_id:13,threadloc:2,threadpool:[2,4],threadpoolexecutor:2,three:[2,13],through:[5,12,13,21],throughout:13,throw_arg:17,thrown:27,thu:[2,6,7,12,16,20,23,29],ti:3,tian:[0,2],tim:[0,2],time:[1,2,3,6,12,13,14,15,16,17,18,19,20,21,22,23,25,28,29],timeout:[0,1,2,5,7,8,9,14,15,18,19,20,23],timeout_exc:7,timeout_valu:21,timeoutexpir:2,timer:[2,7,13,14,21],timestamp:23,titl:[3,5],toe:2,toggl:14,token:[13,18],tokenpool:[13,18],told:2,toma:2,tomaz:[0,2],too:[2,5,7,12,13,20,21],took:21,tool:[8,9,23,27],top:2,topolog:12,total:2,tour:3,tox:2,tpool:[0,2,4,8,14],tpool_except:14,tpooledconnectionpool:[2,13],trace:[2,14,15,17],trace_nam:14,traceback:[2,15,21,23],track:[0,2,13],trampolin:[2,6,7],transact:23,transfer:[2,29],transpar:[6,26,29],trap_error:2,travi:[0,2],treat:2,tree:[6,12,27],tri:7,trick:28,tricki:7,trigger:[15,21],trim:2,truli:[2,5,18],trunk:6,tsafe:2,tucker:0,tune:10,tupl:[1,2,10,12,15,17,19,23],turn:[7,12],tushar:[0,2],tutori:9,tweak:[2,22],twice:12,twist:[0,2],twistedr:2,twistedutil:2,two:[1,5,12,15,18,21,29],txt:5,tyler:[0,2],type:[2,3,5,10,12,17,21,23,28,29],typeerror:2,typic:[5,12,19],typo:[0,2],udp:2,ultim:12,un:25,unavail:29,unavoid:17,unblock:[12,19,20],unbound:20,uncaught:[1,12],uncompress:[2,22],uncov:0,under:[2,8,22,25],underli:[2,12,23,26],understand:[1,2,4,8,27],unencrypt:23,unexpect:21,unexpectedli:[7,28],unfinish:[2,13,19],unicod:[2,22],unidirect:5,unidirection:5,uniform:12,uniqu:[12,18],unit:[1,2,27],unittest:[6,27],univers:[2,8,9],universal_newlin:2,unix:[2,23],unknown:12,unless:12,unlik:[12,19],unlink:[0,2,17],unlock:2,unmodifi:2,unnecessari:2,unpack:2,unpatch:2,unpredict:1,unqualifi:2,unrel:0,unreli:29,unschedul:15,unspecifi:12,unspew:14,until:[1,2,3,7,12,15,16,17,18,19,20,28],unus:[2,13],unwrap:2,up:[2,5,7,10,12,13,14,16,17,18,19,20,23,26,27],updat:[2,6],upgrad:[0,2],upload:12,upon:[13,25],upper:[3,20],upstream:[2,12],urban:[0,2],url:[2,3,5,8,23,26],url_length_limit:23,url_match:5,url_regex:5,url_schem:[2,23],urllib2:[0,2,5,21,26],urllib:[3,5,8,26],urlopen:[0,3,5,8,26],us:[0,1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,25,27,28,29],usabl:23,usag:[2,3,8,12],use_certificate_fil:26,use_hub:[2,4,7],use_privatekey_fil:26,use_result:13,useless:[12,13],user:[2,4,8,13,23,29],usr:5,usual:27,utf:[2,22],util:[2,14],uuid:12,v20:2,v2:2,v:[0,2],val:0,valid:22,valu:[1,2,3,5,10,12,13,14,15,16,17,20,21,22,23,28],value1:12,value2:12,valueerror:[2,19,20],vanderlinden:[0,2],variabl:[2,7,8,10,22,23,27,28],variant:19,variou:[2,3],varrazzo:[0,2,25],vast:28,vatamaniuc:[0,2],ve:[12,13,25],vector:22,verbos:[1,2],veri:[1,2,3,5,12,13,18,20,21],verifi:27,version:[1,2,3,10,22,23,24,25,26,27],versu:12,via:[2,7,10,18,27,28],victor:[0,2],violat:23,vishvananda:2,visit:15,volunt:0,vs:23,w:[0,2,5],wa:[2,3,6,10,12,19,20,21,27],wai:[1,2,5,10,12,15,17,18,22,23,25,27,28],wait:[0,2,5,7,12,13,14,15,16,17,18,19,20,22,23,26],wait_each:12,wait_each_except:12,wait_each_success:12,wait_on:15,waital:[5,12,16],waiter:15,waiting_for:12,waitpid:2,wake:[0,2,7,13,20],wall_second:23,want:[1,2,3,12,13,17,23,27,28],warn:22,warning_count:13,water:[13,18],we:[0,1,2,3,5,12,25,27],weak:25,web:[3,8,22,23],webcrawl:[0,5],webob:0,weboscket:0,websocket:[0,2,8,9,23],websocket_chat:5,websockets13:2,websocketwsgi:[5,22],weight:6,weird:[2,27],well:[2,5,12,23,25,27],were:[0,2,3,5,6,12,19,27],what:[1,2,4,7,8,12,14,25,27],whatev:[12,13,17,18],wheel:2,when:[1,2,3,5,6,7,10,12,13,14,15,16,17,18,19,20,21,23,25,27,28,29],whenev:[13,18,19],where:[2,3,12,13,15,19,23,29],wherea:25,whether:[2,12,13,14,17,19,23,25],which:[1,2,3,5,7,12,13,14,15,16,17,18,20,22,23,25,27,28],whitespac:2,whitnei:0,who:[2,8,13,18],whole:[2,16],whoop:15,whose:12,why:[2,7],wiki:2,william:[0,2],windisch:[0,2],window:[0,2],winerror:2,with_timeout:[2,21],within:[2,8,9,12,17,19,21],without:[2,7,12,13,14,16,17,19,20,21],wodg:27,woken:[15,19],won:[1,3,7,21],wonder:6,word:[2,12,13,18],work:[1,2,3,5,6,8,12,13,16,19,22,23,25,26,27,28],workaround:2,worker:[3,5,16],world:[5,6,8,22,23,28],would:[1,2,12,13,20],wrap:[2,12,21,22,23,26,27,28],wrap_:2,wrap_pipes_with_coroutine_pip:2,wrap_socket:[1,2],wrap_socket_with_coroutine_socket:2,wrap_ssl:[0,1,2,23],wrapper:[2,12,13,28],wright:[0,2],wrii:0,write:[2,5,6,7,8,14,25,26],writelin:2,writer:[2,5],written:[6,23,24],wrong:2,ws:[5,22],wsgi:[0,2,3,8,9,22],wsgi_app:23,wsgi_test:23,wsl:2,ww:[3,5,8],www:[3,5,8,21,24],x509:26,x:[5,23],xreadlin:2,y3:[3,5,8],yamamoto:2,yandex:5,yang:[0,2],yashwardhan:0,ye:3,yet:[2,6,12,22,27],yield:[1,2,3,10,12,13,14,17,18,21,23,25,28],yimg:[3,5,8],you:[1,2,3,5,6,7,8,10,12,13,14,15,17,18,21,22,23,25,26,27,28,29],young:0,your:[0,1,2,5,7,12,26,27],yourself:[5,7],yuichi:0,yule:0,zed:2,zero:[16,18,19,20],zeromq:[0,2,8,24],zeroreturnerror:2,zhang:[0,2],zhengwei:2,ziegler:0,zip:5,zipkin:2,zlib:12,zmq:[0,2,8,9,29]},titles:["Authors","Basic Usage","0.33.0","Design Patterns","Environment Variables","Examples","History","Understanding Eventlet Hubs","Eventlet Documentation","Module Reference","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">backdoor</span></code> \u2013 Python interactive interpreter within a running process","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">corolocal</span></code> \u2013 Coroutine local storage","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">dagpool</span></code> \u2013 Dependency-Driven Greenthreads","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">db_pool</span></code> \u2013 DBAPI 2 database connection pooling","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">debug</span></code> \u2013 Debugging tools for Eventlet","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">event</span></code> \u2013 Cross-greenthread primitive","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">greenpool</span></code> \u2013 Green Thread Pools","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">greenthread</span></code> \u2013 Green Thread Implementation","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">pools</span></code> - Generic pools of resources","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">queue</span></code> \u2013 Queue class","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">semaphore</span></code> \u2013 Semaphore classes","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">timeout</span></code> \u2013 Universal Timeouts","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">websocket</span></code> \u2013 Websocket Server","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">wsgi</span></code> \u2013 WSGI server","<code class=\"xref py py-mod docutils literal notranslate\"><span class=\"pre\">eventlet.green.zmq</span></code> \u2013 \u00d8MQ support","Greening The World","Using SSL With Eventlet","Testing Eventlet","Threads","Zeromq"],titleterms:{"0":2,"1":2,"10":2,"100":23,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"2":[2,13],"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":2,"28":2,"29":2,"3":2,"30":2,"31":2,"32":2,"33":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":2,"\u00f8mq":[24,29],"class":[19,20],"function":[1,7],"import":25,If:0,The:25,To:0,With:26,api:[1,29],argument:13,author:0,backdoor:10,basic:1,bug:0,chat:5,client:3,connect:[5,13],constructor:13,consum:5,content:[8,12],continu:23,contributor:0,control:1,conveni:1,coroloc:11,coroutin:11,coverag:27,crawler:5,cross:15,dagpool:12,databas:13,databaseconnector:13,db_pool:13,dbapi:13,debug:14,depend:12,design:3,dispatch:3,doctest:27,document:[8,29],driven:12,e:0,echo:5,environ:4,event:15,eventlet:[7,8,14,24,26,27],exampl:[5,12],except:12,extens:23,feed:5,find:0,forward:5,gener:18,green:[16,17,24,25],greenpool:16,greenthread:[1,12,15,17],hassl:0,header:23,histori:6,hook:23,how:7,hub:[7,27],i:0,implement:17,indic:8,interact:10,interpret:10,introspect:12,lab:0,librari:[25,27],licens:8,linden:0,local:11,maintain:0,modul:[9,12],monkeypatch:25,more:7,multi:5,network:1,non:23,origin:0,patch:1,pattern:3,pool:[13,16,18,28],port:5,post:[12,23],preload:12,primari:1,primit:15,process:10,produc:5,propag:12,pyopenssl:26,python:[8,10],queue:19,rational:12,recurs:5,refer:9,relat:7,resourc:18,respons:23,run:10,scan:12,scraper:5,semaphor:20,server:[3,5,22,23],simpl:28,socket:5,spawn:1,ssl:[23,26],standard:[23,25,27],storag:11,success:12,support:[8,23,24],tabl:8,test:27,thank:0,thread:[16,17,28],timeout:21,tool:14,tpool:28,tutori:12,understand:7,univers:21,us:26,usag:1,user:5,variabl:4,version:8,web:5,websocket:[5,22],what:29,who:0,within:10,work:7,world:25,write:27,wsgi:[5,23],x:2,you:0,zeromq:29,zmq:24}}) \ No newline at end of file
diff --git a/doc/ssl.html b/doc/ssl.html
index 33f1725..688c06d 100644
--- a/doc/ssl.html
+++ b/doc/ssl.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Using SSL With Eventlet &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Using SSL With Eventlet &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="examples.html" title="Examples"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Using SSL With Eventlet</a></li>
</ul>
</div>
@@ -59,7 +59,7 @@
</div>
<section id="pyopenssl">
<h2>PyOpenSSL<a class="headerlink" href="#pyopenssl" title="Permalink to this headline">¶</a></h2>
-<p><code class="xref py py-mod docutils literal notranslate"><span class="pre">eventlet.green.OpenSSL</span></code> has exactly the same interface as <a class="reference external" href="https://launchpad.net/pyopenssl">pyOpenSSL</a> <a class="reference external" href="http://pyopenssl.sourceforge.net/pyOpenSSL.html/">(docs)</a>, and works in all versions of Python. This module is much more powerful than <code class="xref py py-func docutils literal notranslate"><span class="pre">socket.ssl()</span></code>, and may have some advantages over <a class="reference external" href="https://docs.python.org/3/library/ssl.html#module-ssl" title="(in Python v3.9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a>, depending on your needs.</p>
+<p><code class="xref py py-mod docutils literal notranslate"><span class="pre">eventlet.green.OpenSSL</span></code> has exactly the same interface as <a class="reference external" href="https://launchpad.net/pyopenssl">pyOpenSSL</a> <a class="reference external" href="http://pyopenssl.sourceforge.net/pyOpenSSL.html/">(docs)</a>, and works in all versions of Python. This module is much more powerful than <code class="xref py py-func docutils literal notranslate"><span class="pre">socket.ssl()</span></code>, and may have some advantages over <a class="reference external" href="https://docs.python.org/3/library/ssl.html#module-ssl" title="(in Python v3.10)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a>, depending on your needs.</p>
<p>For testing purpose first create self-signed certificate using following commands</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ openssl genrsa 1024 &gt; server.key
$ openssl req -new -x509 -nodes -sha1 -days 365 -key server.key &gt; server.cert
@@ -177,7 +177,7 @@ $ openssl req -new -x509 -nodes -sha1 -days 365 -key server.key &gt; server.cert
<li class="right" >
<a href="examples.html" title="Examples"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Using SSL With Eventlet</a></li>
</ul>
</div>
diff --git a/doc/testing.html b/doc/testing.html
index b1da91b..bcb4e47 100644
--- a/doc/testing.html
+++ b/doc/testing.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Testing Eventlet &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Testing Eventlet &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="hubs.html" title="Understanding Eventlet Hubs"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Testing Eventlet</a></li>
</ul>
</div>
@@ -173,7 +173,7 @@
<li class="right" >
<a href="hubs.html" title="Understanding Eventlet Hubs"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Testing Eventlet</a></li>
</ul>
</div>
diff --git a/doc/threading.html b/doc/threading.html
index 9650740..ba42c8b 100644
--- a/doc/threading.html
+++ b/doc/threading.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Threads &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Threads &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="ssl.html" title="Using SSL With Eventlet"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Threads</a></li>
</ul>
</div>
@@ -159,7 +159,7 @@ of some overhead.</p>
<li class="right" >
<a href="ssl.html" title="Using SSL With Eventlet"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Threads</a></li>
</ul>
</div>
diff --git a/doc/zeromq.html b/doc/zeromq.html
index 40cedaf..15b1f54 100644
--- a/doc/zeromq.html
+++ b/doc/zeromq.html
@@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
- <title>Zeromq &#8212; Eventlet 0.32.0 documentation</title>
+ <title>Zeromq &#8212; Eventlet 0.33.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
@@ -35,7 +35,7 @@
<li class="right" >
<a href="threading.html" title="Threads"
accesskey="P">previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Zeromq</a></li>
</ul>
</div>
@@ -129,7 +129,7 @@ while simultaneously accepting incoming connections from multiple endpoints boun
<li class="right" >
<a href="threading.html" title="Threads"
>previous</a> |</li>
- <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.32.0 documentation</a> &#187;</li>
+ <li class="nav-item nav-item-0"><a href="index.html">Eventlet 0.33.0 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Zeromq</a></li>
</ul>
</div>