{"push_id":559995661,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"2b27cabc1544ff51c4ef73cdd88fc8280d5e00e7","before":"24ba70179fbdcbc90e0e08637eb1ff35c5a9feb6","commits":[{"sha":"d70ec0d634448013cb9eaf332e20ffc4144c6ef1","author":{"email":"0e2dd53450651a9773c320386be7c88ff9ae31a4@nebula.com","name":"Lucas Fisher"},"message":"Add unaliased mod name to import_aliases; Fix tests\n\nIn order to identify what module an imported symbol came from\nwe need to be able to look it up in the list of imported symbols\nfor the module. These symbols could be aliased but don't\nhave to be. In both case we want to be able to look it up.\nWe handled when an symbol was aliased on import, but not\nwhen it wasn't. This meant we could not get a true fully\nqualified name for that symbol at its point of use.\n\nFor example:\n  import a from b as c\n  import d from e\n\n  import_aliases['c'] = a.b\n  import_aliases['e'] = d.e # new behavior\n\n  c() # qualified as a.b\n  e() # qualified as d.e\n\nTo fix an imported symbol that is not aliased is still added\nto import_aliases with its real name. The primary danger\nis the code overriding the imported symbol with a local\nname definition. We don't catch that, but it is less common.\n\nThis causes tests for os_popen, mktemp, and ssl-insecure-verion\nto fail. In the first two tests, additional calls are identified\nas problems. For the ssl test, we updated the test to look for\nthe fully qualified name pyOpenSSL.SSL.Context.\n\nFor other tests:\nexamples/os-popen.py:\n  master was missing line 7 'popen()' which was imported from os.\n  We can now catch this.\n\nexamples/mktemp.py:\n  master was missing line 10 'mktemp(foo)' which was imported from\n  tempfile. The blacklist specified tempfile.mktemp so this was missed.\n\nChange-Id: I487bace2e4c9daaf5ab75fc8e351c3b990532e3a","distinct":true,"url":"https://api.github.com/repos/stackforge/bandit/commits/d70ec0d634448013cb9eaf332e20ffc4144c6ef1"},{"sha":"2b27cabc1544ff51c4ef73cdd88fc8280d5e00e7","author":{"email":"d95b56ce41a2e1ac4cecdd398defd7414407cc08@review.openstack.org","name":"Jenkins"},"message":"Merge \"Add unaliased mod name to import_aliases; Fix tests\"","distinct":true,"url":"https://api.github.com/repos/stackforge/bandit/commits/2b27cabc1544ff51c4ef73cdd88fc8280d5e00e7"}]}