Skip to content

Commit 2d42e56

Browse files
mshaileshr@gmail.commshaileshr@gmail.com
authored andcommitted
docstring
1 parent 4db2602 commit 2d42e56

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

contentstack/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
from .errors import Error, FileModeWarning
2323
from .http_connection import HTTPConnection
2424

25-
# Set a default logger to prevent "No handler found" warnings
26-
# Set default logging handler to avoid "No handler found" warnings.
25+
2726
import logging
2827
from logging import NullHandler
2928
logging.getLogger(__name__).addHandler(NullHandler())

contentstack/config.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
1010
"""
1111

12-
1312
logging.basicConfig(filename='report.log', format='%(asctime)s - %(message)s', level=logging.INFO)
1413
logging.getLogger(__name__)
1514

@@ -51,7 +50,8 @@ def region(self, region=ContentstackRegion.US):
5150
A Contentstack region refers to the location of the data centers where your organization's data resides.
5251
5352
Keyword Arguments:
54-
region {ContentstackRegion} -- region refers to the location of the data centers where your organization's data resides. (default: {ContentstackRegion.US})
53+
region {ContentstackRegion} -- region refers to the location of the data centers where your organization's
54+
data resides. (default: {ContentstackRegion.US})
5555
5656
For more details: https://www.contentstack.com/docs/guide/contentstack-regions
5757
@@ -68,7 +68,6 @@ def region(self, region=ContentstackRegion.US):
6868
if region is not None and isinstance(region, ContentstackRegion):
6969
self.default['region'] = region
7070

71-
7271
@property
7372
def host(self):
7473

@@ -157,4 +156,4 @@ def __get_url(self):
157156
if self.default["host"] == 'cdn.contentstack.io':
158157
self.default["host"] = 'cdn.contentstack.com'
159158
host = '{}-{}'.format(region, self.default["host"])
160-
return "{0}://{1}/{2}".format(self.default["protocol"], host, self.default["version"])
159+
return "{0}://{1}/{2}".format(self.default["protocol"], host, self.default["version"])

0 commit comments

Comments
 (0)