From 58652fef5d8a87c09d6d53945f64068f3c22b0a9 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 3 Aug 2018 12:49:08 -0400 Subject: [PATCH] LINT --- src/python2js.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/python2js.c b/src/python2js.c index b9607fb3b..a6935d354 100644 --- a/src/python2js.c +++ b/src/python2js.c @@ -134,15 +134,15 @@ python2js_int(PyObject* x) int data = (int)PyUnicode_DATA(x); int length = (int)PyUnicode_GET_LENGTH(x); switch (kind) { - case PyUnicode_1BYTE_KIND: - return hiwire_string_ucs1(data, length); - case PyUnicode_2BYTE_KIND: - return hiwire_string_ucs2(data, length); - case PyUnicode_4BYTE_KIND: - return hiwire_string_ucs4(data, length); - default: - PyErr_SetString(PyExc_ValueError, "Unknown Unicode KIND"); - return -1; + case PyUnicode_1BYTE_KIND: + return hiwire_string_ucs1(data, length); + case PyUnicode_2BYTE_KIND: + return hiwire_string_ucs2(data, length); + case PyUnicode_4BYTE_KIND: + return hiwire_string_ucs4(data, length); + default: + PyErr_SetString(PyExc_ValueError, "Unknown Unicode KIND"); + return -1; } } else if (PyBytes_Check(x)) { char* x_buff;