~ubuntu-branches/ubuntu/wily/openpyxl/wily

« back to all changes in this revision

Viewing changes to openpyxl/shared/compat/allany.py

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2015-07-01 10:34:46 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20150701103446-y1oktzsnpkukfv5u
Tags: 2.3.0~b1-1
* Fresh upstream beta-release
* debian/copyright -- fixups
* debian/watch - allow to update for alpha/beta releases
* debian/patches
  - up_python3_print - fix for compatibility with python3 (Closes: #790754)
  - deb_no_et_xml_file - there is no et_xmlfile package yet and it
    is optional anyways. Disable it in setup.py so dh*-python magic doesn't
    add unsatisfyiable depends
* debian/control
  - to play safe care only about python >= 2.6
* debian/rules
  - adjust path to changes.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2001-2011 Python Software Foundation
2
 
#
3
 
# License: PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
4
 
#          See http://www.opensource.org/licenses/Python-2.0 for full terms
5
 
 
6
 
import sys
7
 
 
8
 
if sys.version_info < (2, 5):
9
 
    def all(iterable):
10
 
        for element in iterable:
11
 
            if not element:
12
 
                return False
13
 
        return True
14
 
 
15
 
    def any(iterable):
16
 
        for element in iterable:
17
 
            if element:
18
 
                return True
19
 
        return False
20
 
else:
21
 
    all = all
22
 
    any = any
23
 
 
24
 
del sys