This repository was archived by the owner on Jan 27, 2023. It is now read-only.
Commit 6a207ed
committed
Fixed Ubuntu version check
This code works with Python 2 and 3. Only the Python 3 version of os.uname()
returns an object with the version attribute - in Python 2 it's just a tuple.
But for backwards compatibility, the Python 3 object is also iterable, behaving
like a five-tuple containing sysname, nodename, release, version, and machine
in that order.1 parent babe7f5 commit 6a207ed
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
0 commit comments