aboutsummaryrefslogtreecommitdiffstats
path: root/dtube
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-03-10 00:37:00 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2013-03-10 00:37:00 +0100
commit70dbdbd2e5c6206597103a50fba3a9006512a593 (patch)
treee6a0f7cbb5addb91770289e978bffd67bd972603 /dtube
parentdtube: print target as first output (diff)
downloadlaurent-tools-70dbdbd2e5c6206597103a50fba3a9006512a593.tar.xz
laurent-tools-70dbdbd2e5c6206597103a50fba3a9006512a593.zip
dtube: nicer output
Diffstat (limited to 'dtube')
-rwxr-xr-xdtube/dtube.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/dtube/dtube.py b/dtube/dtube.py
index c54127c..30d4dc5 100755
--- a/dtube/dtube.py
+++ b/dtube/dtube.py
@@ -70,7 +70,7 @@ class He:
ip = HeIP(match.group(1).split('/')[0], verbose=verbose)
as_target = max(ip.AS.iterkeys(), key=(lambda key: ip.AS[key]['position']))
iprange = ip.AS[as_target]["IPrange"]
- print "New IPrange selected: %s" % iprange
+ print "New IPrange selected: %s\n" % iprange
he = HeIPrange(iprange, verbose=verbose)
else:
raise e
@@ -277,7 +277,6 @@ if __name__ == '__main__':
if options.url_nocache is False:
requests_cache.install_cache('cache_dtube')
- print target
- print
+ print "%s\n" % target
he = He.initTarget(target, verbose=options.verbose)
he.show()