1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-28 19:08:22 +00:00

print() function for Python 3

This commit is contained in:
cclauss 2017-08-24 18:14:02 +02:00 committed by GitHub
parent b80cd6dbc5
commit 5f3a3d4469

View File

@ -34,6 +34,10 @@ while (line[1] == '-'):
elif alt_num:
bip_num = alt_num.group(1)
print "|[[bip-{0}]]https://github.com/bitcoin/bips/blob/master/bip-{0:04d}.mediawiki[BIP-{0}] |{1} |{2} |{3} |{4} ".format(int(bip_num), line_title, line_owner, line_type, line_status)
print("|[[bip-{0}]]https://github.com/bitcoin/bips/blob/master/bip-{0:04d}"
".mediawiki[BIP-{0}] |{1} |{2} |{3} |{4} ".format(int(bip_num),
line_title,
line_owner,
line_type,
line_status))
f.close()