Skip to content

Commit 8933eef

Browse files
committed
cleanup
1 parent 5c4ee12 commit 8933eef

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

activestorage/active.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,6 @@ def _process_chunk(self,
661661
axis = self._axis
662662

663663
if self.storage_type == 's3' and self._version == 1:
664-
665664
tmp, count = reduce_opens3_chunk(ds._fh,
666665
offset,
667666
size,
@@ -678,7 +677,6 @@ def _process_chunk(self,
678677
elif self.storage_type == "s3" and self._version == 2:
679678
# S3: pass in pre-configured storage options (credentials)
680679
parsed_url = urllib.parse.urlparse(self.filename)
681-
682680
bucket = parsed_url.netloc
683681
object = parsed_url.path
684682

@@ -725,12 +723,7 @@ def _process_chunk(self,
725723
chunk_selection,
726724
axis,
727725
operation=self._method)
728-
# this is for testing ONLY until Reductionist is able to handle https
729-
# located files; after that, we can pipe any regular https file through
730-
# to Reductionist, provided the https server is "closer" to Reductionist
731726
elif self.storage_type == "https" and self._version == 2:
732-
# note the extra "storage_type" kwarg
733-
# Reductionist returns "count" as a list even for single elements
734727
tmp, count = reductionist.reduce_chunk(session,
735728
self.active_storage_url,
736729
f"{self.uri}",

0 commit comments

Comments
 (0)