summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py6
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
22import re, fcntl, os, types, string, stat, shutil, time 22import re, fcntl, os, string, stat, shutil, time
23import sys 23import sys
24import bb 24import bb
25import errno 25import 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