Commit Graph

1554 Commits

Author SHA1 Message Date
Benjamin Peterson ee17858cce get rid of usage of the new module
--HG--
branch : trunk
2009-08-29 16:12:06 -05:00
Benjamin Peterson ee86950af4 use correct attribute to find the instance of a bound method
--HG--
branch : trunk
2009-08-29 16:07:48 -05:00
Benjamin Peterson a051eb1a05 only use cmp() in 2.x
--HG--
branch : trunk
2009-08-29 16:02:59 -05:00
Benjamin Peterson ad0c2edfd2 fix generators on python 3
--HG--
branch : trunk
2009-08-29 16:00:24 -05:00
Benjamin Peterson e63abd631f add py.builtin.callable
--HG--
branch : trunk
2009-08-29 15:46:50 -05:00
Benjamin Peterson 1781347999 use py.builtin.execfile()
--HG--
branch : trunk
2009-08-29 15:36:27 -05:00
Benjamin Peterson 01848ca821 add py.builtin.execfile to __init__.py
--HG--
branch : trunk
2009-08-29 15:36:14 -05:00
Benjamin Peterson 39eac1be28 add a py.builtin.execfile helper
--HG--
branch : trunk
2009-08-29 15:34:24 -05:00
Benjamin Peterson c95504e738 use py.builtin.builtins instead of import test
--HG--
branch : trunk
2009-08-29 15:18:21 -05:00
Benjamin Peterson 59892b8532 remove usage of the new module
--HG--
branch : trunk
2009-08-29 15:14:18 -05:00
Benjamin Peterson b3e8b2f6ab handle Queue renaming
--HG--
branch : trunk
2009-08-29 15:10:40 -05:00
Benjamin Peterson 7a4bd92e33 DeprecationWarning is in the builtin namespace
--HG--
branch : trunk
2009-08-29 15:08:34 -05:00
Benjamin Peterson 711552e84c use print function
--HG--
branch : trunk
2009-08-29 15:08:26 -05:00
Benjamin Peterson 9af223e6cb fix typos in converting test_oldmagic
--HG--
branch : trunk
2009-08-29 14:54:15 -05:00
Benjamin Peterson 8a6a3183ae guard against tests trying to import this
--HG--
branch : trunk
2009-08-29 14:50:44 -05:00
Benjamin Peterson 9018fe40e3 fix syntax for py3
--HG--
branch : trunk
2009-08-29 14:50:29 -05:00
Benjamin Peterson 4369c65790 fix some broken things from syntax conversion
--HG--
branch : trunk
2009-08-29 14:39:55 -05:00
Benjamin Peterson fb365e47dc make print write each argument individually
--HG--
branch : trunk
2009-08-29 14:39:37 -05:00
Benjamin Peterson 45a9aa536f fix need for py import
--HG--
branch : trunk
2009-08-29 14:16:54 -05:00
Benjamin Peterson ee1747fcb4 make all syntax compatible with 3.1 and 2.5
--HG--
branch : trunk
2009-08-29 13:04:48 -05:00
Benjamin Peterson 6f4c6d36a4 allow file to be compiled on 2.5
--HG--
branch : trunk
2009-08-29 11:36:08 -05:00
Benjamin Peterson 78d0d4656b add a test which checks the syntax of the pylib on various python versions
--HG--
branch : trunk
2009-08-29 11:31:42 -05:00
holger krekel b930565d56 * fix some syntax and 3k issues for py/path and py/process, tests only partially working
* have py.process.cmdexec return unicode/text (for now)
* rename py.builtin.basestring to _basestring

--HG--
branch : trunk
2009-08-29 16:40:03 +02:00
Benjamin Peterson 0f7a9e2da2 fix the rest of py/code tests on python 3
--HG--
branch : trunk
2009-08-29 09:37:56 -05:00
Benjamin Peterson 96ec12902d fix tests involving Queue
--HG--
branch : trunk
2009-08-29 09:02:20 -05:00
holger krekel 1dafcc6b37 fix py/io classes and tests to pass 3.1
introduce py.builtin._totext helper to make a 2k=unicode / 3k=str object, allow a string as data

--HG--
branch : trunk
2009-08-29 15:51:49 +02:00
holger krekel d75f7b2dd7 merge the benjamins and my changes, accidentally caused a new remote head
--HG--
branch : trunk
2009-08-29 14:10:06 +02:00
Benjamin Peterson c2d0c52086 replace iteritems() with items()
--HG--
branch : trunk
2009-08-29 07:03:19 -05:00
Benjamin Peterson 0014e65c1d fix interpreting is/is not/in/not in
--HG--
branch : trunk
2009-08-29 06:58:54 -05:00
holger krekel fc3178a394 fixing builtin tests and print_ builtin
--HG--
branch : trunk
2009-08-29 13:47:10 +02:00
Benjamin Peterson ac934bb2b6 only test View on 2.x
--HG--
branch : trunk
2009-08-28 20:28:09 -05:00
Benjamin Peterson 695c8038e0 new except syntax
--HG--
branch : trunk
2009-08-28 20:17:46 -05:00
Benjamin Peterson e596d9df13 move the old assertion reinterpreting implementation to _assertionold.py
Also, seperate out some common code from the two.

--HG--
branch : trunk
2009-08-28 20:13:49 -05:00
Benjamin Peterson 130046d245 remove magic directories from install
--HG--
branch : trunk
2009-08-28 18:51:14 -05:00
Benjamin Peterson e0e9953be2 implement assert debugging with builtin AST
--HG--
branch : trunk
2009-08-28 18:44:20 -05:00
Benjamin Peterson 3bdbb29c6f make the patched compile() work with AST
--HG--
branch : trunk
2009-08-28 18:39:51 -05:00
Benjamin Peterson c23cc3656c fix location of magic AssertionError
--HG--
branch : trunk
2009-08-28 18:07:28 -05:00
holger krekel 783e6aeb4d temporary checking towards 3.1 compatibility
introduced some helpers to py.builtin namespace which need some review
after things begin to work more nicely

--HG--
branch : trunk
2009-08-28 19:16:15 +02:00
holger krekel 5e95feaf90 * add print_, exec_ and _reraise helpers for 2-3 compatible code
* consolidate builtins implementation to be compatible with >=2.3

--HG--
branch : trunk
2009-08-28 16:25:29 +02:00
holger krekel 91f90d27ee simplify broken-repr test for python2.4
--HG--
branch : trunk
2009-08-28 13:00:36 +02:00
holger krekel d1932a30ed deprecate py.compat.doctest|subprocess|textwrap|...
(and for now pass through Python stdlib provided modules).

--HG--
branch : trunk
2009-08-27 21:12:55 +02:00
holger krekel 681d344eac deprecate py.magic.autopath() and finally remove py/magic directory.
--HG--
branch : trunk
2009-08-27 18:46:42 +02:00
holger krekel 13932b7f4b * deprecate py.magic.invoke/revoke in favour of
the new py.code.patch_builtins, py.code.unpatch_builtins

* deprecate py.magic.patch/revert

* deprecate py.magic.AssertionError in favour of py.code._AssertionError

* introduced pytest_assertion plugin.

--HG--
branch : trunk
2009-08-27 17:26:02 +02:00
holger krekel e391662cff merge 1.0.x branch to trunk, fix doc link
--HG--
branch : trunk
2009-08-27 12:10:42 +02:00
holger krekel 47d56e41ba fix tests to not fail if pyc-file-writing is disabled
--HG--
branch : 1.0.x
2009-08-27 12:05:12 +02:00
holger krekel c981ead40e switching release branch back to 1.0.x versioning
--HG--
branch : 1.0.x
2009-08-27 11:50:17 +02:00
holger krekel e7b86d808f Added tag 1.0.2 for changeset 4816e8b80602
--HG--
branch : 1.0.x
2009-08-27 11:43:52 +02:00
holger krekel f522838c77 finalizing doc bits for 1.0.2
--HG--
branch : 1.0.x
2009-08-27 11:43:46 +02:00
holger krekel 81f7891539 merging 1.0.x branch
--HG--
branch : trunk
2009-08-26 22:57:06 +02:00
holger krekel 3be875bfd2 some fixes and small doc updates, aiming to finalize 1.0.2
--HG--
branch : 1.0.x
2009-08-26 19:09:52 +02:00