Skip to content

Commit

Permalink
Removed parentheses for if statement.
Browse files Browse the repository at this point in the history
Signed-off-by: Roland Mechler <rmechler@cisco.com>
  • Loading branch information
Roland Mechler committed Apr 14, 2016
1 parent 0b0d584 commit 18ea756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybind/rados/rados.pyx
Expand Up @@ -2800,7 +2800,7 @@ returned %d, but should return zero on success." % (self.name, ret))

with nogil:
ret = rados_write_op_operate(_write_op.write_op, self.io, _oid, &_mtime, _flags)
if (ret != 0):
if ret != 0:
raise make_ex(ret, "Failed to operate write op for oid %s" % oid)

@requires(('read_op', ReadOp), ('oid', str_type), ('flag', opt(int)))
Expand All @@ -2822,7 +2822,7 @@ returned %d, but should return zero on success." % (self.name, ret))

with nogil:
ret = rados_read_op_operate(_read_op.read_op, self.io, _oid, _flag)
if (ret != 0):
if ret != 0:
raise make_ex(ret, "Failed to operate read op for oid %s" % oid)

@requires(('read_op', ReadOp), ('start_after', str_type), ('filter_prefix', str_type), ('max_return', int))
Expand Down

0 comments on commit 18ea756

Please sign in to comment.