~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
algorithms.c (gprp_pynew): Don't double-bump the new object's refcount.
[catacomb-python]
/
pock
diff --git
a/pock
b/pock
index
f4aeaa9
..
5d7cc50
100644
(file)
--- a/
pock
+++ b/
pock
@@
-27,7
+27,7
@@
###--------------------------------------------------------------------------
### Imported modules.
###--------------------------------------------------------------------------
### Imported modules.
-from sys import argv, stdin, stdout, stderr
+
import sys as SYS;
from sys import argv, stdin, stdout, stderr
import os as OS
import itertools as I
import math as M
import os as OS
import itertools as I
import math as M
@@
-35,6
+35,10
@@
import optparse as OP
import catacomb as C
import catacomb as C
+if SYS.version_info >= (3,):
+ xrange = range
+ range = lambda *args: list(xrange(*args))
+
###--------------------------------------------------------------------------
### Utilities.
###--------------------------------------------------------------------------
### Utilities.