Commit e81437f7 authored by ashutosh-mishra's avatar ashutosh-mishra

Typo fix. Corrected spellings.

parent 700be0ef
...@@ -233,7 +233,7 @@ class FileObjectPosix(object): ...@@ -233,7 +233,7 @@ class FileObjectPosix(object):
@property @property
def closed(self): def closed(self):
"""True if the file is cloed""" """True if the file is closed"""
return self._closed return self._closed
def close(self): def close(self):
......
...@@ -32,7 +32,7 @@ class Semaphore(object): ...@@ -32,7 +32,7 @@ class Semaphore(object):
# _notifier are such attributes, and gevent.thread subclasses # _notifier are such attributes, and gevent.thread subclasses
# this class. Thus, we carefully manage the lifetime of the # this class. Thus, we carefully manage the lifetime of the
# objects we put in these attributes so that, in the normal # objects we put in these attributes so that, in the normal
# case of a semaphore used correctly (dealloced when it's not # case of a semaphore used correctly (deallocated when it's not
# locked and no one is waiting), the leak goes away (because # locked and no one is waiting), the leak goes away (because
# these objects are back to None). This can also be solved on PyPy # these objects are back to None). This can also be solved on PyPy
# by simply not declaring these objects in the pxd file, but that doesn't work for # by simply not declaring these objects in the pxd file, but that doesn't work for
......
...@@ -437,6 +437,6 @@ def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None): ...@@ -437,6 +437,6 @@ def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None):
def sslwrap_simple(sock, keyfile=None, certfile=None): def sslwrap_simple(sock, keyfile=None, certfile=None):
"""A replacement for the old socket.ssl function. Designed """A replacement for the old socket.ssl function. Designed
for compability with Python 2.5 and earlier. Will disappear in for compatability with Python 2.5 and earlier. Will disappear in
Python 3.0.""" Python 3.0."""
return SSLSocket(sock, keyfile, certfile) return SSLSocket(sock, keyfile, certfile)
...@@ -216,7 +216,7 @@ class SSLSocket(socket): ...@@ -216,7 +216,7 @@ class SSLSocket(socket):
socket.__init__(self, _sock=sock._sock) socket.__init__(self, _sock=sock._sock)
# The initializer for socket overrides the methods send(), recv(), etc. # The initializer for socket overrides the methods send(), recv(), etc.
# in the instancce, which we don't need -- but we want to provide the # in the instance, which we don't need -- but we want to provide the
# methods defined in SSLSocket. # methods defined in SSLSocket.
for attr in _delegate_methods: for attr in _delegate_methods:
try: try:
......
...@@ -227,7 +227,7 @@ def install(): ...@@ -227,7 +227,7 @@ def install():
# Added by gevent # Added by gevent
# We have to defer the initilization, and especially the import of platform, # We have to defer the initialization, and especially the import of platform,
# until runtime. If we're monkey patched, we need to be sure to use # until runtime. If we're monkey patched, we need to be sure to use
# the original __import__ to avoid switching through the hub due to # the original __import__ to avoid switching through the hub due to
# import locks on Python 2. See also builtins.py for details. # import locks on Python 2. See also builtins.py for details.
......
...@@ -170,7 +170,8 @@ class Input(object): ...@@ -170,7 +170,8 @@ class Input(object):
# To cope with malicious or broken clients that fail to send valid # To cope with malicious or broken clients that fail to send valid
# chunk lines, the strategy is to read character by character until we either reach # chunk lines, the strategy is to read character by character until we either reach
# a ; or newline. If at any time we read a non-HEX digit, we bail. If we hit a # a ; or newline. If at any time we read a non-HEX digit, we bail. If we hit a
# ;, indicating an chunk-extension, we'll read up to the next MAX_REQUEST_LINE charaters # ;, indicating an chunk-extension, we'll read up to the next
# MAX_REQUEST_LINE characters
# looking for the CRLF, and if we don't find it, we bail. If we read more than 16 hex characters, # looking for the CRLF, and if we don't find it, we bail. If we read more than 16 hex characters,
# (the number needed to represent a 64-bit chunk size), we bail (this protects us from # (the number needed to represent a 64-bit chunk size), we bail (this protects us from
# a client that sends an infinite stream of `F`, for example). # a client that sends an infinite stream of `F`, for example).
...@@ -724,7 +725,7 @@ class WSGIHandler(object): ...@@ -724,7 +725,7 @@ class WSGIHandler(object):
# "Servers should check for errors in the headers at the time # "Servers should check for errors in the headers at the time
# start_response is called, so that an error can be raised # start_response is called, so that an error can be raised
# while the application is still running." Here, we check the encoding. # while the application is still running." Here, we check the encoding.
# This aids debuging: headers especially are generated programatically # This aids debugging: headers especially are generated programatically
# and an encoding error in a loop or list comprehension yields an opaque # and an encoding error in a loop or list comprehension yields an opaque
# UnicodeError without any clue which header was wrong. # UnicodeError without any clue which header was wrong.
# Note that this results in copying the header list at this point, not modifying it, # Note that this results in copying the header list at this point, not modifying it,
......
...@@ -755,7 +755,7 @@ class Popen(object): ...@@ -755,7 +755,7 @@ class Popen(object):
DUPLICATE_SAME_ACCESS) DUPLICATE_SAME_ACCESS)
def _find_w9xpopen(self): def _find_w9xpopen(self):
"""Find and return absolut path to w9xpopen.exe""" """Find and return absolute path to w9xpopen.exe"""
w9xpopen = os.path.join(os.path.dirname(GetModuleFileName(0)), w9xpopen = os.path.join(os.path.dirname(GetModuleFileName(0)),
"w9xpopen.exe") "w9xpopen.exe")
if not os.path.exists(w9xpopen): if not os.path.exists(w9xpopen):
......
...@@ -43,7 +43,7 @@ class _ErrorFormatter(object): ...@@ -43,7 +43,7 @@ class _ErrorFormatter(object):
L{win32api.FormatMessage}). L{win32api.FormatMessage}).
@ivar errorTab: A mapping from integer error numbers to C{str} messages @ivar errorTab: A mapping from integer error numbers to C{str} messages
which correspond to those erorrs (like L{socket.errorTab}). which correspond to those errors (like L{socket.errorTab}).
""" """
def __init__(self, WinError, FormatMessage, errorTab): def __init__(self, WinError, FormatMessage, errorTab):
self.winError = WinError self.winError = WinError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment