Skip to content

Commit c5a95ae

Browse files
committed
Remove use of psyco
The psyco package has been declared umaintained and dead. It is no longer receiving bug fixes including for security issues. From http://psyco.sourceforge.net/ > 12 March 2012 > > Psyco is unmaintained and dead. Please look at PyPy for the > state-of-the-art in JIT compilers for Python. This avoid using and supporting an unmaintained package (since 2012). Users should use PyPy for the latest and greatest in Python JIT.
1 parent 6db75c9 commit c5a95ae

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

scripts/runxlrd.py

+1-11
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131

3232
options = None
3333
if __name__ == "__main__":
34-
35-
PSYCO = 0
36-
3734
import xlrd
3835
import sys
3936
import time
@@ -232,7 +229,7 @@ def count_xfs(bk):
232229

233230
def main(cmd_args):
234231
import optparse
235-
global options, PSYCO
232+
global options
236233
usage = "\n%prog [options] command [input-file-patterns]\n" + cmd_doc
237234
oparser = optparse.OptionParser(usage)
238235
oparser.add_option(
@@ -321,10 +318,6 @@ def main(cmd_args):
321318
n_unreachable = gc.collect()
322319
if n_unreachable:
323320
print("GC before open:", n_unreachable, "unreachable objects")
324-
if PSYCO:
325-
import psyco
326-
psyco.full()
327-
PSYCO = 0
328321
try:
329322
t0 = time.time()
330323
bk = xlrd.open_workbook(
@@ -413,8 +406,5 @@ def main(cmd_args):
413406
import pstats
414407
p = pstats.Stats('YYYY.prof')
415408
p.strip_dirs().sort_stats('cumulative').print_stats(30)
416-
elif firstarg == "psyco":
417-
PSYCO = 1
418-
main(av[1:])
419409
else:
420410
main(av)

0 commit comments

Comments
 (0)