Skip to content

Commit

Permalink
add deprecation warning for TarStorage (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Aug 14, 2020
1 parent 111b46e commit 02d046d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sourmash/sbt_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import zipfile
from abc import ABC

from deprecation import deprecated

from . import VERSION


class Storage(ABC):

Expand Down Expand Up @@ -87,6 +91,9 @@ def load(self, path):

class TarStorage(Storage):

@deprecated(deprecated_in="3.5", removed_in="4.0",
current_version=VERSION,
details='Use ZipStorage instead')
def __init__(self, path=None):
# TODO: leave it open, or close/open every time?

Expand Down

0 comments on commit 02d046d

Please sign in to comment.