summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2023-11-17 12:12:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-20 15:32:25 +0000
commit4d6c63a56c50536806b21cbe72416d8f1b84f589 (patch)
tree1225ef097ac78b5e3b2b50b9fdf32805c312e584
parentdaee9d9eae7c391edecf972e008ec5f124260dc3 (diff)
downloadpoky-4d6c63a56c50536806b21cbe72416d8f1b84f589.tar.gz
bitbake: bitbake: utils: remove spaces on empty lines
(Bitbake rev: 979ff8b4228e4c6f90985e9a3faa5fc9f3922218) Signed-off-by: Julien Stephan <jstephan@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/utils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index b401fa5ec7..61ffad92ce 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -50,7 +50,7 @@ def clean_context():
50 50
51def get_context(): 51def get_context():
52 return _context 52 return _context
53 53
54 54
55def set_context(ctx): 55def set_context(ctx):
56 _context = ctx 56 _context = ctx
@@ -212,8 +212,8 @@ def explode_dep_versions2(s, *, sort=True):
212 inversion = True 212 inversion = True
213 # This list is based on behavior and supported comparisons from deb, opkg and rpm. 213 # This list is based on behavior and supported comparisons from deb, opkg and rpm.
214 # 214 #
215 # Even though =<, <<, ==, !=, =>, and >> may not be supported, 215 # Even though =<, <<, ==, !=, =>, and >> may not be supported,
216 # we list each possibly valid item. 216 # we list each possibly valid item.
217 # The build system is responsible for validation of what it supports. 217 # The build system is responsible for validation of what it supports.
218 if i.startswith(('<=', '=<', '<<', '==', '!=', '>=', '=>', '>>')): 218 if i.startswith(('<=', '=<', '<<', '==', '!=', '>=', '=>', '>>')):
219 lastcmp = i[0:2] 219 lastcmp = i[0:2]
@@ -347,7 +347,7 @@ def _print_exception(t, value, tb, realfile, text, context):
347 exception = traceback.format_exception_only(t, value) 347 exception = traceback.format_exception_only(t, value)
348 error.append('Error executing a python function in %s:\n' % realfile) 348 error.append('Error executing a python function in %s:\n' % realfile)
349 349
350 # Strip 'us' from the stack (better_exec call) unless that was where the 350 # Strip 'us' from the stack (better_exec call) unless that was where the
351 # error came from 351 # error came from
352 if tb.tb_next is not None: 352 if tb.tb_next is not None:
353 tb = tb.tb_next 353 tb = tb.tb_next
@@ -746,9 +746,9 @@ def prunedir(topdir, ionice=False):
746# but thats possibly insane and suffixes is probably going to be small 746# but thats possibly insane and suffixes is probably going to be small
747# 747#
748def prune_suffix(var, suffixes, d): 748def prune_suffix(var, suffixes, d):
749 """ 749 """
750 See if var ends with any of the suffixes listed and 750 See if var ends with any of the suffixes listed and
751 remove it if found 751 remove it if found
752 """ 752 """
753 for suffix in suffixes: 753 for suffix in suffixes:
754 if suffix and var.endswith(suffix): 754 if suffix and var.endswith(suffix):
@@ -1001,9 +1001,9 @@ def umask(new_mask):
1001 os.umask(current_mask) 1001 os.umask(current_mask)
1002 1002
1003def to_boolean(string, default=None): 1003def to_boolean(string, default=None):
1004 """ 1004 """
1005 Check input string and return boolean value True/False/None 1005 Check input string and return boolean value True/False/None
1006 depending upon the checks 1006 depending upon the checks
1007 """ 1007 """
1008 if not string: 1008 if not string:
1009 return default 1009 return default