unix, file.c: adhere to coding conventions.

This commit is contained in:
Damien George 2014-05-03 17:04:31 +01:00
parent 41f768f3f3
commit e69b7e8288

View File

@ -20,8 +20,9 @@ typedef struct _mp_obj_fdfile_t {
#ifdef MICROPY_CPYTHON_COMPAT #ifdef MICROPY_CPYTHON_COMPAT
void check_fd_is_open(const mp_obj_fdfile_t *o) { void check_fd_is_open(const mp_obj_fdfile_t *o) {
if (o->fd < 0) if (o->fd < 0) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file")); nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file"));
}
} }
#else #else
#define check_fd_is_open(o) #define check_fd_is_open(o)