Unused modules cleanup
This commit is contained in:
parent
650ed35387
commit
22a62f7453
|
@ -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"""
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue