Update test_v2.0/validate_submission.py
Browse files
test_v2.0/validate_submission.py
CHANGED
|
@@ -46,9 +46,7 @@ def _check_readme(readme_path: str, problems: List[str]):
|
|
| 46 |
with open(readme_path, "r", encoding="utf‑8") as f:
|
| 47 |
txt = f.read().strip()
|
| 48 |
|
| 49 |
-
|
| 50 |
-
# comma before the closing brace. **DO NOT** apply a regex that matches the empty
|
| 51 |
-
# string, or the text becomes garbage. (We had a bug here earlier.)
|
| 52 |
relaxed = re.sub(r"'", '"', txt)
|
| 53 |
relaxed = re.sub(r",\s*}" , "}", relaxed) # trailing comma
|
| 54 |
|
|
|
|
| 46 |
with open(readme_path, "r", encoding="utf‑8") as f:
|
| 47 |
txt = f.read().strip()
|
| 48 |
|
| 49 |
+
|
|
|
|
|
|
|
| 50 |
relaxed = re.sub(r"'", '"', txt)
|
| 51 |
relaxed = re.sub(r",\s*}" , "}", relaxed) # trailing comma
|
| 52 |
|