# HG changeset patch
# User Andrey Skvortsov <andrej.skvortzov@gmail.com>
# Date 1538227400 -10800
# Node ID 3315e621d7fb625b33539e662e34f8af4201418c
# Parent  81116c5db60f5d10cf4b6b35aee99e3ac938b9e0
clean etherlab: pylint,W0108          # (unnecessary-lambda) Lambda may not be necessary

diff -r 81116c5db60f -r 3315e621d7fb etherlab/EthercatCIA402Slave.py
--- a/etherlab/EthercatCIA402Slave.py	Sat Sep 29 16:19:15 2018 +0300
+++ b/etherlab/EthercatCIA402Slave.py	Sat Sep 29 16:23:20 2018 +0300
@@ -200,7 +200,7 @@
     def CTNGenerate_C(self, buildpath, locations):
         current_location = self.GetCurrentLocation()
 
-        location_str = "_".join(map(lambda x: str(x), current_location))
+        location_str = "_".join(map(str, current_location))
         slave_pos = self.GetSlavePos()
         MCL_headers = Headers
 
@@ -326,7 +326,7 @@
         [fieldbus_interface_declaration, fieldbus_interface_definition,
          init_axis_params, extra_variables_retrieve, extra_variables_publish,
          extern_located_variables_declaration, entry_variables,
-         init_entry_variables] = map(lambda l: "\n".join(l), [
+         init_entry_variables] = map("\n".join, [
             fieldbus_interface_declaration, fieldbus_interface_definition,
             init_axis_params, extra_variables_retrieve, extra_variables_publish,
             extern_located_variables_declaration, entry_variables,
diff -r 81116c5db60f -r 3315e621d7fb etherlab/EthercatMaster.py
--- a/etherlab/EthercatMaster.py	Sat Sep 29 16:19:15 2018 +0300
+++ b/etherlab/EthercatMaster.py	Sat Sep 29 16:23:20 2018 +0300
@@ -711,7 +711,7 @@
     def _Generate_C(self, buildpath, locations):
         current_location = self.GetCurrentLocation()
         # define a unique name for the generated C file
-        location_str = "_".join(map(lambda x: str(x), current_location))
+        location_str = "_".join(map(str, current_location))
 
         Gen_Ethercatfile_path = os.path.join(buildpath, "ethercat_%s.c" % location_str)