Skip to content

Commit 02f90d5

Browse files
committed
Use if-expression.
1 parent ce56542 commit 02f90d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/tests/test_pytables.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646

4747
from distutils.version import LooseVersion
4848

49-
_default_compressor = LooseVersion(tables.__version__) >= '2.2' \
50-
and 'blosc' or 'zlib'
49+
_default_compressor = ('blosc' if LooseVersion(tables.__version__) >= '2.2'
50+
else 'zlib')
5151

5252
_multiprocess_can_split_ = False
5353

0 commit comments

Comments
 (0)