diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-12 08:14:11 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
commit | 22a21799059b156d8858cbf32acb7c2aefb9a23b (patch) | |
tree | 1e0e83c86fe04e30576ddfb34577940596f8d809 /bitbake/lib/bb/utils.py | |
parent | 1180bab54e2879401f3586c91a48174191a1ee8b (diff) | |
download | openembedded-core-22a21799059b156d8858cbf32acb7c2aefb9a23b.tar.gz openembedded-core-22a21799059b156d8858cbf32acb7c2aefb9a23b.tar.bz2 openembedded-core-22a21799059b156d8858cbf32acb7c2aefb9a23b.zip |
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 <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 02668b16c4..a7fb44d7d2 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 |