Index: src/python/bin/gnuboat-log-converter
===================================================================
--- src/python/bin/gnuboat-log-converter	(revision 6fbf79028c71339d302c497460271d748fe5b6b4)
+++ src/python/bin/gnuboat-log-converter	(revision 9773514b63fb306019a818c5730c59df5355ba58)
@@ -43,5 +43,5 @@
            return int(string)
         except ValueError as error:
-           print 'INFO: Failed to convert value from line %s into numeric: %s\n      Message: %s' % (current_row, string, error)
+           print('INFO: Failed to convert value from line %s into numeric: {:s}\n      Message: {:s}'.format(current_row, string, error))
            return 0
 
@@ -54,5 +54,5 @@
     matches = regex_nmea_position.match(nmea_value)
     if matches is None:
-        print 'INFO: Failed to convert position value from line %s into decimal degrees: %s' % (current_row, nmea_value)
+        print('INFO: Failed to convert position value from line {:s} into decimal degrees: {:s}'.format(current_row, nmea_value))
         return
     decimalDegrees = toFloat(matches.group(1), current_row)
@@ -66,5 +66,5 @@
         output_file = open(output_file_path, 'w', 0)
     except IOError as error:
-        print "ERROR: Could not open the output file: %s" % error
+        print('ERROR: Could not open the output file: {}'.format(error))
         sys.exit(3)
 
@@ -81,5 +81,5 @@
         input_file = open(input_file_path, 'r')
     except IOError as error:
-        print "ERROR: Could not open the input file: %s" % error
+        print('ERROR: Could not open the input file: {}'.format(error))
         sys.exit(3)
     current_row = 1
@@ -89,5 +89,5 @@
         matches = regex_nmea_sentence.match(line)
         if matches is None:
-            print 'INFO: Failed to parse nmea sentence (%s) at line %s\n' % (line, current_row)
+            print('INFO: Failed to parse nmea sentence ({}) at line {}\n'.format(line, current_row))
             if not errors_ignore:
                 input_file.close()
@@ -99,5 +99,5 @@
                 if last_row is not None:
                     output_file_csv.writerow(last_row)
-                last_row = {'datetime': '%s %s' % (nmea_sentence.datestamp, nmea_sentence.timestamp),
+                last_row = {'datetime': '{} {}'.format(nmea_sentence.datestamp, nmea_sentence.timestamp),
                             'gps_status': nmea_sentence.status,
                             'latitude': nmeaToDecimalDegrees(nmea_sentence.lat, current_row),
@@ -125,5 +125,5 @@
         output_file = open(output_file_path, 'w', 0)
     except IOError as error:
-        print "ERROR: Could not open the output file: %s" % error
+        print('ERROR: Could not open the output file: {}'.format(error))
         sys.exit(3)
 
@@ -132,5 +132,5 @@
         input_file = open(input_file_path, 'r')
     except IOError as error:
-        print "ERROR: Could not open the input file: %s" % error
+        print('ERROR: Could not open the input file: {}'.format(error))
         sys.exit(3)
     current_row = 1
@@ -140,5 +140,5 @@
         matches = regex_nmea_sentence.match(line)
         if matches is None:
-            print 'INFO: Failed to parse nmea sentence (%s) at line %s\n' % (line, current_row)
+            print('INFO: Failed to parse nmea sentence ({}) at line {}\n'.format(line, current_row))
             if not errors_ignore:
                 input_file.close()
@@ -149,6 +149,6 @@
             output_string = str(nmea_sentence)
             if not strip_time and matches.group(1):
-                output_string = '%s%s' % (matches.group(1), output_string) 
-            output_file.write("%s\r\n" % str(output_string))
+                output_string = '{}{}'.format(matches.group(1), output_string)
+            output_file.write('{}\r\n'.format(str(output_string)))
     output_file.close()
     input_file.close()
@@ -177,5 +177,5 @@
       formats.append(file_format.name)
 
-    parser = argparse.ArgumentParser(description="Convert gnuboat logfiles into other formats")
+    parser = argparse.ArgumentParser(description='Convert gnuboat logfiles into other formats')
     parser.add_argument('-f', '--format', dest='output_format', metavar='output_format', type=str,
                         help='Format of the output file.', choices=formats, default='CSV')
@@ -197,5 +197,5 @@
                format_found = True
         if not format_found:
-            print 'ERROR: Invalid input format specified: %s' % arguments.output_format
+            print('ERROR: Invalid input format specified: {}'.format(arguments.output_format))
             sys.exit(1)
 
@@ -207,8 +207,8 @@
             
     if arguments.input_file is None:
-        print 'ERROR: No input file specified'
+        print('ERROR: No input file specified')
         sys.exit(2)
     elif not os.path.exists(arguments.input_file):
-        print 'ERROR: Specified input file does not exists: %s' % arguments.input_file
+        print('ERROR: Specified input file does not exists: {}'.format(arguments.input_file))
         sys.exit(3)
     else:
@@ -216,8 +216,8 @@
         
     if arguments.output_file is None:
-        print 'ERROR: No output file specified'
+        print('ERROR: No output file specified')
         sys.exit(2)
     elif not os.path.exists(os.path.dirname(arguments.output_file)):
-        print 'ERROR: Specified directory of output file does not exists: %s' % arguments.output_file
+        print('ERROR: Specified directory of output file does not exists: {}'.format(arguments.output_file))
         sys.exit(3)
     else:
@@ -231,5 +231,5 @@
         convertToGpx(input_file_path, output_file_path, errors_ignore, strip_time)
     else:
-        print "ERROR: Undefined output format!\n";
+        print('ERROR: Undefined output format!\n')
         sys.exit(1)
 
