SummerGift 8 лет назад
Родитель
Сommit
6b010e509d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      port/modusocket.c

+ 2 - 2
port/modusocket.c

@@ -76,7 +76,7 @@ STATIC mp_obj_t socket_make_new(const mp_obj_type_t *type, size_t n_args, size_t
             s->base.type = (mp_obj_t) &socket_type;
             s->base.type = (mp_obj_t) &socket_type;
             s->fd = fd;
             s->fd = fd;
         } else {
         } else {
-            rt_kprintf("m_new_obj_with_finaliser  error.\n");
+            rt_kprintf("m_new_obj_with_finaliser error.\n");
             mp_raise_OSError(MP_EAGAIN);
             mp_raise_OSError(MP_EAGAIN);
         }
         }
     } else {
     } else {
@@ -207,7 +207,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(socket_send_obj, socket_send);
 
 
 //socket.write(buf)
 //socket.write(buf)
 //Write the buffer of bytes to the socket.
 //Write the buffer of bytes to the socket.
-//This function will try to write all data to a socket (no ¡°short writes¡±).
+//This function will try to write all data to a socket (no short writes ).
 //This may be not possible with a non-blocking socket though, and returned value will be less than the length of buf.
 //This may be not possible with a non-blocking socket though, and returned value will be less than the length of buf.
 //Return value: number of bytes written.
 //Return value: number of bytes written.