typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().
diff --git a/Lib/email/_compat21.py b/Lib/email/_compat21.py
index 0e0b3d0..1e1f666 100644
--- a/Lib/email/_compat21.py
+++ b/Lib/email/_compat21.py
@@ -63,7 +63,7 @@
     """
     parts = []
     for subpart in msg.walk():
-        if subpart.get_main_type('text') == maintype:
-            if subtype is None or subpart.get_subtype('plain') == subtype:
+        if subpart.get_content_maintype() == maintype:
+            if subtype is None or subpart.get_content_subtype() == subtype:
                 parts.append(subpart)
     return parts