Jelajahi Sumber

Update pocketpy.h

blueloveTH 1 tahun lalu
induk
melakukan
8a257199a3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      include/pocketpy/pocketpy.h

+ 1 - 1
include/pocketpy/pocketpy.h

@@ -230,7 +230,7 @@ void py_printexc();
 /// Format the last error to a string.
 /// Format the last error to a string.
 void py_formatexc(char* out);
 void py_formatexc(char* out);
 
 
-#define KeyError(q) py_exception("KeyError", "'%q'", (q))
+#define KeyError(q) py_exception("KeyError", "%q", (q))
 #define NameError(n) py_exception("NameError", "name '%n' is not defined", (n))
 #define NameError(n) py_exception("NameError", "name '%n' is not defined", (n))
 #define TypeError(...) py_exception("TypeError", __VA_ARGS__)
 #define TypeError(...) py_exception("TypeError", __VA_ARGS__)
 #define ValueError(...) py_exception("ValueError", __VA_ARGS__)
 #define ValueError(...) py_exception("ValueError", __VA_ARGS__)