~petersanchez/trello2redmine

1920e06813f928991791f52ed03090fa189c2643 — Oliver Kurz 4 years ago 6e5358e
Add support for python 3 urllib
1 files changed, 6 insertions(+), 2 deletions(-)

M trello2redmine.py -rw-r--r-- => -rwxr-xr-x
M trello2redmine.py => trello2redmine.py +6 -2
@@ 6,7 6,11 @@ import trello2redmine_config as cfg
import sys
import json
import requests
import urlparse
try:
    from urlparse import urlparse
except ImportError:  # python 3
    from urllib.parse import urlparse


if len(sys.argv) > 3 or (len(sys.argv) == 2 and sys.argv[1] == '-h'):
	print('Usage: {0} [<options>])'.format(sys.argv[0]))


@@ 23,7 27,7 @@ if dry_run:
else:
	print('Making a commit!')

url = urlparse.urlparse(cfg.trello_board_link)
url = urlparse(cfg.trello_board_link)
if not url.netloc.endswith('trello.com'):
	print('URL does not seem to be a Trello board link. Are you sure this is correct?')
	sys.exit(1)