File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ def to_dict(self, include_self_link=True):
381
381
if self .title is not None :
382
382
d ['title' ] = self .title
383
383
384
- return deepcopy ( d )
384
+ return d
385
385
386
386
def clone (self ):
387
387
clone = Catalog (id = self .id ,
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def to_dict(self, include_self_link=True):
107
107
if self .summaries is not None :
108
108
d ['summaries' ] = self .summaries
109
109
110
- return deepcopy ( d )
110
+ return d
111
111
112
112
def clone (self ):
113
113
clone = Collection (id = self .id ,
@@ -213,7 +213,7 @@ def to_dict(self):
213
213
"""
214
214
d = {'spatial' : self .spatial .to_dict (), 'temporal' : self .temporal .to_dict ()}
215
215
216
- return deepcopy ( d )
216
+ return d
217
217
218
218
def clone (self ):
219
219
"""Clones this object.
@@ -315,7 +315,7 @@ def to_dict(self):
315
315
dict: A serializion of the SpatialExtent that can be written out as JSON.
316
316
"""
317
317
d = {'bbox' : self .bboxes }
318
- return deepcopy ( d )
318
+ return d
319
319
320
320
def clone (self ):
321
321
"""Clones this object.
@@ -418,7 +418,7 @@ def to_dict(self):
418
418
encoded_intervals .append ([start , end ])
419
419
420
420
d = {'interval' : encoded_intervals }
421
- return deepcopy ( d )
421
+ return d
422
422
423
423
def clone (self ):
424
424
"""Clones this object.
@@ -505,7 +505,7 @@ def to_dict(self):
505
505
if self .url is not None :
506
506
d ['url' ] = self .url
507
507
508
- return deepcopy ( d )
508
+ return d
509
509
510
510
@staticmethod
511
511
def from_dict (d ):
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ def to_dict(self, include_self_link=True):
297
297
for key in self .extra_fields :
298
298
d [key ] = self .extra_fields [key ]
299
299
300
- return deepcopy ( d )
300
+ return d
301
301
302
302
def clone (self ):
303
303
clone = Item (id = self .id ,
@@ -475,7 +475,7 @@ def to_dict(self):
475
475
if self .roles is not None :
476
476
d ['roles' ] = self .roles
477
477
478
- return deepcopy ( d )
478
+ return d
479
479
480
480
def clone (self ):
481
481
"""Clones this asset.
Original file line number Diff line number Diff line change 1
- from copy import ( copy , deepcopy )
1
+ from copy import copy
2
2
from enum import Enum
3
3
4
4
from pystac import STACError
@@ -211,7 +211,7 @@ def to_dict(self):
211
211
for k , v in self .properties .items ():
212
212
d [k ] = v
213
213
214
- return deepcopy ( d )
214
+ return d
215
215
216
216
def clone (self ):
217
217
"""Clones this link.
You can’t perform that action at this time.
0 commit comments