Skip to content

Commit 2997b59

Browse files
committed
start work on py3 only v2
1 parent c3d3f40 commit 2997b59

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

hitman.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
# Hitman. Or The Professional.
4-
# (c) 2010 - 2011, 2015 - 2017 Jack Laxson <Jrabbit>
4+
# (c) 2010 - 2011, 2015 - 2019 Jack Laxson <jackjrabbit+hitman@gmail.com>
55
# Licensed under GPL v3 or later.
66

77
import json

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from setuptools import setup
22
setup(
33
name='hitman',
4-
version='1.2b5',
4+
version='2',
55
author='Jack Laxson',
66
author_email='jackjrabbit+hitman@gmail.com',
77
url='https://github.com/jrabbit/hitman',
88
license='GPL v3',
9-
long_description="Hitman: The professional RSS enclosure (Podcast) downloader. Supports OPML. Supports various downloads methods: requests and urlgrabber (pycurl based).",
9+
long_description="Hitman: The professional RSS enclosure (Podcast) downloader. Supports OPML. Uses requests.",
1010
description="The professional RSS enclosure (Podcast) downloader.",
1111
scripts=['hitman.py'],
1212
install_requires=['semidbm', 'requests', 'clint', 'six',
@@ -20,6 +20,5 @@
2020
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
2121
'Topic :: Internet :: WWW/HTTP', 'Operating System :: BeOS',
2222
'Topic :: Multimedia', 'Operating System :: OS Independent',
23-
'Programming Language :: Python :: 2.7',
2423
'Programming Language :: Python :: 3.7']
2524
)

test_hitman.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import tempfile
44
import unittest
55

6-
import mock
6+
try:
7+
from unittest import mock
8+
except ImportError:
9+
import mock
10+
711
import pxml
812
import six
913
from click.testing import CliRunner

0 commit comments

Comments
 (0)