WIP: I HATE PYTHON
This commit is contained in:
@@ -35,8 +35,8 @@ from typing import Optional, Callable, Any, cast
|
||||
import os
|
||||
import ast
|
||||
import subprocess
|
||||
import summarize
|
||||
import outline_tool
|
||||
from src import summarize
|
||||
from src import outline_tool
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
from html.parser import HTMLParser
|
||||
@@ -254,7 +254,7 @@ def py_get_skeleton(path: str) -> str:
|
||||
if not p.is_file() or p.suffix != ".py":
|
||||
return f"ERROR: not a python file: {path}"
|
||||
try:
|
||||
from file_cache import ASTParser
|
||||
from src.file_cache import ASTParser
|
||||
code = p.read_text(encoding="utf-8")
|
||||
parser = ASTParser("python")
|
||||
return parser.get_skeleton(code)
|
||||
|
||||
Reference in New Issue
Block a user