Browse Source

Replaced Pygount source analysis deprecation method

12.0-mig-module_prototyper_last
Renato Lima 3 years ago
parent
commit
755569b57b
  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).
import os
import pygount
from pygount import SourceAnalysis
from pathlib import Path
import logging
@ -145,7 +145,7 @@ class IrModuleModule(models.Model):
exclude_files)
for file_path, file_ext in file_list:
file_res = pygount.source_analysis(
file_res = SourceAnalysis.from_file(
file_path, '',
encoding=self._get_module_encoding(file_ext))
for k, v in analysed_datas.get(file_ext).items():

Loading…
Cancel
Save