view babel/compat.py @ 608:fad20cd945e8 trunk

improve developer experience when using a hg checkout of babel (#314)
author fschwarz
date Fri, 12 Oct 2012 20:47:47 +0000
parents 8ce41e60f90d
children
line wrap: on
line source
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://babel.edgewall.org/log/.

try:
    any = any
except NameError:
    def any(iterable):
        return filter(None, list(iterable))

try:
    import threading
except ImportError:
    import dummy_threading as threading
Copyright (C) 2012-2017 Edgewall Software