- 23 Jan, 2014 3 commits
-
-
Arnaud Fontaine authored
This is much faster, eg defining a max function is about 39 times faster and even more on more complicated code: $ python -mtimeit -s 'code = "def max(a, b): return a > b and a or b"' 'exec code' 10000 loops, best of 3: 25.2 usec per loop $ python -mtimeit -s 'code = compile("def max(a, b): return a > b and a or b", "<string>", "exec")' 'exec code' 1000000 loops, best of 3: 0.632 usec per loop Another reason is for traceback/pdb readability as __file__ is displayed in the backtrace, but with 'exec' __file__ equals to '<string>', compile() allows to specify a readable name easily without having to override __file__. Also, set __file__ to the Component relative URL instead of the ID for readability sake.
-
Arnaud Fontaine authored
Signed-off-by: Julien Muchembled <jm@nexedi.com>
-
Mame Coumba Sall authored
-
- 21 Jan, 2014 3 commits
-
-
Julien Muchembled authored
-
Julien Muchembled authored
-
Julien Muchembled authored
-
- 17 Jan, 2014 6 commits
-
-
Vincent Pelletier authored
Fixes unittest.expectedFailure usage, allowing phasing out backportUnittest gradually (at least for the backport part).
-
Vincent Pelletier authored
-
Ivan Tyagov authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 16 Jan, 2014 16 commits
-
-
Kazuhiko Shiozaki authored
because they raise "The operation is insecure" error in recent Firefox.
-
Mame Coumba Sall authored
- It causes the movements to be created in another delivery if the start/stop dates are different from invoice date
-
Jérome Perrin authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Arnaud Fontaine authored
The code wrongly assumed that the .py file (containing source code of a Component) was on the filesystem upon import but importing from an archive uses tarfile and does not extract anything...
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
Get rid of refactoring/convention/spurious messages (ERP5 Naming Convention may be added later on). Also, Pylint cannot deal with dynamic accessor/module generation, so disable these error messages as well. Also, patch pylint to handle try/except for modules imports (https://www.logilab.org/ticket/9386).
-
Arnaud Fontaine authored
Likewise Pylint, compile() has no side effects as it juste compile source into a code object which may be passed to 'exec'.
-
Arnaud Fontaine authored
Pylint should be enough and has no side effects...
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
Aurel authored
-
Aurel authored
-
Aurel authored
-
Aurel authored
-
- 15 Jan, 2014 4 commits
-
-
Jérome Perrin authored
and remove AccountingTransactionLine_getParentUrl which is not used
-
Ivan Tyagov authored
-
Jérome Perrin authored
This reverts commit 5ec2f886.
-
Ivan Tyagov authored
-
- 13 Jan, 2014 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 10 Jan, 2014 1 commit
-
-
Aurel authored
-
- 09 Jan, 2014 1 commit
-
-
Mame Coumba Sall authored
-
- 04 Jan, 2014 5 commits
-
-
Sebastien Robin authored
-
Sebastien Robin authored
-
Sebastien Robin authored
-
Sebastien Robin authored
-
Sebastien Robin authored
-