Undefined name: strip(uuidnum) --> uuidnum.strip()

This commit is contained in:
Christian Clauss 2020-01-20 15:11:14 +01:00 committed by GitHub
parent 0955713cd6
commit eddbefcf91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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)