Skip to content

Commit eed0687

Browse files
committed
fixing bug in prefix handling
1 parent 4cf1112 commit eed0687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bald/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def load_netcdf(afilepath, uri=None):
550550
prefix_var = (fhandle[fhandle.bald__isPrefixedBy] if
551551
hasattr(fhandle, 'bald__isPrefixedBy') else {})
552552
prefixes = {}
553-
if prefix_var is not {} :
553+
if prefix_var != {} :
554554
prefixes = (dict([(prefix, getattr(prefix_var, prefix)) for
555555
prefix in prefix_var.ncattrs()]))
556556
else:

0 commit comments

Comments
 (0)