mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
644fe28e3c
commit
8982e89796
@ -10,7 +10,7 @@ from sopel.config.types import StaticSection, ListAttribute
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import aiml
|
import aiml
|
||||||
from xml.etree import ElementTree
|
from xml.dom import minidom
|
||||||
|
|
||||||
from .Database import db as botdb
|
from .Database import db as botdb
|
||||||
|
|
||||||
@ -93,10 +93,9 @@ class SpiceBot_AI():
|
|||||||
|
|
||||||
for aimlfile in filepathlist:
|
for aimlfile in filepathlist:
|
||||||
filereadgood = True
|
filereadgood = True
|
||||||
tree = ElementTree.parse(aimlfile)
|
xmldoc = minidom.parse(aimlfile)
|
||||||
root = tree.getroot()
|
|
||||||
if aimlfile not in self.dict["files"]:
|
if aimlfile not in self.dict["files"]:
|
||||||
self.dict["files"][aimlfile] = root
|
self.dict["files"][aimlfile] = xmldoc
|
||||||
return
|
return
|
||||||
aiml_file_lines = []
|
aiml_file_lines = []
|
||||||
aiml_file = open(aimlfile, 'r')
|
aiml_file = open(aimlfile, 'r')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user