From d411e2058053c5607b2bb49002cab0e110683624 Mon Sep 17 00:00:00 2001 From: Albert Wang Date: Sat, 15 Aug 2020 17:34:43 -0700 Subject: [PATCH] Remove python 2 specific import logic --- setup.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/setup.py b/setup.py index 85e2d5f..3930574 100644 --- a/setup.py +++ b/setup.py @@ -1,24 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- import os +from setuptools import setup + from github_backup import __version__ -try: - from setuptools import setup - setup # workaround for pyflakes issue #13 -except ImportError: - from distutils.core import setup - -# Hack to prevent stupid TypeError: 'NoneType' object is not callable error on -# exit of python setup.py test # in multiprocessing/util.py _exit_function when -# running python setup.py test (see -# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html) -try: - import multiprocessing - multiprocessing -except ImportError: - pass - def open_file(fname): return open(os.path.join(os.path.dirname(__file__), fname))