We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec04d26 + dc93175 commit cf664c5Copy full SHA for cf664c5
password_cracker.py
@@ -11,11 +11,8 @@
11
from sys import platform as _platform
12
13
# Check the current operating system to import the correct version of crypt
14
-if _platform == "linux" or _platform == "linux2":
+if _platform in ["linux", "linux2", "darwin"]: # darwin is _platform name for Mac OS X
15
import crypt # Import the module
16
-elif _platform == "darwin":
17
- # Mac OS X
18
- import crypt
19
elif _platform == "win32":
20
# Windows
21
try:
0 commit comments