Skip to content

Commit 5940507

Browse files
committed
fixed issue jullrich#1 by adding parens around print statement arguments
1 parent 0aa5ea9 commit 5940507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pcap2curl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
if len(sys.argv) != 2:
8-
print "I need an input file. Usage ./pcap2curl.py inputfilename"
8+
print ("I need an input file. Usage ./pcap2curl.py inputfilename")
99
exit()
1010

1111
infile = sys.argv[1]
@@ -40,4 +40,4 @@ def payload2curl(p):
4040
payload=''
4141
if p.haslayer(TCP) and p.haslayer(Raw) and p[TCP].dport == 80:
4242
payload=p[Raw].load
43-
print payload2curl(payload)
43+
print (payload2curl(payload))

0 commit comments

Comments
 (0)