File: create.py

package info (click to toggle)
python-flanker 0.9.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,976 kB
  • sloc: python: 9,308; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from flanker import _email
from flanker.mime.message.fallback.part import FallbackMimePart


def from_string(string):
    return FallbackMimePart(_email.message_from_string(string))


def from_python(message):
    return FallbackMimePart(message)