|
55 | 55 | import struct |
56 | 56 | import time |
57 | 57 | import re |
58 | | -import six |
59 | 58 |
|
60 | 59 | # Before loading Lima.Core, must find out the version the plug-in |
61 | 60 | # was compiled with - horrible hack ... |
@@ -1349,7 +1348,7 @@ def read_saving_common_header(self, attr): |
1349 | 1348 | header = saving.getCommonHeader() |
1350 | 1349 | headerArr = [ |
1351 | 1350 | "%s%s%s" % (k, self.__key_header_delimiter, v) |
1352 | | - for k, v in six.iteritems(header) |
| 1351 | + for k, v in header.items() |
1353 | 1352 | ] |
1354 | 1353 | attr.set_value(headerArr, len(headerArr)) |
1355 | 1354 |
|
@@ -1922,7 +1921,7 @@ def read_plugin_type_list(self, attr): |
1922 | 1921 |
|
1923 | 1922 | def read_plugin_list(self, attr): |
1924 | 1923 | returnList = [] |
1925 | | - for key, value in six.iteritems(get_sub_devices()): |
| 1924 | + for key, value in get_sub_devices().items(): |
1926 | 1925 | returnList.append(key.lower().replace("deviceserver", "")) |
1927 | 1926 | returnList.append(value) |
1928 | 1927 | attr.set_value(returnList) |
@@ -2375,7 +2374,7 @@ def getPluginDeviceNameFromType(self, pluginType): |
2375 | 2374 | pluginType2deviceName = dict( |
2376 | 2375 | [ |
2377 | 2376 | (x.lower().replace("deviceserver", ""), y) |
2378 | | - for x, y in six.iteritems(get_sub_devices()) |
| 2377 | + for x, y in get_sub_devices().items() |
2379 | 2378 | ] |
2380 | 2379 | ) |
2381 | 2380 | return pluginType2deviceName.get(pluginType.lower(), "") |
|
0 commit comments