]> xmof Git - DeDRM.git/commitdiff
Undefined name: strip(uuidnum) --> uuidnum.strip()
authorChristian Clauss <cclauss@me.com>
Mon, 20 Jan 2020 14:11:14 +0000 (15:11 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 14:11:14 +0000 (15:11 +0100)
dedrm_src/kindlekey.py

index 7e02b6c2f6f253527f980aa77d12e2d2ae808b33..7b994ed4c662ceb193b000a6a1b247de3f0a5e58 100644 (file)
@@ -1308,7 +1308,7 @@ elif isosx:
         uuids = []
         uuidnum = os.getenv('MYUUIDNUMBER')
         if uuidnum != None:
-            uuids.append(strip(uuidnum))
+            uuids.append(uuidnum.strip())
         cmdline = '/usr/sbin/ioreg -l -S -w 0 -r -c AppleAHCIDiskDriver'
         cmdline = cmdline.encode(sys.getfilesystemencoding())
         p = subprocess.Popen(cmdline, shell=True, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=False)