From 1928ae222149789046a07cceec21b256c9c84a8c Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 24 Dec 2018 17:35:29 -0500 Subject: Remove mentions of 'psyco' from docs and examples 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. Avoid recommending the use of an unmaintained package (since 2012). Users can continue to use PyPy for the latest and greatest in Python JIT. --- examples/verilogParse.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'examples/verilogParse.py') diff --git a/examples/verilogParse.py b/examples/verilogParse.py index 9477e38..61c3c30 100644 --- a/examples/verilogParse.py +++ b/examples/verilogParse.py @@ -73,10 +73,8 @@ from pyparsing import Literal, Keyword, Word, OneOrMore, ZeroOrMore, \ StringEnd, FollowedBy, ParserElement, Regex, cppStyleComment import pyparsing usePackrat = False -usePsyco = False packratOn = False -psycoOn = False if usePackrat: try: @@ -86,16 +84,6 @@ if usePackrat: else: packratOn = True -# comment out this section to disable psyco function compilation -if usePsyco: - try: - import psyco - psyco.full() - except: - print("failed to import psyco Python optimizer") - else: - psycoOn = True - def dumpTokens(s,l,t): import pprint @@ -637,7 +625,6 @@ else: print(" - using pyparsing version", pyparsing.__version__) print(" - using Python version", sys.version) if packratOn: print(" - using packrat parsing") - if psycoOn: print(" - using psyco runtime optimization") print() import os -- cgit v1.2.1