3 Commits

Author SHA1 Message Date
Anthony Sottile
7d1e61f734 v0.0.7 2020-04-04 17:44:40 -07:00
Anthony Sottile
3e7ca8e922 make grammar loading more deterministic 2020-04-04 17:44:27 -07:00
Anthony Sottile
843f1b6ff1 remove stray print 2020-04-04 13:13:53 -07:00
3 changed files with 2 additions and 3 deletions

View File

@@ -657,7 +657,7 @@ class Grammars:
os.path.splitext(filename)[0]: os.path.join(directory, filename)
for directory in directories
if os.path.exists(directory)
for filename in os.listdir(directory)
for filename in sorted(os.listdir(directory))
if filename.endswith('.json')
}

View File

@@ -39,7 +39,6 @@ def json_with_comments(s: bytes) -> Any:
idx = match.end()
match = TOKEN.search(s, idx)
print(bio.getvalue())
bio.seek(0)
return json.load(bio)

View File

@@ -1,6 +1,6 @@
[metadata]
name = babi
version = 0.0.6
version = 0.0.7
description = a text editor
long_description = file: README.md
long_description_content_type = text/markdown