Browse Source

Merge PR #2036 into 12.0

Signed-off-by rvalyi
12.0-mig-module_prototyper_last
OCA-git-bot 4 years ago
parent
commit
3df76803cb
  1. 4
      module_analysis/models/ir_module_module.py

4
module_analysis/models/ir_module_module.py

@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import os import os
import pygount
from pygount import SourceAnalysis
from pathlib import Path from pathlib import Path
import logging import logging
@ -145,7 +145,7 @@ class IrModuleModule(models.Model):
exclude_files) exclude_files)
for file_path, file_ext in file_list: for file_path, file_ext in file_list:
file_res = pygount.source_analysis(
file_res = SourceAnalysis.from_file(
file_path, '', file_path, '',
encoding=self._get_module_encoding(file_ext)) encoding=self._get_module_encoding(file_ext))
for k, v in analysed_datas.get(file_ext).items(): for k, v in analysed_datas.get(file_ext).items():

Loading…
Cancel
Save