Skip to content

Commit 44e8fcc

Browse files
Next (#58)
* Removed empty package * Updated changelog file
1 parent 5ce64de commit 44e8fcc

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# CHANGELOG
22

3+
## _v1.8.2_
4+
5+
### **Date: 05-DECEMBER-2023**
6+
7+
- Empty package removed and added python 3.11 support
8+
9+
---
10+
311
## _v1.8.1_
412

5-
### **Date: 06-NOVEMBER-2023**
13+
### **Date: 29-NOVEMBER-2023**
614

715
- SNYK issues fixed
816
- General code improvement clean up

contentstack/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
__title__ = 'contentstack-delivery-python'
2323
__author__ = 'contentstack'
2424
__status__ = 'debug'
25-
__version__ = 'v1.8.1'
25+
__version__ = 'v1.8.2'
2626
__endpoint__ = 'cdn.contentstack.io'
2727
__email__ = '[email protected]'
2828
__developer_email__ = '[email protected]'

contentstack/entry.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import logging
77
from urllib import parse
88

9-
import empty
10-
119
from contentstack.deep_merge_lp import DeepMergeMixin
1210
from contentstack.entryqueryable import EntryQueryable
1311

@@ -157,7 +155,7 @@ def include_embedded_items(self):
157155
return self
158156

159157
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
161159
self.http_instance.endpoint = endpoint
162160
if None in (self.http_instance, self.content_type_id, self.entry_uid):
163161
raise KeyError(

contentstack/query.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import warnings
99
from urllib import parse
1010

11-
import empty
12-
1311
from contentstack.basequery import BaseQuery
1412
from contentstack.deep_merge_lp import DeepMergeMixin
1513
from contentstack.entryqueryable import EntryQueryable
@@ -54,7 +52,7 @@ def __init__(self, http_instance, content_type_uid):
5452
self.base_url = self.__get_base_url()
5553

5654
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
5856
self.http_instance.endpoint = endpoint
5957
if None in (self.http_instance, self.content_type_uid):
6058
raise KeyError(

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ chardet~=5.1.0
5656
alabaster==0.7.13
5757
zipp==3.15.0
5858
distlib~=0.3.6
59-
Empty~=0.4.4
6059
cachetools~=5.3.0
6160
tomlkit~=0.11.8
6261
urllib3==2.0.7

0 commit comments

Comments
 (0)