summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/filemap.py2
-rw-r--r--scripts/lib/wic/msger.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/filemap.py b/scripts/lib/wic/filemap.py
index 2778be5e1b..f3240ba8d8 100644
--- a/scripts/lib/wic/filemap.py
+++ b/scripts/lib/wic/filemap.py
@@ -482,7 +482,7 @@ class FilemapFiemap(_FilemapBase):
482 self._log.debug("FilemapFiemap: get_mapped_ranges(%d, %d(%d))" 482 self._log.debug("FilemapFiemap: get_mapped_ranges(%d, %d(%d))"
483 % (start, count, start + count - 1)) 483 % (start, count, start + count - 1))
484 iterator = self._do_get_mapped_ranges(start, count) 484 iterator = self._do_get_mapped_ranges(start, count)
485 first_prev, last_prev = iterator.next() 485 first_prev, last_prev = next(iterator)
486 486
487 for first, last in iterator: 487 for first, last in iterator:
488 if last_prev == first - 1: 488 if last_prev == first - 1:
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py
index 4d8e704172..fb8336d94a 100644
--- a/scripts/lib/wic/msger.py
+++ b/scripts/lib/wic/msger.py
@@ -148,7 +148,7 @@ def _split_msg(head, msg):
148 return head, msg 148 return head, msg
149 149
150def get_loglevel(): 150def get_loglevel():
151 return (k for k, v in LOG_LEVELS.items() if v == LOG_LEVEL).next() 151 return next((k for k, v in LOG_LEVELS.items() if v == LOG_LEVEL))
152 152
153def set_loglevel(level): 153def set_loglevel(level):
154 global LOG_LEVEL 154 global LOG_LEVEL