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 | poky-22a21799059b156d8858cbf32acb7c2aefb9a23b.tar.gz | |
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 | |||
| 19 | # with this program; if not, write to the Free Software Foundation, Inc., | 19 | # with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 20 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 21 | 21 | ||
| 22 | import re, fcntl, os, types, string, stat, shutil, time | 22 | import re, fcntl, os, string, stat, shutil, time |
| 23 | import sys | 23 | import sys |
| 24 | import bb | 24 | import bb |
| 25 | import errno | 25 | import errno |
| @@ -72,9 +72,9 @@ def vercmp_part(a, b): | |||
| 72 | if ca == None and cb == None: | 72 | if ca == None and cb == None: |
| 73 | return 0 | 73 | return 0 |
| 74 | 74 | ||
| 75 | if isinstance(ca, types.StringType): | 75 | if isinstance(ca, basestring): |
| 76 | sa = ca in separators | 76 | sa = ca in separators |
| 77 | if isinstance(cb, types.StringType): | 77 | if isinstance(cb, basestring): |
| 78 | sb = cb in separators | 78 | sb = cb in separators |
| 79 | if sa and not sb: | 79 | if sa and not sb: |
| 80 | return -1 | 80 | return -1 |
