Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jun 29, 2020
1 parent 81d3cee commit d148d13
Show file tree
Hide file tree
Showing 30 changed files with 2,225 additions and 166 deletions.
4 changes: 2 additions & 2 deletions _unittests/ut_cli/test_head_cli.py
Expand Up @@ -16,8 +16,8 @@ def test_head_cli(self):

rows = []

def flog(*l):
rows.append(l)
def flog(*la):
rows.append(la)

file_head_cli(args=['-h'], fLOG=flog)

Expand Down
4 changes: 2 additions & 2 deletions _unittests/ut_cli/test_tail_cli.py
Expand Up @@ -16,8 +16,8 @@ def test_tail_cli(self):

rows = []

def flog(*l):
rows.append(l)
def flog(*la):
rows.append(la)

file_tail_cli(args=['-h'], fLOG=flog)

Expand Down
8 changes: 4 additions & 4 deletions _unittests/ut_sql/test_file_columns.py
Expand Up @@ -27,10 +27,10 @@ def test_read_csv_file(self):
f.open()
rows = list(f)
f.close()
for l in rows[:5]:
fLOG(l)
assert isinstance(l, dict)
assert isinstance(l["Adj_Close"], float)
for li in rows[:5]:
fLOG(li)
assert isinstance(li, dict)
assert isinstance(li["Adj_Close"], float)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion bin/update_grammars.bat
Expand Up @@ -7,7 +7,7 @@ set pythonexe=%1
goto start_script:

:default_value_python:
set pythonexe=c:\Python370_x64\python
set pythonexe=c:\Python372_x64\python

@echo ~SET pythonexe=%pythonexe%

Expand Down
2 changes: 1 addition & 1 deletion src/pyensae/__init__.py
Expand Up @@ -12,7 +12,7 @@
if sys.version_info[0] < 3:
raise ImportError("pyensae only works with Python 3")

__version__ = "1.3.840"
__version__ = "1.3.862"
__author__ = "Xavier Dupré"
__github__ = "https://github.com/sdpython/pyensae"
__url__ = "http://www.xavierdupre.fr/app/pyensae/helpsphinx/index.html"
Expand Down
6 changes: 3 additions & 3 deletions src/pyensae/datasource/http_retrieve.py
Expand Up @@ -282,9 +282,9 @@ def transform_url(w):
lines = f.readlines()
fil = []
fir = True
for l in lines:
r1 = reg1.search(l)
r2 = reg2.search(l)
for li in lines:
r1 = reg1.search(li)
r2 = reg2.search(li)
if r2:
ls = ""
if fir:
Expand Down

0 comments on commit d148d13

Please sign in to comment.