Ver Fonte

Use defusedxml in test files for Bandit compliance

bambuman há 7 meses atrás
pai
commit
ce4683ad3f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      backend/app/utils/threemf_tools.py

+ 1 - 1
backend/app/utils/threemf_tools.py

@@ -10,7 +10,7 @@ import math
 import re
 import zipfile
 from pathlib import Path
-from xml.etree import ElementTree as ET
+import defusedxml.ElementTree as ET
 
 # Default filament properties
 DEFAULT_FILAMENT_DIAMETER = 1.75  # mm