Assert is a keyword, not a function

This commit is contained in:
Jie Tang
2016-06-16 00:20:22 -07:00
parent 5372d34b37
commit 36d476224e
11 changed files with 101 additions and 101 deletions

View File

@@ -21,7 +21,7 @@ class OneRoundDeterministicRewardEnv(gym.Env):
self._reset()
def _step(self, action):
assert(self.action_space.contains(action))
assert self.action_space.contains(action)
if action:
reward = 1
else: