# HG changeset patch # User Frederic Bastien # Date 1315936953 14400 # Node ID 2b3cff8823826122a0d2dbd14b3fc62fb7dd57e4 # Parent 7f166d01bf8e0bf3b24cf76a2d7bacb72397a9ac Tell to use isinstance(x, basestring). diff -r 7f166d01bf8e -r 2b3cff882382 doc/v2_planning/API_coding_style.txt --- a/doc/v2_planning/API_coding_style.txt Mon Sep 12 11:59:55 2011 -0400 +++ b/doc/v2_planning/API_coding_style.txt Tue Sep 13 14:02:33 2011 -0400 @@ -444,6 +444,11 @@ if __name__ == '__main__': sys.exit(main()) + * Avoid isinstance(x, str) as this don't work with unicode string, use: + + .. code-block:: python + + isinstance(x, basestring) The ``logging`` Module vs. the ``warning`` Module =================================================