Skip to content

Commit

Permalink
Fix Python SyntaxWarning (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
reikdas authored Jul 23, 2020
1 parent 496c5a8 commit 61f0ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/awkward1/operations/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,7 @@ def from_parquet(
if lazy:
state = _ParquetState(file, use_threads, source, options)

if lazy_cache is "metadata":
if lazy_cache == "metadata":
lazy_cache = {}
metadata = {"cache": lazy_cache}
else:
Expand Down Expand Up @@ -3155,7 +3155,7 @@ def from_arrayset(
partition_format = lambda x: tmp2.format(x)

if lazy:
if lazy_cache is "metadata":
if lazy_cache == "metadata":
lazy_cache = {}
metadata = {"cache": lazy_cache}
else:
Expand Down

0 comments on commit 61f0ab5

Please sign in to comment.