From 22a21799059b156d8858cbf32acb7c2aefb9a23b Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 12 Apr 2010 08:14:11 -0700 Subject: Kill unnecessary usages of the types module types.IntType -> int types.StringType -> basestring ... Also moves our ImmutableTypes tuple into our own namespace. (Bitbake rev: 83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/utils.py') diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 02668b16c..a7fb44d7d 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -19,7 +19,7 @@ BitBake Utility Functions # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -import re, fcntl, os, types, string, stat, shutil, time +import re, fcntl, os, string, stat, shutil, time import sys import bb import errno @@ -72,9 +72,9 @@ def vercmp_part(a, b): if ca == None and cb == None: return 0 - if isinstance(ca, types.StringType): + if isinstance(ca, basestring): sa = ca in separators - if isinstance(cb, types.StringType): + if isinstance(cb, basestring): sb = cb in separators if sa and not sb: return -1 -- cgit v1.2.3