You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just playing with pygrok; I ran the following, which might be a useful basis for a test, and got the titular error.
#!/usr/bin/env python3
import os
import gc
import itertools as it
import pygrok as pg
fs = it.chain(*(os.scandir(d) for d in
pg.DEFAULT_PATTERNS_DIRS))
ps = it.chain(*(open(f.path).readlines() for f in fs))
gc.collect() # release file descriptors, I think. xonsh got upset without it.
for p in ps:
try:
pg.Grok(p)
except Exception as e:
print(p, e)
I was just playing with pygrok; I ran the following, which might be a useful basis for a test, and got the titular error.
The offending pattern is
The text was updated successfully, but these errors were encountered: