Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove a license that no long applies to any code, and add a comment …

…for the next person who wants to do some gardening.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cc3803e147a7bc63ec2cb447220445d8fab5ecdb 1 parent 8bb46d8
Alex Gaynor authored March 28, 2011

Showing 1 changed file with 4 additions and 51 deletions. Show diff stats Hide diff stats

  1. 55  django/utils/functional.py
55  django/utils/functional.py
... ...
@@ -1,56 +1,9 @@
1  
-# License for code in this file that was taken from Python 2.5.
2  
-
3  
-# PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
4  
-# --------------------------------------------
5  
-#
6  
-# 1. This LICENSE AGREEMENT is between the Python Software Foundation
7  
-# ("PSF"), and the Individual or Organization ("Licensee") accessing and
8  
-# otherwise using this software ("Python") in source or binary form and
9  
-# its associated documentation.
10  
-#
11  
-# 2. Subject to the terms and conditions of this License Agreement, PSF
12  
-# hereby grants Licensee a nonexclusive, royalty-free, world-wide
13  
-# license to reproduce, analyze, test, perform and/or display publicly,
14  
-# prepare derivative works, distribute, and otherwise use Python
15  
-# alone or in any derivative version, provided, however, that PSF's
16  
-# License Agreement and PSF's notice of copyright, i.e., "Copyright (c)
17  
-# 2001, 2002, 2003, 2004, 2005, 2006, 2007 Python Software Foundation;
18  
-# All Rights Reserved" are retained in Python alone or in any derivative
19  
-# version prepared by Licensee.
20  
-#
21  
-# 3. In the event Licensee prepares a derivative work that is based on
22  
-# or incorporates Python or any part thereof, and wants to make
23  
-# the derivative work available to others as provided herein, then
24  
-# Licensee hereby agrees to include in any such work a brief summary of
25  
-# the changes made to Python.
26  
-#
27  
-# 4. PSF is making Python available to Licensee on an "AS IS"
28  
-# basis.  PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
29  
-# IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
30  
-# DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
31  
-# FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
32  
-# INFRINGE ANY THIRD PARTY RIGHTS.
33  
-#
34  
-# 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
35  
-# FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
36  
-# A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
37  
-# OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
38  
-#
39  
-# 6. This License Agreement will automatically terminate upon a material
40  
-# breach of its terms and conditions.
41  
-#
42  
-# 7. Nothing in this License Agreement shall be deemed to create any
43  
-# relationship of agency, partnership, or joint venture between PSF and
44  
-# Licensee.  This License Agreement does not grant permission to use PSF
45  
-# trademarks or trade name in a trademark sense to endorse or promote
46  
-# products or services of Licensee, or any third party.
47  
-#
48  
-# 8. By copying, installing or otherwise using Python, Licensee
49  
-# agrees to be bound by the terms and conditions of this License
50  
-# Agreement.
51  
-
52 1
 from functools import wraps
53 2
 
  3
+
  4
+# You can't trivially replace this `functools.partial` because this binds to
  5
+# classes and returns bound instances, whereas functools.partial (on CPython)
  6
+# is a type and it's instances don't bind.
54 7
 def curry(_curried_func, *args, **kwargs):
55 8
     def _curried(*moreargs, **morekwargs):
56 9
         return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))

0 notes on commit cc3803e

Please sign in to comment.
Something went wrong with that request. Please try again.