diff options
author | Micah Lee <micah@micahflee.com> | 2018-02-24 17:56:35 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-02-24 17:56:35 -0800 |
commit | e76b1e0c2809f82a6aa9b3083ddb042576da16ea (patch) | |
tree | 1f98e34c4bc3a8260c8027d96bef7bc2d09a2050 | |
parent | 9345f62ff0f3c0c15c62428e6e41377a748ba5a0 (diff) | |
parent | 641fec7c050ff1f9f5d53aa017c2aa8555bb223b (diff) | |
download | onionshare-e76b1e0c2809f82a6aa9b3083ddb042576da16ea.tar.gz onionshare-e76b1e0c2809f82a6aa9b3083ddb042576da16ea.zip |
Merge branch 'remove_platform_re' of https://github.com/delirious-lettuce/onionshare into delirious-lettuce-remove_platform_re
-rw-r--r-- | onionshare/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/onionshare/common.py b/onionshare/common.py index 79d62ca9..d90f3b78 100644 --- a/onionshare/common.py +++ b/onionshare/common.py @@ -23,7 +23,6 @@ import inspect import os import platform import random -import re import socket import sys import tempfile @@ -58,10 +57,11 @@ def get_platform(): Returns the platform OnionShare is running on. """ plat = platform.system() - if re.match('^.*BSD$', plat): + if plat.endswith('BSD'): plat = 'BSD' return plat + def get_resource_path(filename): """ Returns the absolute path of a resource, regardless of whether OnionShare is installed |