aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2016-08-21 21:27:50 +0200
committerPapoteur <papoteur@mageialinux-online.org>2016-08-21 21:27:50 +0200
commit36bbba9ce6ab59d3c2da49989f96784a083b5b9a (patch)
treefef5a3e281f29cbb72b9d976709af2f79b1abbea /lib
parent14ad75ed202f56daf715f28b84c808279c43e106 (diff)
downloadisodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar
isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.gz
isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.bz2
isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.xz
isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.zip
Correction of variables names
Diffstat (limited to 'lib')
-rwxr-xr-xlib/isodumper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 63f567e..dea2e21 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -90,14 +90,14 @@ class UDisks2(object):
list=[]
for dev in devs:
- dev_obj =objects[dev['path']][DRIVE]
+ dev_obj =objects[dev['path']][self.DRIVE]
if (dev_obj['ConnectionBus'] == 'usb' or dev_obj['ConnectionBus'] == 'sdio') and \
(dev_obj['Removable'] == 1 or dev_obj['MediaRemovable'] == 1 ):
item=[]
vend = dev_obj['Vendor']
name = dev_obj['Model']
for block in blocks:
- if dev['path'] == objects[block['path']][BLOCK]['Drive']:
+ if dev['path'] == objects[block['path']][self.BLOCK]['Drive']:
dev_name = block['path'].split('/')[-1]
path = ''.join([i for i in dev_name if not i.isdigit()])
path = '/dev/' + path