mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
daee9d9eae
commit
4d6c63a56c
|
@ -50,7 +50,7 @@ def clean_context():
|
|||
|
||||
def get_context():
|
||||
return _context
|
||||
|
||||
|
||||
|
||||
def set_context(ctx):
|
||||
_context = ctx
|
||||
|
@ -212,8 +212,8 @@ def explode_dep_versions2(s, *, sort=True):
|
|||
inversion = True
|
||||
# This list is based on behavior and supported comparisons from deb, opkg and rpm.
|
||||
#
|
||||
# Even though =<, <<, ==, !=, =>, and >> may not be supported,
|
||||
# we list each possibly valid item.
|
||||
# Even though =<, <<, ==, !=, =>, and >> may not be supported,
|
||||
# we list each possibly valid item.
|
||||
# The build system is responsible for validation of what it supports.
|
||||
if i.startswith(('<=', '=<', '<<', '==', '!=', '>=', '=>', '>>')):
|
||||
lastcmp = i[0:2]
|
||||
|
@ -347,7 +347,7 @@ def _print_exception(t, value, tb, realfile, text, context):
|
|||
exception = traceback.format_exception_only(t, value)
|
||||
error.append('Error executing a python function in %s:\n' % realfile)
|
||||
|
||||
# Strip 'us' from the stack (better_exec call) unless that was where the
|
||||
# Strip 'us' from the stack (better_exec call) unless that was where the
|
||||
# error came from
|
||||
if tb.tb_next is not None:
|
||||
tb = tb.tb_next
|
||||
|
@ -746,9 +746,9 @@ def prunedir(topdir, ionice=False):
|
|||
# but thats possibly insane and suffixes is probably going to be small
|
||||
#
|
||||
def prune_suffix(var, suffixes, d):
|
||||
"""
|
||||
"""
|
||||
See if var ends with any of the suffixes listed and
|
||||
remove it if found
|
||||
remove it if found
|
||||
"""
|
||||
for suffix in suffixes:
|
||||
if suffix and var.endswith(suffix):
|
||||
|
@ -1001,9 +1001,9 @@ def umask(new_mask):
|
|||
os.umask(current_mask)
|
||||
|
||||
def to_boolean(string, default=None):
|
||||
"""
|
||||
"""
|
||||
Check input string and return boolean value True/False/None
|
||||
depending upon the checks
|
||||
depending upon the checks
|
||||
"""
|
||||
if not string:
|
||||
return default
|
||||
|
|
Loading…
Reference in New Issue
Block a user