Skip to content

Commit b5a26aa

Browse files
committed
Prep for new release
Signed-off-by: Jono Yang <[email protected]>
1 parent 613ad2e commit b5a26aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Release notes
22
=============
33

4-
Version 31.1.0 - (2024-05-XX)
4+
Version 31.1.0 - (2024-05-15)
55
------------------------------
66

77
- Add ``on_macos_arm64`` and ``on_ubuntu_22`` markers to ``commoncode.system``.

src/commoncode/system.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,18 @@ def is_on_macos_arm64():
8686

8787
def get_etc_os_release_info(os_release_path='/etc/os-release'):
8888
"""
89-
Return a dictionary of keys-value pairs from /etc/os-release
89+
Return a dictionary of key-value pairs from /etc/os-release
9090
"""
91-
cfg_kv = {}
91+
os_release_data = {}
9292
with open(os_release_path) as f:
9393
for line in f:
9494
split_line = line.split('=')
9595
if not split_line:
9696
continue
9797
k = split_line[0].strip()
9898
v = split_line[-1].strip()
99-
cfg_kv[k] = v
100-
return cfg_kv
99+
os_release_data[k] = v
100+
return os_release_data
101101

102102

103103
def is_on_ubuntu_22():

0 commit comments

Comments
 (0)