Skip to content

Commit 5b0cd94

Browse files
committed
fix issue #131
1 parent 7f06b1c commit 5b0cd94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

probables/blooms/bloom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def _load_init(self, filepath, hash_function, hex_string, est_elements, false_po
627627
filepointer.flush()
628628
self._load(self._filepath, hash_function)
629629
elif is_valid_file(self._filepath):
630-
self._load(self._filepath.name, hash_function) # need .name for python 3.5
630+
self._load(self._filepath, hash_function)
631631
else:
632632
raise InitializationError("Insufecient parameters to set up the On Disk Bloom Filter")
633633

@@ -655,7 +655,7 @@ def export(self, file: Union[str, Path]) -> None: # type: ignore
655655
Only exported if the filename is not the original filename"""
656656
self.__update()
657657
if file and Path(file) != self._filepath:
658-
copyfile(self._filepath.name, str(file))
658+
copyfile(self._filepath, str(file))
659659
# otherwise, nothing to do!
660660

661661
def _load(self, file: Union[str, Path], hash_function: Union[HashFuncT, None] = None): # type: ignore

0 commit comments

Comments
 (0)