VMM: Removed module pycompat. v0.7.x
authorPascal Volk <user@localhost.localdomain.org>
Sun, 04 Nov 2012 18:33:11 +0000
branchv0.7.x
changeset 637 ca6621caff2f
parent 636 27334cfc0c90
child 638 0de0b9e75c9f
VMM: Removed module pycompat.
VirtualMailManager/alias.py
VirtualMailManager/catchall.py
VirtualMailManager/domain.py
VirtualMailManager/handler.py
VirtualMailManager/maillocation.py
VirtualMailManager/pycompat/__init__.py
VirtualMailManager/quotalimit.py
VirtualMailManager/transport.py
setup.py
--- a/VirtualMailManager/alias.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/alias.py	Sun Nov 04 18:33:11 2012 +0000
@@ -13,7 +13,6 @@
      EmailAddress, DestinationEmailAddress as DestAddr
 from VirtualMailManager.errors import AliasError as AErr
 from VirtualMailManager.ext.postconf import Postconf
-from VirtualMailManager.pycompat import all
 from VirtualMailManager.constants import \
      ALIAS_EXCEEDS_EXPANSION_LIMIT, NO_SUCH_ALIAS, NO_SUCH_DOMAIN
 
--- a/VirtualMailManager/catchall.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/catchall.py	Sun Nov 04 18:33:11 2012 +0000
@@ -23,7 +23,6 @@
      EmailAddress, DestinationEmailAddress as DestAddr
 from VirtualMailManager.errors import AliasError as AErr
 from VirtualMailManager.ext.postconf import Postconf
-from VirtualMailManager.pycompat import all
 from VirtualMailManager.constants import \
      ALIAS_EXCEEDS_EXPANSION_LIMIT, NO_SUCH_ALIAS, NO_SUCH_DOMAIN
 
--- a/VirtualMailManager/domain.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/domain.py	Sun Nov 04 18:33:11 2012 +0000
@@ -18,7 +18,6 @@
 from VirtualMailManager.common import validate_transport
 from VirtualMailManager.errors import VMMError, DomainError as DomErr
 from VirtualMailManager.maillocation import MailLocation
-from VirtualMailManager.pycompat import all, any
 from VirtualMailManager.quotalimit import QuotaLimit
 from VirtualMailManager.serviceset import ServiceSet
 from VirtualMailManager.transport import Transport
--- a/VirtualMailManager/handler.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/handler.py	Sun Nov 04 18:33:11 2012 +0000
@@ -37,7 +37,6 @@
 from VirtualMailManager.errors import \
      DomainError, NotRootError, PermissionError, VMMError
 from VirtualMailManager.mailbox import new as new_mailbox
-from VirtualMailManager.pycompat import all, any
 from VirtualMailManager.quotalimit import QuotaLimit
 from VirtualMailManager.relocated import Relocated
 from VirtualMailManager.serviceset import ServiceSet, SERVICES
--- a/VirtualMailManager/maillocation.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/maillocation.py	Sun Nov 04 18:33:11 2012 +0000
@@ -12,7 +12,6 @@
 
 from VirtualMailManager.constants import MAILLOCATION_INIT
 from VirtualMailManager.errors import MailLocationError as MLErr
-from VirtualMailManager.pycompat import all
 
 
 __all__ = ('MailLocation', 'known_format')
--- a/VirtualMailManager/pycompat/__init__.py	Sun Nov 04 18:02:19 2012 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-# -*- coding: UTF-8 -*-
-# Copyright (c) 2010 - 2012, Pascal Volk
-# See COPYING for distribution information.
-
-"""
-    VirtualMailManager.pycompat
-
-    VirtualMailManager's compatibility stuff for Python 2.4
-"""
-
-# http://docs.python.org/library/functions.html#all
-try:
-    all = all
-except NameError:
-    def all(iterable):
-        """Return True if all elements of the *iterable* are true
-        (or if the iterable is empty).
-
-        """
-        for element in iterable:
-            if not element:
-                return False
-        return True
-
-
-# http://docs.python.org/library/functions.html#any
-try:
-    any = any
-except NameError:
-    def any(iterable):
-        """Return True if any element of the *iterable* is true.  If the
-        iterable is empty, return False.
-
-        """
-        for element in iterable:
-            if element:
-                return True
-        return False
--- a/VirtualMailManager/quotalimit.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/quotalimit.py	Sun Nov 04 18:33:11 2012 +0000
@@ -9,8 +9,6 @@
     for domains and accounts.
 """
 
-from VirtualMailManager.pycompat import all
-
 _ = lambda msg: msg
 
 
--- a/VirtualMailManager/transport.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/VirtualMailManager/transport.py	Sun Nov 04 18:33:11 2012 +0000
@@ -9,8 +9,6 @@
     domains and accounts.
 """
 
-from VirtualMailManager.pycompat import any
-
 _ = lambda msg: msg
 
 
--- a/setup.py	Sun Nov 04 18:02:19 2012 +0000
+++ b/setup.py	Sun Nov 04 18:33:11 2012 +0000
@@ -20,7 +20,6 @@
     'VirtualMailManager',
     'VirtualMailManager.cli',
     'VirtualMailManager.ext',
-    'VirtualMailManager.pycompat',
 ]
 # http://pypi.python.org/pypi?%3Aaction=list_classifiers
 classifiers = ['Development Status :: 5 - Production/Stable',