Lines 5374-5381
Link Here
|
5374 |
@return: True if the package is deeper than the max allowed depth |
5374 |
@return: True if the package is deeper than the max allowed depth |
5375 |
""" |
5375 |
""" |
5376 |
deep = self._dynamic_config.myparams.get("deep", 0) |
5376 |
deep = self._dynamic_config.myparams.get("deep", 0) |
5377 |
return depth is self._UNREACHABLE_DEPTH or ( |
5377 |
if depth is self._UNREACHABLE_DEPTH: |
5378 |
isinstance(deep, int) and isinstance(depth, int) and depth > deep) |
5378 |
return True |
|
|
5379 |
elif deep is True: |
5380 |
return False |
5381 |
else: |
5382 |
# All non-integer cases are handled above, |
5383 |
# so both values must be int type. |
5384 |
return depth > deep |
5379 |
|
5385 |
|
5380 |
def _depth_increment(self, depth, n=1): |
5386 |
def _depth_increment(self, depth, n=1): |
5381 |
""" |
5387 |
""" |