Skip to content

Commit feb88f8

Browse files
committed
Merge pull request edmondburnett#11 from DebauchedSloth/master
Convert print to print function so that import works in python 3
2 parents 3850fe2 + 3559272 commit feb88f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ttp/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
"""Unwind short-links e.g. bit.ly, t.co etc to their canonical links"""
4-
from __future__ import unicode_literals
4+
from __future__ import unicode_literals, print_function
55
import requests
66

77

@@ -26,4 +26,4 @@ def follow_shortlinks(shortlinks):
2626

2727
if __name__ == "__main__":
2828
shortlinks = ['http://t.co/8o0z9BbEMu', 'http://bbc.in/16dClPF']
29-
print follow_shortlinks(shortlinks)
29+
print (follow_shortlinks(shortlinks))

0 commit comments

Comments
 (0)