Skip to content

Commit 93cce08

Browse files
committed
format
1 parent 5c47ceb commit 93cce08

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
from setuptools import setup, Extension
22
import re
33

4+
45
def get_version():
56
"""
67
Extract the version number from arraydeque.c.
78
Looks for a line of the form:
89
#define ARRAYDEQUE_VERSION "0.1.0"
910
"""
10-
with open("arraydeque.c", "r", encoding="utf-8") as f:
11+
with open('arraydeque.c', 'r', encoding='utf-8') as f:
1112
content = f.read()
1213
match = re.search(r'#define\s+ARRAYDEQUE_VERSION\s+"([^"]+)"', content)
1314
if match:
1415
return match.group(1)
15-
raise RuntimeError("Unable to find version string in arraydeque.c.")
16+
raise RuntimeError('Unable to find version string in arraydeque.c.')
17+
1618

1719
module = Extension('arraydeque', sources=['arraydeque.c'])
1820

test_arraydeque.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_overallocation_growth(self):
124124
self.assertEqual(len(self.deque), 100)
125125

126126
def test_version(self):
127-
assert tuple(map(int, arraydeque.__version__.split("."))) > (0, 0, 0)
127+
assert tuple(map(int, arraydeque.__version__.split('.'))) > (0, 0, 0)
128128

129129

130130
if __name__ == '__main__':

0 commit comments

Comments
 (0)