Unused modules cleanup

This commit is contained in:
faildev_mode 2023-06-27 12:33:26 +02:00
parent 650ed35387
commit 22a62f7453
No known key found for this signature in database
GPG Key ID: 70845C70C0F5E205
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,5 @@
import os
import urllib.parse
from item import Item # from itself
from config import config # from itself
class Content:
"""This class contains some functions useful for evaluation of Python code in content files"""

View File

@ -7,13 +7,12 @@ Building system for my gemini capsule with html support
import os
import sys
from fnmatch import fnmatch
import frontmatter # from package python-frontmatter
import re
from functools import partial
import apis # from itself
import traceback
from item import Item # from itself
from files import read_this, save_this, mkdir_this, link_this, scan_dir # from itself
from files import read_this, save_this, link_this, scan_dir # from itself
from config import config # from itself
def template_for(path: str) -> str:
@ -180,7 +179,7 @@ if __name__ == '__main__':
# add static files to the project
for path in static_files:
print(path)
print('F', path)
if path in content_files:
raise Exception('There is a conflicting static and content file')
@ -190,7 +189,7 @@ if __name__ == '__main__':
# now the actual parsing of content files:
for path in content_files:
print(path)
print('F', path)
item = Item(path)