Skip to content

Commit 7df24c2

Browse files
committed
fix pylint
1 parent 876f2b7 commit 7df24c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf2onnx/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def domain(self, val):
136136
def data_format(self):
137137
"""Return data_format."""
138138
attr_str = self.get_attr_value("data_format")
139-
return "unkown" if attr_str == None else attr_str.decode("utf-8")
139+
return "unkown" if attr_str is None else attr_str.decode("utf-8")
140140

141141
@data_format.setter
142142
def data_format(self, val):

0 commit comments

Comments
 (0)