Skip to content

Commit a99b713

Browse files
committed
suppress the import json warning when generating _version
1 parent ed7c526 commit a99b713

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

versioneer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,9 @@ def versions_from_parentdir(parentdir_prefix, root, verbose):
11301130
# unpacked source archive. Distribution tarballs contain a pre-generated copy
11311131
# of this file.
11321132
1133-
import json
1133+
from warnings import catch_warnings
1134+
with catch_warnings(record=True):
1135+
import json
11341136
import sys
11351137
11361138
version_json = '''

0 commit comments

Comments
 (0)