summaryrefslogtreecommitdiff
path: root/modules/language/python/module/email
diff options
context:
space:
mode:
authorStefan Israelsson Tampe <stefan.itampe@gmail.com>2019-03-13 09:20:18 +0100
committerStefan Israelsson Tampe <stefan.itampe@gmail.com>2019-03-13 09:20:18 +0100
commit6b0070bb5c37b118eb09c1ec023999bbdf1781e7 (patch)
tree7bbc9df1036b0a7733ea45f3dd74a199929176e1 /modules/language/python/module/email
parente1bf1a32c8453ea485365e9704e7cb983db3b4bb (diff)
parentdb36b6633b5ccd709eac44635ca88e8683ddb4e3 (diff)
Merge branch 'master' of https://gitlab.com/python-on-guile/python-on-guile
Diffstat (limited to 'modules/language/python/module/email')
-rw-r--r--modules/language/python/module/email/__pycache__/__init__.cpython-36.pycbin1669 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/_encoded_words.cpython-36.pycbin5644 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/_header_value_parser.cpython-36.pycbin75987 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/_parseaddr.cpython-36.pycbin12440 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/_policybase.cpython-36.pycbin14828 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/base64mime.cpython-36.pycbin3218 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/charset.cpython-36.pycbin11511 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/contentmanager.cpython-36.pycbin7288 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/encoders.cpython-36.pycbin1640 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/errors.cpython-36.pycbin5957 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/feedparser.cpython-36.pycbin10644 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/generator.cpython-36.pycbin12513 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/header.cpython-36.pycbin16480 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/headerregistry.cpython-36.pycbin21278 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/iterators.cpython-36.pycbin1910 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/message.cpython-36.pycbin37992 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/parser.cpython-36.pycbin5725 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/policy.cpython-36.pycbin9618 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/quoprimime.cpython-36.pycbin7680 -> 0 bytes
-rw-r--r--modules/language/python/module/email/__pycache__/utils.cpython-36.pycbin9874 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/#audio.py#76
-rw-r--r--modules/language/python/module/email/mime/#image.py#49
l---------modules/language/python/module/email/mime/.#audio.py1
-rw-r--r--modules/language/python/module/email/mime/__pycache__/__init__.cpython-36.pycbin124 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/application.cpython-36.pycbin1435 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/audio.cpython-36.pycbin2594 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/base.cpython-36.pycbin1060 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/image.cpython-36.pycbin1880 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/message.cpython-36.pycbin1309 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/multipart.cpython-36.pycbin1531 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/nonmultipart.cpython-36.pycbin746 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/__pycache__/text.cpython-36.pycbin1293 -> 0 bytes
-rw-r--r--modules/language/python/module/email/mime/application.py~37
-rw-r--r--modules/language/python/module/email/mime/multipart.py~48
34 files changed, 0 insertions, 211 deletions
diff --git a/modules/language/python/module/email/__pycache__/__init__.cpython-36.pyc b/modules/language/python/module/email/__pycache__/__init__.cpython-36.pyc
deleted file mode 100644
index 2c8ef2d..0000000
--- a/modules/language/python/module/email/__pycache__/__init__.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/_encoded_words.cpython-36.pyc b/modules/language/python/module/email/__pycache__/_encoded_words.cpython-36.pyc
deleted file mode 100644
index 16b86db..0000000
--- a/modules/language/python/module/email/__pycache__/_encoded_words.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/_header_value_parser.cpython-36.pyc b/modules/language/python/module/email/__pycache__/_header_value_parser.cpython-36.pyc
deleted file mode 100644
index 18f3d03..0000000
--- a/modules/language/python/module/email/__pycache__/_header_value_parser.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/_parseaddr.cpython-36.pyc b/modules/language/python/module/email/__pycache__/_parseaddr.cpython-36.pyc
deleted file mode 100644
index 08e82d8..0000000
--- a/modules/language/python/module/email/__pycache__/_parseaddr.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/_policybase.cpython-36.pyc b/modules/language/python/module/email/__pycache__/_policybase.cpython-36.pyc
deleted file mode 100644
index 2d0888c..0000000
--- a/modules/language/python/module/email/__pycache__/_policybase.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/base64mime.cpython-36.pyc b/modules/language/python/module/email/__pycache__/base64mime.cpython-36.pyc
deleted file mode 100644
index 00baa62..0000000
--- a/modules/language/python/module/email/__pycache__/base64mime.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/charset.cpython-36.pyc b/modules/language/python/module/email/__pycache__/charset.cpython-36.pyc
deleted file mode 100644
index 3035f1c..0000000
--- a/modules/language/python/module/email/__pycache__/charset.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/contentmanager.cpython-36.pyc b/modules/language/python/module/email/__pycache__/contentmanager.cpython-36.pyc
deleted file mode 100644
index 260fe06..0000000
--- a/modules/language/python/module/email/__pycache__/contentmanager.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/encoders.cpython-36.pyc b/modules/language/python/module/email/__pycache__/encoders.cpython-36.pyc
deleted file mode 100644
index 3e79480..0000000
--- a/modules/language/python/module/email/__pycache__/encoders.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/errors.cpython-36.pyc b/modules/language/python/module/email/__pycache__/errors.cpython-36.pyc
deleted file mode 100644
index 4ee3c07..0000000
--- a/modules/language/python/module/email/__pycache__/errors.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/feedparser.cpython-36.pyc b/modules/language/python/module/email/__pycache__/feedparser.cpython-36.pyc
deleted file mode 100644
index 426ef0a..0000000
--- a/modules/language/python/module/email/__pycache__/feedparser.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/generator.cpython-36.pyc b/modules/language/python/module/email/__pycache__/generator.cpython-36.pyc
deleted file mode 100644
index d35527f..0000000
--- a/modules/language/python/module/email/__pycache__/generator.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/header.cpython-36.pyc b/modules/language/python/module/email/__pycache__/header.cpython-36.pyc
deleted file mode 100644
index 64773a6..0000000
--- a/modules/language/python/module/email/__pycache__/header.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/headerregistry.cpython-36.pyc b/modules/language/python/module/email/__pycache__/headerregistry.cpython-36.pyc
deleted file mode 100644
index 07e5886..0000000
--- a/modules/language/python/module/email/__pycache__/headerregistry.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/iterators.cpython-36.pyc b/modules/language/python/module/email/__pycache__/iterators.cpython-36.pyc
deleted file mode 100644
index c34d29a..0000000
--- a/modules/language/python/module/email/__pycache__/iterators.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/message.cpython-36.pyc b/modules/language/python/module/email/__pycache__/message.cpython-36.pyc
deleted file mode 100644
index 942f356..0000000
--- a/modules/language/python/module/email/__pycache__/message.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/parser.cpython-36.pyc b/modules/language/python/module/email/__pycache__/parser.cpython-36.pyc
deleted file mode 100644
index 1b32ef6..0000000
--- a/modules/language/python/module/email/__pycache__/parser.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/policy.cpython-36.pyc b/modules/language/python/module/email/__pycache__/policy.cpython-36.pyc
deleted file mode 100644
index 63f6b6b..0000000
--- a/modules/language/python/module/email/__pycache__/policy.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/quoprimime.cpython-36.pyc b/modules/language/python/module/email/__pycache__/quoprimime.cpython-36.pyc
deleted file mode 100644
index 359281d..0000000
--- a/modules/language/python/module/email/__pycache__/quoprimime.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/__pycache__/utils.cpython-36.pyc b/modules/language/python/module/email/__pycache__/utils.cpython-36.pyc
deleted file mode 100644
index e309ca5..0000000
--- a/modules/language/python/module/email/__pycache__/utils.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/#audio.py# b/modules/language/python/module/email/mime/#audio.py#
deleted file mode 100644
index ccd08fe..0000000
--- a/modules/language/python/module/email/mime/#audio.py#
+++ /dev/null
@@ -1,76 +0,0 @@
-module(email,mime,audio)
-
-# Copyright (C) 2001-2007 Python Software Foundation
-# Author: Anthony Baxter
-# Contact: email-sig@python.org
-
-"""Class representing audio/* type MIME documents."""
-
-__all__ = ['MIMEAudio']
-
-import sndhdr
-
-from io import BytesIO
-import email.encoders as encoders
-from email.mime.nonmultipart import MIMENonMultipart
-
-
-
-_sndhdr_MIMEmap = {'au' : 'basic',
- 'wav' :'x-wav',
- 'aiff':'x-aiff',
- 'aifc':'x-aiff',
- }
-
-# There are others in sndhdr that don't have MIME types. :(
-# Additional ones to be added to sndhdr? midi, mp3, realaudio, wma??
-def _whatsnd(data):
- """Try to identify a sound file type.
-
- sndhdr.what() has a pretty cruddy interface, unfortunately. This is why
- we re-do it here. It would be easier to reverse engineer the Unix 'file'
- command and use the standard 'magic' file, as shipped with a modern Unix.
- """
- hdr = data[:512]
- fakefile = BytesIO(hdr)
- for testfn in sndhdr.tests:
- res = testfn(hdr, fakefile)
- if res is not None:
- return _sndhdr_MIMEmap.get(res[0])
- return None
-
-
-
-class MIMEAudio(MIMENonMultipart):
- """Class for generating audio/* MIME documents."""
-
- def __init__(self, _audiodata, _subtype=None,
- _encoder=encoders.encode_base64, *, policy=None, **_params):
- """Create an audio/* type MIME document.
-
- _audiodata is a string containing the raw audio data. If this data
- can be decoded by the standard Python `sndhdr' module, then the
- subtype will be automatically included in the Content-Type header.
- Otherwise, you can specify the specific audio subtype via the
- _subtype parameter. If _subtype is not given, and no subtype can be
- guessed, a TypeError is raised.
-
- _encoder is a function which will perform the actual encoding for
- transport of the image data. It takes one argument, which is this
- Image instance. It should use get_payload() and set_payload() to
- change the payload to the encoded form. It should also add any
- Content-Transfer-Encoding or other headers to the message as
- necessary. The default encoding is Base64.
-
- Any additional keyword arguments are passed to the base class
- constructor, which turns them into parameters on the Content-Type
- header.
- """
- if _subtype is None:
- _subtype = _whatsnd(_audiodata)
- if _subtype is None:
- raise TypeError('Could not find audio MIME subtype')
- MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy,
- **_params)
- self.set_payload(_audiodata)
- _encoder(self)
diff --git a/modules/language/python/module/email/mime/#image.py# b/modules/language/python/module/email/mime/#image.py#
deleted file mode 100644
index 5346dac..0000000
--- a/modules/language/python/module/email/mime/#image.py#
+++ /dev/null
@@ -1,49 +0,0 @@
-module(email,mime,image)
-
-# Copyright (C) 2001-2006 Python Software Foundation
-# Author: Barry Warsaw
-# Contact: email-sig@python.org
-
-"""Class representing image/* type MIME documents."""
-
-__all__ = ['MIMEImage']
-
-import imghdr
-
-import email.encoders as encoders
-from email.mime.nonmultipart import MIMENonMultipart
-
-
-
-class MIMEImage(MIMENonMultipart):
- """Class for generating image/* type MIME documents."""
-
- def __init__(self, _imagedata, _subtype=None,
- _encoder=encoders.encode_base64, *, policy=None, **_params):
- """Create an image/* type MIME document.
-
- _imagedata is a string containing the raw image data. If this data
- can be decoded by the standard Python `imghdr' module, then the
- subtype will be automatically included in the Content-Type header.
- Otherwise, you can specify the specific image subtype via the _subtype
- parameter.
-
- _encoder is a function which will perform the actual encoding for
- transport of the image data. It takes one argument, which is this
- Image instance. It should use get_payload() and set_payload() to
- change the payload to the encoded form. It should also add any
- Content-Transfer-Encoding or other headers to the message as
- necessary. The default encoding is Base64.
-
- Any additional keyword arguments are passed to the base class
- constructor, which turns them into parameters on the Content-Type
- header.
- """
- if _subtype is None:
- _subtype = imghdr.what(None, _imagedata)
- if _subtype is None:
- raise TypeError('Could not guess image MIME subtype')
- MIMENonMultipart.__init__(self, 'image', _subtype, policy=policy,
- **_params)
- self.set_payload(_imagedata)
- _encoder(self)
diff --git a/modules/language/python/module/email/mime/.#audio.py b/modules/language/python/module/email/mime/.#audio.py
deleted file mode 120000
index 6876c49..0000000
--- a/modules/language/python/module/email/mime/.#audio.py
+++ /dev/null
@@ -1 +0,0 @@
-stis@lapwine.3569:1536593089 \ No newline at end of file
diff --git a/modules/language/python/module/email/mime/__pycache__/__init__.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/__init__.cpython-36.pyc
deleted file mode 100644
index c9ca4cc..0000000
--- a/modules/language/python/module/email/mime/__pycache__/__init__.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/application.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/application.cpython-36.pyc
deleted file mode 100644
index cafb6ca..0000000
--- a/modules/language/python/module/email/mime/__pycache__/application.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/audio.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/audio.cpython-36.pyc
deleted file mode 100644
index 5b737e7..0000000
--- a/modules/language/python/module/email/mime/__pycache__/audio.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/base.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/base.cpython-36.pyc
deleted file mode 100644
index 6ece8ab..0000000
--- a/modules/language/python/module/email/mime/__pycache__/base.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/image.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/image.cpython-36.pyc
deleted file mode 100644
index 3ba9d75..0000000
--- a/modules/language/python/module/email/mime/__pycache__/image.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/message.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/message.cpython-36.pyc
deleted file mode 100644
index 5eac587..0000000
--- a/modules/language/python/module/email/mime/__pycache__/message.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/multipart.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/multipart.cpython-36.pyc
deleted file mode 100644
index d0b31f4..0000000
--- a/modules/language/python/module/email/mime/__pycache__/multipart.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/nonmultipart.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/nonmultipart.cpython-36.pyc
deleted file mode 100644
index 555b295..0000000
--- a/modules/language/python/module/email/mime/__pycache__/nonmultipart.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/__pycache__/text.cpython-36.pyc b/modules/language/python/module/email/mime/__pycache__/text.cpython-36.pyc
deleted file mode 100644
index b34d005..0000000
--- a/modules/language/python/module/email/mime/__pycache__/text.cpython-36.pyc
+++ /dev/null
Binary files differ
diff --git a/modules/language/python/module/email/mime/application.py~ b/modules/language/python/module/email/mime/application.py~
deleted file mode 100644
index 6877e55..0000000
--- a/modules/language/python/module/email/mime/application.py~
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright (C) 2001-2006 Python Software Foundation
-# Author: Keith Dart
-# Contact: email-sig@python.org
-
-"""Class representing application/* type MIME documents."""
-
-__all__ = ["MIMEApplication"]
-
-from email import encoders
-from email.mime.nonmultipart import MIMENonMultipart
-
-
-class MIMEApplication(MIMENonMultipart):
- """Class for generating application/* MIME documents."""
-
- def __init__(self, _data, _subtype='octet-stream',
- _encoder=encoders.encode_base64, *, policy=None, **_params):
- """Create an application/* type MIME document.
-
- _data is a string containing the raw application data.
-
- _subtype is the MIME content type subtype, defaulting to
- 'octet-stream'.
-
- _encoder is a function which will perform the actual encoding for
- transport of the application data, defaulting to base64 encoding.
-
- Any additional keyword arguments are passed to the base class
- constructor, which turns them into parameters on the Content-Type
- header.
- """
- if _subtype is None:
- raise TypeError('Invalid application MIME subtype')
- MIMENonMultipart.__init__(self, 'application', _subtype, policy=policy,
- **_params)
- self.set_payload(_data)
- _encoder(self)
diff --git a/modules/language/python/module/email/mime/multipart.py~ b/modules/language/python/module/email/mime/multipart.py~
deleted file mode 100644
index 2d3f288..0000000
--- a/modules/language/python/module/email/mime/multipart.py~
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright (C) 2002-2006 Python Software Foundation
-# Author: Barry Warsaw
-# Contact: email-sig@python.org
-
-"""Base class for MIME multipart/* type messages."""
-
-__all__ = ['MIMEMultipart']
-
-from email.mime.base import MIMEBase
-
-
-
-class MIMEMultipart(MIMEBase):
- """Base class for MIME multipart/* type messages."""
-
- def __init__(self, _subtype='mixed', boundary=None, _subparts=None,
- *, policy=None,
- **_params):
- """Creates a multipart/* type message.
-
- By default, creates a multipart/mixed message, with proper
- Content-Type and MIME-Version headers.
-
- _subtype is the subtype of the multipart content type, defaulting to
- `mixed'.
-
- boundary is the multipart boundary string. By default it is
- calculated as needed.
-
- _subparts is a sequence of initial subparts for the payload. It
- must be an iterable object, such as a list. You can always
- attach new subparts to the message by using the attach() method.
-
- Additional parameters for the Content-Type header are taken from the
- keyword arguments (or passed into the _params argument).
- """
- MIMEBase.__init__(self, 'multipart', _subtype, policy=policy, **_params)
-
- # Initialise _payload to an empty list as the Message superclass's
- # implementation of is_multipart assumes that _payload is a list for
- # multipart messages.
- self._payload = []
-
- if _subparts:
- for p in _subparts:
- self.attach(p)
- if boundary:
- self.set_boundary(boundary)