Put standard modules imports before other imports
authorAntonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 09:23:35 +0000 (10:23 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 4 Jan 2016 10:13:30 +0000 (11:13 +0100)
This fixes wrong-import-order message from pylint.

src/measure_call_setup_time.py
src/measure_call_setup_time_from_android.py
src/measure_call_setup_time_to_android.py
src/measure_ring_distance.py
src/receive.py
src/savemysugar/CallDistanceTransceiver.py
src/transmit.py

index 57bf49a..1a92301 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import time
+
 from savemysugar.cumulative_average import cumulative_average
 from savemysugar.Modem import Modem
 from savemysugar.cumulative_average import cumulative_average
 from savemysugar.Modem import Modem
-import time
 
 
 class Ring(object):
 
 
 class Ring(object):
index 1738513..f89fce7 100755 (executable)
 # setup time" (e.g. 17) and then send a message from the Android app while
 # measuring the times with this program.
 
 # setup time" (e.g. 17) and then send a message from the Android app while
 # measuring the times with this program.
 
-from savemysugar.cumulative_average import cumulative_average
-from savemysugar.Modem import Modem
 import subprocess
 import time
 
 import subprocess
 import time
 
+from savemysugar.cumulative_average import cumulative_average
+from savemysugar.Modem import Modem
+
 
 class Ring(object):
     time = -1
 
 class Ring(object):
     time = -1
index a862fea..b71d15c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-from savemysugar.cumulative_average import cumulative_average
-from savemysugar.Modem import Modem
 import subprocess
 import time
 
 import subprocess
 import time
 
+from savemysugar.cumulative_average import cumulative_average
+from savemysugar.Modem import Modem
+
 
 def measure_call_setup_time_to_android(outgoing_port, destination_number):
     outgoing_modem = Modem(outgoing_port)
 
 def measure_call_setup_time_to_android(outgoing_port, destination_number):
     outgoing_modem = Modem(outgoing_port)
index e89b35b..66e43d3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import time
+
 from savemysugar.cumulative_average import cumulative_average
 from savemysugar.Modem import Modem
 from savemysugar.cumulative_average import cumulative_average
 from savemysugar.Modem import Modem
-import time
 
 
 class Rings(object):
 
 
 class Rings(object):
index 1d4fda1..8c2c102 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import logging
+
 from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
 from savemysugar.Modem import Modem
 from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
 from savemysugar.Modem import Modem
-import logging
 
 # TODO: set the logging level from the command line
 FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
 
 # TODO: set the logging level from the command line
 FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
index 15fcdae..14914b1 100755 (executable)
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import logging
+import time
 
 # This hack allows importing local modules also when
 # __name__ == "__main__"
 
 # This hack allows importing local modules also when
 # __name__ == "__main__"
@@ -27,9 +29,6 @@ except SystemError:
     from MorseDistanceModulator import MorseDistanceModulator
     from MorseTranslator import MorseTranslator
 
     from MorseDistanceModulator import MorseDistanceModulator
     from MorseTranslator import MorseTranslator
 
-import logging
-import time
-
 
 def log_symbol(distance, symbol, extra_info=""):
     logging.info("distance: %.2f Received \"%s\"%s", distance, symbol,
 
 def log_symbol(distance, symbol, extra_info=""):
     logging.info("distance: %.2f Received \"%s\"%s", distance, symbol,
index 2e8ef4c..4910066 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import logging
+
 from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
 from savemysugar.Modem import Modem
 from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
 from savemysugar.Modem import Modem
-import logging
 
 # TODO: set the logging level from the command line
 FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
 
 # TODO: set the logging level from the command line
 FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"