mirror of https://github.com/Desuuuu/klipper.git
util: Wrap code to 80 columns
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e7eb745d99
commit
45203070ed
|
@ -66,9 +66,11 @@ def get_git_version(from_file=True):
|
||||||
|
|
||||||
# Obtain version info from "git" program
|
# Obtain version info from "git" program
|
||||||
gitdir = os.path.join(klippy_src, '..')
|
gitdir = os.path.join(klippy_src, '..')
|
||||||
prog = ('git', '-C', gitdir, 'describe', '--always', '--tags', '--long', '--dirty')
|
prog = ('git', '-C', gitdir, 'describe', '--always',
|
||||||
|
'--tags', '--long', '--dirty')
|
||||||
try:
|
try:
|
||||||
process = subprocess.Popen(prog, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
process = subprocess.Popen(prog, stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.PIPE)
|
||||||
ver, err = process.communicate()
|
ver, err = process.communicate()
|
||||||
retcode = process.wait()
|
retcode = process.wait()
|
||||||
if retcode == 0:
|
if retcode == 0:
|
||||||
|
|
Loading…
Reference in New Issue