Contentstack 1.8.1__tar.gz → 1.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/PKG-INFO +1 -1
  2. {Contentstack-1.8.1 → Contentstack-1.8.2}/PKG-INFO +1 -1
  3. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/__init__.py +1 -1
  4. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/entry.py +1 -3
  5. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/query.py +1 -3
  6. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/SOURCES.txt +0 -0
  7. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/dependency_links.txt +0 -0
  8. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/not-zip-safe +0 -0
  9. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/requires.txt +0 -0
  10. {Contentstack-1.8.1 → Contentstack-1.8.2}/Contentstack.egg-info/top_level.txt +0 -0
  11. {Contentstack-1.8.1 → Contentstack-1.8.2}/LICENSE +0 -0
  12. {Contentstack-1.8.1 → Contentstack-1.8.2}/README.md +0 -0
  13. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/asset.py +0 -0
  14. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/assetquery.py +0 -0
  15. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/basequery.py +0 -0
  16. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/contenttype.py +0 -0
  17. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/controller.py +0 -0
  18. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/deep_merge_lp.py +0 -0
  19. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/entryqueryable.py +0 -0
  20. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/https_connection.py +0 -0
  21. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/image_transform.py +0 -0
  22. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/stack.py +0 -0
  23. {Contentstack-1.8.1 → Contentstack-1.8.2}/contentstack/utility.py +0 -0
  24. {Contentstack-1.8.1 → Contentstack-1.8.2}/setup.cfg +0 -0
  25. {Contentstack-1.8.1 → Contentstack-1.8.2}/setup.py +0 -0
  26. {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_assets.py +0 -0
  27. {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_entry.py +0 -0
  28. {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_live_preview.py +0 -0
  29. {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_query.py +0 -0
  30. {Contentstack-1.8.1 → Contentstack-1.8.2}/tests/test_stack.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Contentstack
3
- Version: 1.8.1
3
+ Version: 1.8.2
4
4
  Summary: Contentstack is a headless CMS with an API-first approach.
5
5
  Home-page: https://github.com/contentstack/contentstack-python
6
6
  Author: Contentstack
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Contentstack
3
- Version: 1.8.1
3
+ Version: 1.8.2
4
4
  Summary: Contentstack is a headless CMS with an API-first approach.
5
5
  Home-page: https://github.com/contentstack/contentstack-python
6
6
  Author: Contentstack
@@ -22,7 +22,7 @@ __all__ = (
22
22
  __title__ = 'contentstack-delivery-python'
23
23
  __author__ = 'contentstack'
24
24
  __status__ = 'debug'
25
- __version__ = 'v1.8.1'
25
+ __version__ = 'v1.8.2'
26
26
  __endpoint__ = 'cdn.contentstack.io'
27
27
  __email__ = 'mobile@contentstack.com'
28
28
  __developer_email__ = 'shailesh.mishra@contentstack.com'
@@ -6,8 +6,6 @@ API Reference: https://www.contentstack.com/docs/developers/apis/content-deliver
6
6
  import logging
7
7
  from urllib import parse
8
8
 
9
- import empty
10
-
11
9
  from contentstack.deep_merge_lp import DeepMergeMixin
12
10
  from contentstack.entryqueryable import EntryQueryable
13
11
 
@@ -157,7 +155,7 @@ class Entry(EntryQueryable):
157
155
  return self
158
156
 
159
157
  def __get_base_url(self, endpoint=''):
160
- if endpoint is not None and not empty:
158
+ if endpoint is not None and endpoint.strip(): # .strip() removes leading/trailing whitespace
161
159
  self.http_instance.endpoint = endpoint
162
160
  if None in (self.http_instance, self.content_type_id, self.entry_uid):
163
161
  raise KeyError(
@@ -8,8 +8,6 @@ import logging
8
8
  import warnings
9
9
  from urllib import parse
10
10
 
11
- import empty
12
-
13
11
  from contentstack.basequery import BaseQuery
14
12
  from contentstack.deep_merge_lp import DeepMergeMixin
15
13
  from contentstack.entryqueryable import EntryQueryable
@@ -54,7 +52,7 @@ class Query(BaseQuery, EntryQueryable):
54
52
  self.base_url = self.__get_base_url()
55
53
 
56
54
  def __get_base_url(self, endpoint=''):
57
- if endpoint is not None and not empty:
55
+ if endpoint is not None and endpoint.strip(): # .strip() removes leading/trailing whitespace
58
56
  self.http_instance.endpoint = endpoint
59
57
  if None in (self.http_instance, self.content_type_uid):
60
58
  raise KeyError(
File without changes
File without changes
File without changes
File without changes