This commit fixes a possible hang in the get_module_qualname...
function. When running against a '.' target, the while statement
would loop forever looking for a head of '/', when all it would
ever find was '.'. Now either option is enough to break the loop.
A head of '.' already indicates we're as far down as we can get
since there is no non-file path left.
Reviewed: https:/ /review. openstack. org/273181 /git.openstack. org/cgit/ openstack/ bandit/ commit/ ?id=bb83d3fce1d ca0df6fd15ead4f c6acd4ebdf539e
Committed: https:/
Submitter: Jenkins
Branch: master
commit bb83d3fce1dca0d f6fd15ead4fc6ac d4ebdf539e
Author: Travis McPeak <email address hidden>
Date: Wed Jan 27 10:10:35 2016 -0800
Fixing hang in get_module_ qualname_ from_path
This commit fixes a possible hang in the get_module_ qualname. ..
function. When running against a '.' target, the while statement
would loop forever looking for a head of '/', when all it would
ever find was '.'. Now either option is enough to break the loop.
A head of '.' already indicates we're as far down as we can get
since there is no non-file path left.
Closes-Bug: #1538633 03d6b4da4e62c5e dd37d553da4
Change-Id: I4aca741b816e42