Alon Bar-Lev has uploaded a new change for review. Change subject: core: pyflakes-0.7.2 compatibility ......................................................................
core: pyflakes-0.7.2 compatibility it does not execute __init__.py or not use builtins? Change-Id: I21816fdba8b3734854659944262f52833af4786c Signed-off-by: Alon Bar-Lev <[email protected]> --- M src/otopi/common.py 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/97/17497/1 diff --git a/src/otopi/common.py b/src/otopi/common.py index ee23d59..125cbef 100644 --- a/src/otopi/common.py +++ b/src/otopi/common.py @@ -21,6 +21,7 @@ """Common misc functions.""" +import builtins import gettext _ = lambda m: gettext.dgettext(message=m, domain='otopi') @@ -65,7 +66,7 @@ ret = constants.Types.BOOLEAN elif isinstance(value, int): ret = constants.Types.INTEGER - elif isinstance(value, str) or isinstance(value, unicode): + elif isinstance(value, str) or isinstance(value, builtins.unicode): ret = constants.Types.STRING elif isinstance(value, list): ret = constants.Types.MULTI_STRING -- To view, visit http://gerrit.ovirt.org/17497 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I21816fdba8b3734854659944262f52833af4786c Gerrit-PatchSet: 1 Gerrit-Project: otopi Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
