66# CEF values to Python values
77# -----------------------------------------------------------------------------
88
9- cdef object CheckForCefPythonMessageHash(CefRefPtr[CefBrowser] cefBrowser,
9+ cdef object CheckForCefPythonMessageHash(CefRefPtr[CefBrowser] cefBrowser,
1010 py_string pyString):
1111 # A javascript callback from the Renderer process is sent as a string.
1212 # TODO: this could be sent using CefBinaryNamedString in the future,
@@ -22,7 +22,7 @@ cdef object CheckForCefPythonMessageHash(CefRefPtr[CefBrowser] cefBrowser,
2222 if message and type (message) == dict and (" what" in message) \
2323 and message[" what" ] == " javascript-callback" :
2424 jsCallback = CreateJavascriptCallback(
25- message[" callbackId" ], cefBrowser,
25+ message[" callbackId" ], cefBrowser,
2626 message[" frameId" ], message[" functionName" ])
2727 return jsCallback
2828 return pyString
@@ -177,7 +177,7 @@ cdef CefRefPtr[CefListValue] PyListToCefListValue(
177177 elif valueType == long :
178178 # Int32 range is -2147483648..2147483647, we've increased the
179179 # minimum size by one as Cython was throwing a warning:
180- # "unary minus operator applied to unsigned type, result still
180+ # "unary minus operator applied to unsigned type, result still
181181 # unsigned".
182182 if value <= 2147483647 and value >= - 2147483647 :
183183 ret.get().SetInt(index, int (value))
@@ -204,7 +204,7 @@ cdef CefRefPtr[CefListValue] PyListToCefListValue(
204204 else :
205205 # Raising an exception probably not a good idea, why
206206 # terminate application when we can cast it to string,
207- # the data may contain some non-standard object that is
207+ # the data may contain some non-standard object that is
208208 # probably redundant, but casting to string will do no harm.
209209 # This will handle the "type" type.
210210 ret.get().SetString(index, PyToCefStringValue(str (value)))
@@ -234,7 +234,7 @@ cdef void PyListToExistingCefListValue(
234234 elif valueType == long :
235235 # Int32 range is -2147483648..2147483647, we've increased the
236236 # minimum size by one as Cython was throwing a warning:
237- # "unary minus operator applied to unsigned type, result still
237+ # "unary minus operator applied to unsigned type, result still
238238 # unsigned".
239239 if value <= 2147483647 and value >= - 2147483647 :
240240 cefListValue.get().SetInt(index, int (value))
@@ -255,7 +255,7 @@ cdef void PyListToExistingCefListValue(
255255 if valueType == tuple :
256256 value = list (value)
257257 newCefListValue = CefListValue_Create()
258- PyListToExistingCefListValue(browserId, frameId, value,
258+ PyListToExistingCefListValue(browserId, frameId, value,
259259 newCefListValue, nestingLevel + 1 )
260260 cefListValue.get().SetList(index, newCefListValue)
261261 elif valueType == types.FunctionType or valueType == types.MethodType:
@@ -264,7 +264,7 @@ cdef void PyListToExistingCefListValue(
264264 else :
265265 # Raising an exception probably not a good idea, why
266266 # terminate application when we can cast it to string,
267- # the data may contain some non-standard object that is
267+ # the data may contain some non-standard object that is
268268 # probably redundant, but casting to string will do no harm.
269269 # This will handle the "type" type.
270270 cefListValue.get().SetString(index, PyToCefStringValue(str (value)))
@@ -294,7 +294,7 @@ cdef CefRefPtr[CefDictionaryValue] PyDictToCefDictionaryValue(
294294 elif valueType == long :
295295 # Int32 range is -2147483648..2147483647, we've increased the
296296 # minimum size by one as Cython was throwing a warning:
297- # "unary minus operator applied to unsigned type, result still
297+ # "unary minus operator applied to unsigned type, result still
298298 # unsigned".
299299 if value <= 2147483647 and value >= - 2147483647 :
300300 ret.get().SetInt(cefKey, int (value))
@@ -321,7 +321,7 @@ cdef CefRefPtr[CefDictionaryValue] PyDictToCefDictionaryValue(
321321 else :
322322 # Raising an exception probably not a good idea, why
323323 # terminate application when we can cast it to string,
324- # the data may contain some non-standard object that is
324+ # the data may contain some non-standard object that is
325325 # probably redundant, but casting to string will do no harm.
326326 # This will handle the "type" type.
327327 ret.get().SetString(cefKey, PyToCefStringValue(str (value)))
0 commit comments