Skip to content

Commit

Permalink
bpo-1635741: reformat macro
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jun 15, 2020
1 parent 4a69834 commit 87a6ef1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Modules/_dbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ typedef struct {

#include "clinic/_dbmmodule.c.h"

#define check_dbmobject_open(v, err) if ((v)->di_dbm == NULL) \
{ PyErr_SetString(err, "DBM object has already been closed"); \
return NULL; }
#define check_dbmobject_open(v, err) \
if ((v)->di_dbm == NULL) { \
PyErr_SetString(err, "DBM object has already been closed"); \
return NULL; \
}

static PyObject *
newdbmobject(_dbm_state *state, const char *file, int flags, int mode)
Expand Down

0 comments on commit 87a6ef1

Please sign in to comment.