summaryrefslogtreecommitdiffstats
path: root/lib/bb/utils.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-12 08:14:11 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-12 08:14:13 -0700
commit83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab (patch)
treecd1e77dccf1eaee4b6bdf88778340be6c617255c /lib/bb/utils.py
parentd39ab776e7ceaefc8361150151cf0892dcb70d9c (diff)
downloadbitbake-83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab.tar.gz
Kill unnecessary usages of the types module
types.IntType -> int types.StringType -> basestring ... Also moves our ImmutableTypes tuple into our own namespace. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r--lib/bb/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index ac7e4ec70..a582ad367 100644
--- a/lib/bb/utils.py
+++ b/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