Fix misspellings in comments

Signed-off-by: Piotr Kasprzyk <ciri@ciri.pl>
This commit is contained in:
Piotr Kasprzyk 2021-06-25 21:47:02 +02:00
parent 11d03357a5
commit 909e7abd8a
14 changed files with 18 additions and 18 deletions

View file

@ -236,7 +236,7 @@ Enable network burst in SBG1
----------------------------
'Network burst' is a free service but is opt-in. What if you have, say, 10
servers in ``SBG-1`` datacenter? You certainely don't want to activate it
servers in ``SBG-1`` datacenter? You certainly don't want to activate it
manually for each servers. You could take advantage of a code like this.
This example assumes an existing Configuration_ with valid ``application_key``,

View file

@ -24,7 +24,7 @@ request_consumerkey
Helpers to generate a consumer key. See ``new_consumer_key_request``
below for a full working example or :py:class:`ConsumerKeyRequest`
for dertailed implementatation.
for detailed implementation.
The basic idea of ``ConsumerKeyRequest`` is to generate appropriate
authorization requests from human readable function calls. In short:

View file

@ -97,7 +97,7 @@ Depending on the API you want to use, you may set the ``endpoint`` to:
* ``ovh-eu`` for OVH Europe API
* ``ovh-ca`` for OVH North-America API
See Configuration_ for more inforamtions on available configuration mechanisms.
See Configuration_ for more informations on available configuration mechanisms.
.. note:: When using a versioning system, make sure to add ``ovh.conf`` to ignored
files. It contains confidential/security-sensitive information!
@ -220,7 +220,7 @@ Enable network burst in SBG1
----------------------------
'Network burst' is a free service but is opt-in. What if you have, say, 10
servers in ``SBG-1`` datacenter? You certainely don't want to activate it
servers in ``SBG-1`` datacenter? You certainly don't want to activate it
manually for each servers. You could take advantage of a code like this.
This example assumes an existing Configuration_ with valid ``application_key``,

View file

@ -70,5 +70,5 @@ for service_type in service_types:
if service_expiration_date < delay_date:
services_will_expired.append( [ service_type, service, service_infos['status'], service_infos['expiration'] ] )
# At the end, we show service expirated or that will expirated (in a table with tabulate)
# At the end, we show service expired or that will expire (in a table with tabulate)
print(tabulate(services_will_expired, headers=['Type', 'ID', 'status', 'expiration date']))

View file

@ -62,5 +62,5 @@ for service_type in service_types:
service_expiration_date = datetime.datetime.strptime(service_infos['expiration'], '%Y-%m-%d')
services_will_expired.append( [ service_type, service, service_infos['status'], service_infos['expiration'] ] )
# At the end, we show service expirated or that will expirated (in a table with tabulate)
# At the end, we show service expired or that will expire (in a table with tabulate)
print(tabulate(services_will_expired, headers=['Type', 'ID', 'status', 'expiration date']))

View file

@ -491,7 +491,7 @@ class Client(object):
headers['Content-type'] = 'application/json'
body = json.dumps(data)
# sign request. Never sign 'time' or will recuse infinitely
# sign request. Never sign 'time' or will recurse infinitely
if need_auth:
if not self._application_secret:
raise InvalidKey("Invalid ApplicationSecret '%s'" %

View file

@ -36,7 +36,7 @@
# 2048 --> 0.97583
#
# Ideal Distribution Ratio = 0.74851/(1-0.74851) =2.98
# Random Distribution Ration = 512/(5401-512)=0.105
# Random Distribution Ratio = 512/(5401-512)=0.105
#
# Typical Distribution Ratio about 25% of Ideal one, still much higher than RDR

View file

@ -33,8 +33,8 @@
# 1024 --> 0.99944
# 2048 --> 0.99999
#
# Idea Distribution Ratio = 0.98653 / (1-0.98653) = 73.24
# Random Distribution Ration = 512 / (2350-512) = 0.279.
# Ideal Distribution Ratio = 0.98653 / (1-0.98653) = 73.24
# Random Distribution Ratio = 512 / (2350-512) = 0.279.
#
# Typical Distribution Ratio

View file

@ -36,8 +36,8 @@
# 1024 --> 0.89384
# 2048 --> 0.97583
#
# Idea Distribution Ratio = 0.74851/(1-0.74851) =2.98
# Random Distribution Ration = 512/(5401-512)=0.105
# Ideal Distribution Ratio = 0.74851/(1-0.74851) =2.98
# Random Distribution Ratio = 512/(5401-512)=0.105
#
# Typical Distribution Ratio about 25% of Ideal one, still much higher than RDR

View file

@ -35,7 +35,7 @@
# 6768 --> 1.00 -- 0.02
#
# Ideal Distribution Ratio = 0.79135/(1-0.79135) = 3.79
# Random Distribution Ration = 512 / (3755 - 512) = 0.157
# Random Distribution Ratio = 512 / (3755 - 512) = 0.157
#
# Typical Distribution Ratio about 25% of Ideal one, still much higher that RDR

View file

@ -37,7 +37,7 @@
# 2048 --> 0.99431
#
# Ideal Distribution Ratio = 0.92635 / (1-0.92635) = 12.58
# Random Distribution Ration = 512 / (2965+62+83+86-512) = 0.191
# Random Distribution Ratio = 512 / (2965+62+83+86-512) = 0.191
#
# Typical Distribution Ratio, 25% of IDR

View file

@ -323,7 +323,7 @@ GB2312_st = (
# To be accurate, the length of class 6 can be either 2 or 4.
# But it is not necessary to discriminate between the two since
# it is used for frequency analysis only, and we are validing
# it is used for frequency analysis only, and we are validating
# each code range there as well. So it is safe to set it to be
# 2 here.
GB2312CharLenTable = (0, 1, 1, 1, 1, 1, 2)

View file

@ -50,7 +50,7 @@ class AppEngineManager(RequestMethods):
* If you attempt to use this on GAEv2 (Managed VMs), as full socket
support is available.
* If a request size is more than 10 megabytes.
* If a response size is more than 32 megabtyes.
* If a response size is more than 32 megabytes.
* If you use an unsupported request method such as OPTIONS.
Beyond those cases, it will raise normal urllib3 errors.

View file

@ -158,7 +158,7 @@ class HTTPResponse(io.IOBase):
@property
def data(self):
# For backwords-compat with earlier urllib3 0.4 and earlier.
# For backwards-compat with earlier urllib3 0.4 and earlier.
if self._body:
return self._body
@ -175,7 +175,7 @@ class HTTPResponse(io.IOBase):
def _init_decoder(self):
"""
Set-up the _decoder attribute if necessar.
Set-up the _decoder attribute if necessary.
"""
# Note: content-encoding value should be case-insensitive, per RFC 7230
# Section 3.2