Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
38f2d50a
Commit
38f2d50a
authored
Oct 15, 2013
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable write_tables in yacc.yacc().
This commit reverts "write yacc parsed file to TMPDIR."
parent
d5ca149d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
product/ZSQLCatalog/SearchText/lexer.py
product/ZSQLCatalog/SearchText/lexer.py
+1
-6
No files found.
product/ZSQLCatalog/SearchText/lexer.py
View file @
38f2d50a
...
@@ -27,7 +27,6 @@
...
@@ -27,7 +27,6 @@
##############################################################################
##############################################################################
from
ply
import
lex
,
yacc
from
ply
import
lex
,
yacc
import
os
import
sys
import
sys
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
...
@@ -37,9 +36,6 @@ except ImportError:
...
@@ -37,9 +36,6 @@ except ImportError:
def
LOG
(
channel
,
level
,
message
):
def
LOG
(
channel
,
level
,
message
):
print
>>
sys
.
stderr
,
message
print
>>
sys
.
stderr
,
message
outputdir
=
os
.
environ
.
get
(
'TMPDIR'
,
None
)
or
\
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
class
ParserOrLexerError
(
Exception
):
class
ParserOrLexerError
(
Exception
):
pass
pass
...
@@ -57,8 +53,7 @@ class lexer(object):
...
@@ -57,8 +53,7 @@ class lexer(object):
self
.
lexer
=
lex
.
lex
(
object
=
self
,
**
kw
)
self
.
lexer
=
lex
.
lex
(
object
=
self
,
**
kw
)
self
.
parser
=
yacc
.
yacc
(
module
=
self
,
debug
=
debug
,
self
.
parser
=
yacc
.
yacc
(
module
=
self
,
debug
=
debug
,
debugfile
=
"%s.out"
%
(
self
.
__class__
.
__name__
,
),
debugfile
=
"%s.out"
%
(
self
.
__class__
.
__name__
,
),
tabmodule
=
"%s_parsetab"
%
(
self
.
__class__
.
__name__
,
),
write_tables
=
False
)
outputdir
=
outputdir
)
sys
.
stdout
,
sys
.
stderr
=
sys
.
__stdout__
,
sys
.
__stderr__
sys
.
stdout
,
sys
.
stderr
=
sys
.
__stdout__
,
sys
.
__stderr__
# Emit all logs with regular Zope logging
# Emit all logs with regular Zope logging
for
line
in
output
.
getvalue
().
split
(
'
\
n
'
):
for
line
in
output
.
getvalue
().
split
(
'
\
n
'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment