summaryrefslogtreecommitdiff
path: root/examples/verilogParse.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-24 17:35:29 -0500
committerJon Dufresne <jon.dufresne@gmail.com>2018-12-24 17:40:20 -0500
commit1928ae222149789046a07cceec21b256c9c84a8c (patch)
tree96719ec1ec987ecc1b514177295265c212b6093f /examples/verilogParse.py
parent7ee59bf9bec777b5a3f627dc2cfbde637ce9ebfc (diff)
downloadpyparsing-git-1928ae222149789046a07cceec21b256c9c84a8c.tar.gz
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.
Diffstat (limited to 'examples/verilogParse.py')
-rw-r--r--examples/verilogParse.py13
1 files changed, 0 insertions, 13 deletions
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