summaryrefslogtreecommitdiff
path: root/compat.py
Commit message (Collapse)AuthorAgeFilesLines
* [compat] use instance of the class to have a real instance method (closes: ↵Sylvain Th?nault2011-10-251-1/+2
| | | | | | | | | | | | #79268) Details: By using `klass` instead of an instance of the class, we bounded the method as a class method. During execution, the monkey-patched method considered `self` as a reference to the class and further use of `self` failed miserably.
* fix typoSylvain Th?nault2011-09-261-2/+2
|
* fix py3k compat (closes #75290)Aurelien Campeas2011-09-211-6/+15
| | | | | New: - update compat module for callable() and method_type()
* [packaging] prepare 0.55.1logilab-common-version-0.55.1Nicolas Chauvat2011-03-281-1/+1
|
* fix testsEmile Anclin2010-11-221-6/+7
|
* compat : remove 2.3 supportEmile Anclin2010-11-221-63/+6
|
* 2to3: fix a lot of white space after commaEmile Anclin2010-11-151-1/+1
|
* py3k: rename file; write a compat.reloadEmile Anclin2010-11-021-0/+2
|
* Py3k: fix deprecation warningEmile Anclin2010-10-181-2/+3
|
* typoSylvain Th?nault2010-10-121-2/+2
|
* remove py2.2 compat ; use deprecation warningsEmile Anclin2010-10-061-139/+18
|
* [tests] fix usage of os.access in unittest_fileutils.pyJulien Jehannet2010-09-301-1/+1
| | | | | | os.access is often problematic in some environments (chroot, fakeroot, nfs, ...) since it uses read uid instead of effective uid in contrast to other file utilities found in posix world. Consider using os.stat() and stat constants when possible.
* [pkginfo] fix json import logic (we don't want a new dependency)Julien Jehannet2010-09-301-4/+6
|
* [compat] add more compat statement + update docstringJulien Jehannet2010-09-281-0/+6
|
* [compat] add compat import + update docstringJulien Jehannet2010-09-281-4/+29
|
* [py3k] compat: add str_to_bytes and str_encodeEmile Anclin2010-09-211-0/+14
| | | | | | In py3k, things are different: we will sometimes need to convert str to bytes if we want to write data into a file; and on other times we don't need to encode str to something
* [py3k] file is replaced in 3k by some io classEmile Anclin2010-09-211-0/+7
|
* [py3k] compat : __builtin__ will be replaced by builtins in py3kEmile Anclin2010-09-211-2/+2
|
* [py3k] define raw_input for py3.xEmile Anclin2010-09-211-0/+5
|
* [py3k] add callable to compat.pyEmile Anclin2010-09-131-0/+8
| | | | | import "callable" where needed. We can't use collections in python <= 2.5
* fix some pylint detected errorsSylvain Th?nault2010-08-271-5/+3
|
* Add a InheritableSet to lgc.compatPierre-Yves David2010-08-181-1/+15
| | | | | | | | | | On version prior to 2.5 subclassing a set is troublesome as the set initialisation is done in set.__new__ instead of set.__init__. Any additional argument is processed as is by the __new__ methods leading to TypeError. It's not the case in 2.5 and above. We create a InheritableSet class which only differ of set for version prior do 2.5. It overwrite the __new__ methods to only pass the first argument to set.__new__ and init the object as expected afterward.
* missing replacement in disclaimer; include COPYING.LESSER in manifest; kill ↵Sylvain Th?nault2010-04-281-1/+1
| | | | DEPENDS file
* propre licensing information (LGPL-2.1). Hope I get it right this time.Sylvain Th?nault2010-04-281-3/+20
|
* update license, logilab-common is licensed under LGPLv2Adrien Di Mascio2010-04-131-1/+1
|
* Add os.path.relpath function in logical.common.compat for pre-2.6 python.Pierre-Yves David2009-12-071-0/+23
|
* include Dotan Barak spell fixes patchSylvain Th?nault2009-11-231-3/+3
|
* remove deprecated codeSylvain Th?nault2009-08-071-5/+0
|
* subprocess doesn't exists w/ python < 2.4 or in gae environmentSylvain Th?nault2009-06-291-45/+49
|
* d-t-wSylvain Th?nault2009-06-291-17/+15
|
* Python2.5 subprocess added functions and exceptions (call() + check_call())Julien Jehannet2008-11-211-0/+48
|
* improve doc for better epydoc generation (again).Nicolas Chauvat2008-07-141-4/+2
|
* improve doc for better epydoc generation.Nicolas Chauvat2008-07-131-18/+9
|
* compat: adds a max function taking 'key' as keyword argumentPierre-Yves David2008-06-241-0/+40
|
* better descriptionAlexandre Fayolle2008-05-011-2/+2
|
* reorganize, deprecation warning for deprecated stuff, remove old deprecated ↵Sylvain2006-11-081-2/+2
| | | | function/methods
* apycot fixesSylvain2006-10-251-2/+1
|
* don't need to cast elements to boolAdrien Di Mascio2006-06-201-2/+2
|
* adds any/all builtinsAdrien Di Mascio2006-06-201-0/+25
|
* full implementation of sortedAdrien Di Mascio2006-06-191-3/+12
|
* add cmp argument to sortedsyt2006-06-071-2/+2
|
* made frozenset available in python2.4Adrien Di Mascio2006-05-151-1/+2
|
* frozenset (basic) implementation in compat.pyAdrien Di Mascio2006-05-121-16/+51
|
* forget the past.root2006-04-261-0/+145
forget the past.