1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-09 16:09:03 +00:00
dmiller b254234118 Replace key existence tests with dict.get()
Replaced instances of this pattern:

if 'key' in somedict:
    var = somedict['key']
else:
    var = ""

...with this much simpler pattern:

var = somedict.get('key', "")

Some variations, like returning None if the key is not found were also
replaced.
2014-01-08 20:28:12 +00:00
2013-12-30 14:35:50 +00:00
2013-07-16 00:51:47 +00:00
2012-12-06 02:34:28 +00:00
2012-12-06 02:25:46 +00:00
2008-07-31 14:18:21 +00:00
2012-05-27 08:53:32 +00:00
2012-05-27 08:53:32 +00:00
2012-05-27 08:53:32 +00:00
2012-05-27 08:53:32 +00:00
2012-09-15 17:56:17 +00:00
2013-02-09 22:46:47 +00:00
2013-12-04 12:51:59 +00:00
2013-10-08 21:50:47 +00:00

Here is some documentation for Nmap, but these files are much less
comprehensive than what you'll find at the actual Nmap documentation
site ( http://nmap.org ).
Languages
C 37.8%
Lua 28.1%
C++ 16.7%
Shell 5.8%
Python 4.2%
Other 7.2%