This commit is contained in:
Dima Gerasimov 2019-03-11 23:23:03 +00:00
parent 6679aae475
commit 4206353d7b

View file

@ -1,7 +1,7 @@
from glob import glob from glob import glob
from typing import List from typing import List
from porg import Org # typing: ignore from porg import Org # type: ignore
# TODO enc stuff? # TODO enc stuff?
def get_org_paths(): def get_org_paths():
@ -34,7 +34,7 @@ class PorgAll:
return self.query_all(lambda x: x.xpath_all('//*')) return self.query_all(lambda x: x.xpath_all('//*'))
def query_all(self, query): def query_all(self, query):
res = [] res: List[Org] = []
for p in self.paths: for p in self.paths:
for of in _get_org_files_in(p): for of in _get_org_files_in(p):
org = Org.from_file(of) org = Org.from_file(of)