File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11Release 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 ``.
Original file line number Diff line number Diff line change @@ -86,18 +86,18 @@ def is_on_macos_arm64():
8686
8787def 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
103103def is_on_ubuntu_22 ():
You can’t perform that action at this time.
0 commit comments