Mercurial > ~astiob > upreckon > hgweb
comparison compat.py @ 67:e0f8b28e15b5
Added a copyright & licensing notice about code borrowed from Python itself
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 26 Dec 2010 20:36:59 +0200 |
parents | 4ea7133ac25c |
children | e00ab6d1f0ba |
comparison
equal
deleted
inserted
replaced
66:34ba0b353fc6 | 67:e0f8b28e15b5 |
---|---|
22 # ABC's require the abc module and the specification of metaclasses, | 22 # ABC's require the abc module and the specification of metaclasses, |
23 # but in Python 2.5, the abc module does not exist, while in Python 3, | 23 # but in Python 2.5, the abc module does not exist, while in Python 3, |
24 # metaclasses are specified using a syntax totally incompatible | 24 # metaclasses are specified using a syntax totally incompatible |
25 # with Python 2 and not usable conditionally via exec() and such | 25 # with Python 2 and not usable conditionally via exec() and such |
26 # because it is a detail of the syntax of the class statement itself. | 26 # because it is a detail of the syntax of the class statement itself. |
27 | |
28 # Some code was adapted from Python 2.7.1 and its documentation. | |
29 # This code is clearly marked as such in preceding comments and is | |
30 # covered by copyright as follows: | |
31 # | |
32 # Copyright (c) 2001-2010 Python Software Foundation; all rights reserved. | |
33 # | |
34 # The code is used according to the PSF License Agreement | |
35 # for Python 2.7.1, whose full text is available from your local | |
36 # installation of Python (enter 'license()' in the interactive | |
37 # interpreter) or from the Web at the following URL: | |
38 # | |
39 # http://docs.python.org/2.7.1/license.html#terms-and-conditions-for-accessing-or-otherwise-using-python | |
27 | 40 |
28 try: | 41 try: |
29 import builtins | 42 import builtins |
30 except ImportError: | 43 except ImportError: |
31 import __builtin__ as builtins | 44 import __builtin__ as builtins |