mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-26 05:02:15 +03:00
setup.py: flake8 pass
This commit is contained in:
parent
95b48ed3cc
commit
d43b852935
5
setup.py
5
setup.py
@ -6,7 +6,6 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from setuptools import setup, find_packages
|
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
@ -51,7 +50,7 @@ if setup_env.EDDN_ENV == 'live':
|
|||||||
out, err = git_cmd.communicate()
|
out, err = git_cmd.communicate()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Couldn't run git command to check branch: %s" % (e))
|
print(f"Couldn't run git command to check branch: {e}")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
branch = out.decode().rstrip('\n')
|
branch = out.decode().rstrip('\n')
|
||||||
@ -60,7 +59,7 @@ if setup_env.EDDN_ENV == 'live':
|
|||||||
# - For any 'detached HEAD' (i.e. specific commit ID, or tag) it
|
# - For any 'detached HEAD' (i.e. specific commit ID, or tag) it
|
||||||
# will be empty.
|
# will be empty.
|
||||||
if branch != 'live':
|
if branch != 'live':
|
||||||
print("EDDN_ENV is '%s' (and CWD is %s), but branch is '%s', aborting!" % (setup_env.EDDN_ENV, cwd, branch))
|
print(f"EDDN_ENV is '{setup_env.EDDN_ENV}' (and CWD is '{cwd}'), but branch is '{branch}', aborting!")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user