mercurial/patch.py
changeset 48483 290f9c150f70
parent 48363 6a454e7053a1
child 48875 6000f5b25c9b
equal deleted inserted replaced
48482:d2fff292c265 48483:290f9c150f70
   107                 yield c
   107                 yield c
   108 
   108 
   109     def mimesplit(stream, cur):
   109     def mimesplit(stream, cur):
   110         def msgfp(m):
   110         def msgfp(m):
   111             fp = stringio()
   111             fp = stringio()
       
   112             # pytype: disable=wrong-arg-types
   112             g = mail.Generator(fp, mangle_from_=False)
   113             g = mail.Generator(fp, mangle_from_=False)
       
   114             # pytype: enable=wrong-arg-types
   113             g.flatten(m)
   115             g.flatten(m)
   114             fp.seek(0)
   116             fp.seek(0)
   115             return fp
   117             return fp
   116 
   118 
   117         for line in stream:
   119         for line in stream: