Skip to content

Commit

Permalink
Merge pull request #65 from jodal/doc-build-improvements
Browse files Browse the repository at this point in the history
Doc build improvements
  • Loading branch information
Lawouach committed Dec 2, 2012
2 parents 54ab115 + 8c613df commit e6e9879
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
*.egg-info
*.pyc
.tox
docs/_build/
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath(os.path.join(
os.path.dirname(__file__), '..')))

# -- General configuration -----------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions ws4py/framing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(self, opcode=None, body='', masking_key=None, fin=0, rsv1=0, rsv2=0
.. code-block:: python
:linenos:
>>> test_mask = 'XXXXXX' # perhaps from os.urandom(4)
>>> f = Frame(OPCODE_TEXT, 'hello world', masking_key=test_mask, fin=1)
>>> bytes = f.build()
Expand Down
8 changes: 4 additions & 4 deletions ws4py/server/cherrypyserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ def handle(self, ws_handler, peer_addr):
"""
Tracks the provided handler.
@param ws_handler: websocket handler instance
@param peer_addr: remote peer address for tracing purpose
:param ws_handler: websocket handler instance
:param peer_addr: remote peer address for tracing purpose
"""
cherrypy.log("Managing WebSocket connection from %s:%d" % (peer_addr[0], peer_addr[1]))
th = threading.Thread(target=ws_handler.run, name="WebSocket client at %s:%d" % (peer_addr[0], peer_addr[1]))
Expand Down Expand Up @@ -340,9 +340,9 @@ def broadcast(self, message, binary=False):
Broadcasts a message to all connected clients known to
the server.
@param message: a message suitable to pass to the send() method
:param message: a message suitable to pass to the send() method
of the connected handler.
@param binary: whether or not the message is a binary one
:param binary: whether or not the message is a binary one
"""
for ws_handler in self.pool:
try:
Expand Down
2 changes: 1 addition & 1 deletion ws4py/server/geventserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UpgradableWSGIHandler(gevent.pywsgi.WSGIHandler):
If an HTTP request comes in that includes the Upgrade header, it will add
to the environment two items:
``upgrade.protocol` `
``upgrade.protocol``
The protocol to upgrade to. Checking for this lets you know the request
wants to be upgraded and the WSGI server supports this interface.
Expand Down

0 comments on commit e6e9879

Please sign in to comment.