[~] Refactor
This commit is contained in:
parent
57921604c7
commit
eca4f94f4b
@ -29,7 +29,7 @@ def eternal_oom(memory_limit=None):
|
|||||||
memory_limit = 3 * 1024 * 1024
|
memory_limit = 3 * 1024 * 1024
|
||||||
assert isinstance(memory_limit, int) \
|
assert isinstance(memory_limit, int) \
|
||||||
and memory_limit < 6 * 1024 * 1024 \
|
and memory_limit < 6 * 1024 * 1024 \
|
||||||
and memory_limit > 512 * 1024 * 1024
|
and memory_limit > 512 * 1024
|
||||||
|
|
||||||
def pandas_data_frame(lines, groups_regex, header_regex, extra_columns):
|
def pandas_data_frame(lines, groups_regex, header_regex, extra_columns):
|
||||||
header = re.compile(header_regex).search(lines[0]).groups()
|
header = re.compile(header_regex).search(lines[0]).groups()
|
||||||
|
Loading…
Reference in New Issue
Block a user