Skip to content

Commit d5c115a

Browse files
Increase minimum Python version to 3.6 (#60)
1 parent 57bbd4d commit d5c115a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisgraph_bulk_loader/bulk_insert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ def process_entities(entities):
7171
@click.option('--index', '-i', multiple=True, help='Label:Propery on which to create an index')
7272
@click.option('--full-text-index', '-f', multiple=True, help='Label:Propery on which to create an full text search index')
7373
def bulk_insert(graph, host, port, password, user, unix_socket_path, nodes, nodes_with_label, relations, relations_with_type, separator, enforce_schema, skip_invalid_nodes, skip_invalid_edges, escapechar, quote, max_token_count, max_buffer_size, max_token_size, index, full_text_index):
74-
if sys.version_info[0] < 3:
75-
raise Exception("Python 3 is required for the RedisGraph bulk loader.")
74+
if sys.version_info.major < 3 or sys.version_info.minor < 6:
75+
raise Exception("Python >= 3.6 is required for the RedisGraph bulk loader.")
7676

7777
if not (any(nodes) or any(nodes_with_label)):
7878
raise Exception("At least one node file must be specified.")

0 commit comments

Comments
 (0)