Skip to content

Commit 3566448

Browse files
committed
Remove unused LockFile and FilePermissions classes which are remnants from caching
1 parent e46a6a4 commit 3566448

5 files changed

Lines changed: 2 additions & 624 deletions

File tree

csp/impl/struct.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,12 @@ def collectts(cls, **kwargs):
105105

106106
return csp.struct_collectts(cls, kwargs)
107107

108-
@classmethod
109-
def _postprocess_dict_to_python(cls, d):
110-
return d
111-
112108
@classmethod
113109
def _obj_to_python(cls, obj):
114110
if isinstance(obj, Struct):
115-
return obj._postprocess_dict_to_python(
116-
{k: cls._obj_to_python(getattr(obj, k)) for k in obj.__full_metadata_typed__ if hasattr(obj, k)}
117-
)
111+
return {k: cls._obj_to_python(getattr(obj, k)) for k in obj.__full_metadata_typed__ if hasattr(obj, k)}
118112
elif isinstance(obj, dict):
119-
return {k: cls._obj_to_python(v) for k, v in obj.items()}
113+
return type(obj)({k: cls._obj_to_python(v) for k, v in obj.items()}) # type() for derived dict types
120114
elif (
121115
isinstance(obj, (list, tuple, set)) or type(obj).__name__ == "FastList"
122116
): # hack for FastList that is not a list

csp/tests/impl/utils/__init__.py

Whitespace-only changes.

csp/tests/impl/utils/test_lock_file.py

Lines changed: 0 additions & 138 deletions
This file was deleted.

csp/utils/file_permissions.py

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)