Skip to content

Commit

Permalink
Make sample-sheet compatible with smart_open 1.8.1 and greater (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Jul 31, 2019
1 parent 6aec4a3 commit 2fe92c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ eggs/
lib/
lib64/
parts/
pip-wheel-metadata/
sdist/
var/
wheels/
Expand Down
2 changes: 2 additions & 0 deletions sample_sheet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from requests.structures import CaseInsensitiveDict

try:
from smart_open import open # Migration for smart_open 1.8.1 # type: ignore
except ImportError:
from smart_open import smart_open as open # type: ignore
except ImportError:
pass
Expand Down

0 comments on commit 2fe92c0

Please sign in to comment.