Skip to content

Commit d411e20

Browse files
committed
Remove python 2 specific import logic
1 parent d7b8526 commit d411e20

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

setup.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
import os
4-
from github_backup import __version__
5-
6-
try:
7-
from setuptools import setup
8-
setup # workaround for pyflakes issue #13
9-
except ImportError:
10-
from distutils.core import setup
4+
from setuptools import setup
115

12-
# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on
13-
# exit of python setup.py test # in multiprocessing/util.py _exit_function when
14-
# running python setup.py test (see
15-
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
16-
try:
17-
import multiprocessing
18-
multiprocessing
19-
except ImportError:
20-
pass
6+
from github_backup import __version__
217

228

239
def open_file(fname):

0 commit comments

Comments
 (0)