Skip to content

Commit 64e8b67

Browse files
committed
When identifying a macOS or Windows platform, do not include the version
1 parent 6fc87ce commit 64e8b67

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

user_sessions/templatetags/user_sessions.py

-13
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,7 @@
2121
(re.compile('Linux'), _('Linux')),
2222
(re.compile('iPhone'), _('iPhone')),
2323
(re.compile('iPad'), _('iPad')),
24-
(re.compile('Mac OS X 10[._]9'), _('OS X Mavericks')),
25-
(re.compile('Mac OS X 10[._]10'), _('OS X Yosemite')),
26-
(re.compile('Mac OS X 10[._]11'), _('OS X El Capitan')),
27-
(re.compile('Mac OS X 10[._]12'), _('macOS Sierra')),
28-
(re.compile('Mac OS X 10[._]13'), _('macOS High Sierra')),
29-
(re.compile('Mac OS X 10[._]14'), _('macOS Mojave')),
30-
(re.compile('Mac OS X 10[._]15'), _('macOS Catalina')),
3124
(re.compile('Mac OS X'), _('macOS')),
32-
(re.compile('NT 5.1'), _('Windows XP')),
33-
(re.compile('NT 6.0'), _('Windows Vista')),
34-
(re.compile('NT 6.1'), _('Windows 7')),
35-
(re.compile('NT 6.2'), _('Windows 8')),
36-
(re.compile('NT 6.3'), _('Windows 8.1')),
37-
(re.compile('NT 10.0'), _('Windows 10')),
3825
(re.compile('Windows'), _('Windows')),
3926
)
4027

0 commit comments

Comments
 (0)