Skip to content

Commit 58d70dc

Browse files
committed
.
1 parent c8c61e5 commit 58d70dc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ whitelist lines are:
147147
- Optimizing break instead of continue. The code runs fine when mutating break
148148
to continue, but it's slower.
149149

150-
See also `Advanced whitelisting and configuration`_
151-
152150

153151
Example mutations
154152
-----------------

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ def finalize_options(self):
5252

5353
def run(self):
5454
from subprocess import check_output
55-
tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip().split('/')[-1]
55+
tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip().decode().split('/')[-1]
5656
version = read_version()
5757
if tag != version:
5858
print('Missing {} tag on release'.format(version))
5959
raise SystemExit(1)
6060

61-
current_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip()
62-
if current_branch != 'master':
63-
print('Only release from master')
61+
current_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).decode().strip()
62+
if current_branch != 'main':
63+
print('Only release from main')
6464
raise SystemExit(1)
6565

6666
print("Ok to distribute files")

0 commit comments

Comments
 (0)