Skip to content

Commit

Permalink
Don't raise ImportError on non-linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile authored and nir0s committed Dec 24, 2017
1 parent 5e896da commit 25aa3f8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
import subprocess


if not sys.platform.startswith('linux'):
raise ImportError('Unsupported platform: {0}'.format(sys.platform))

_UNIXCONFDIR = os.environ.get('UNIXCONFDIR', '/etc')
_OS_RELEASE_BASENAME = 'os-release'

Expand Down

0 comments on commit 25aa3f8

Please sign in to comment.