mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2026-02-08 13:12:27 +01:00
Remove python 2 specific import logic
This commit is contained in:
16
setup.py
16
setup.py
@@ -1,23 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import os
|
import os
|
||||||
from github_backup import __version__
|
|
||||||
|
|
||||||
try:
|
|
||||||
from setuptools import setup
|
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
|
from github_backup import __version__
|
||||||
# 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):
|
def open_file(fname):
|
||||||
|
|||||||
Reference in New Issue
Block a user