remove error-causing type check

security-update
Andrew Port 2021-10-18 22:36:24 -07:00
parent f2eb3d0596
commit 67fd6e885d
2 changed files with 0 additions and 10 deletions

View File

@ -36,7 +36,6 @@ A Big Problem:
# External dependencies # External dependencies
from __future__ import division, absolute_import, print_function from __future__ import division, absolute_import, print_function
import os import os
import pdb
import sys import sys
import collections import collections
from defusedxml.cElementTree import parse, tostring from defusedxml.cElementTree import parse, tostring
@ -103,10 +102,6 @@ def flattened_paths(group, group_filter=lambda x: True,
only convert explicit path elements, pass in only convert explicit path elements, pass in
`path_conversions=CONVERT_ONLY_PATHS`. `path_conversions=CONVERT_ONLY_PATHS`.
""" """
if not isinstance(group, Element):
pdb.set_trace()
raise TypeError('Must provide an xml.etree.Element object. '
'Instead you provided {0}'.format(type(group)))
# Stop right away if the group_selector rejects this group # Stop right away if the group_selector rejects this group
if not group_filter(group): if not group_filter(group):

View File

@ -1,11 +1,6 @@
# External dependencies # External dependencies
from __future__ import division, absolute_import, print_function from __future__ import division, absolute_import, print_function
<<<<<<< HEAD
from unittest import TestCase from unittest import TestCase
=======
import os
>>>>>>> master
import sys
from math import sqrt, pi from math import sqrt, pi
from operator import itemgetter from operator import itemgetter
import numpy as np import numpy as np