Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Feb 14, 2019
1 parent c11438d commit de016df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/mxnet/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Features(collections.OrderedDict):
OrderedDict of name to Feature
"""
def __init__(self):
super().__init__([(f.name, f) for f in feature_list()])
super(Features, self).__init__([(f.name, f) for f in feature_list()])

def __repr__(self):
return str(list(self.values()))
Expand All @@ -82,5 +82,6 @@ def is_enabled(self, feature_name):
"""
feature_name = feature_name.upper()
if feature_name not in self:
raise RuntimeError("Feature '{}' is unknown, known features are: {}".format(feature_name, list(self.keys())))
raise RuntimeError("Feature '{}' is unknown, known features are: {}".format(
feature_name, list(self.keys())))
return self[feature_name].enabled

0 comments on commit de016df

Please sign in to comment.