rdmenezes / cefpython

Automatically exported from code.google.com/p/cefpython
1 stars 0 forks source link

Allow passing string subtypes to cefpython functions #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some of the CEF Python functions are checking the string type using code like 
this:

  if type(s) == unicode..
  if type(s) == str..

Functions in string_utils.pyx are doing it in a such manner.

If we want to support string subtypes, checks need to be like this:

  if isinstance(s, unicode)..
  if isinstance(s, str)..

Original issue reported on code.google.com by czarek.t...@gmail.com on 9 Jan 2014 at 8:42