From 6c1cb05302f369b3105cea73cb86a00018ada6be Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Wed, 20 May 2015 15:09:13 +0200 Subject: Python 3: use six.string_types instead of basestring In Python 3, there is no "basestring". In Python 3, "six.string_types" is "basestring", and "str" in Python 3. Change-Id: Ic22e932cbf3c4b75cd424f4b41428da869f197cf Blueprint: neutron-python3 --- HACKING.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'HACKING.rst') diff --git a/HACKING.rst b/HACKING.rst index ce05f7f15b..101726231d 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -15,6 +15,7 @@ Neutron Specific Commandments - [N323] Enforce namespace-less imports for oslo libraries - [N324] Prevent use of deprecated contextlib.nested. - [N325] Python 3: Do not use xrange. +- [N326] Python 3: do not use basestring. Creating Unit Tests ------------------- -- cgit v1.2.1