Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42dcfb8f authored by Michael Wright's avatar Michael Wright
Browse files

Handle removed classes when looking for deprecated at birth APIs.

Removed APIs cause a KeyError when looking them up in the current API
surface. Instead, check if they're there first and if not just move on
since they no longer exist.

Bug: 129975435
Test: looked for new and deprecated system APIs
Change-Id: I46daa83ec8376190112418720f848afdf7cd7df2
parent 46669aa7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2132,6 +2132,10 @@ def show_deprecations_at_birth(cur, prev):

    # Remove all existing things so we're left with new
    for prev_clazz in prev.values():
        if prev_clazz.fullname not in cur:
            # The class was removed this release; we can safely ignore it.
            continue

        cur_clazz = cur[prev_clazz.fullname]
        if not is_interesting(cur_clazz): continue