Преглед на файлове

Fixed warnings on Windows

Sam Lantinga преди 4 години
родител
ревизия
5b051459ed
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/joystick/sort_controllers.py

+ 1 - 1
src/joystick/sort_controllers.py

@@ -67,7 +67,7 @@ def write_controllers():
     for entry in sorted(controllers, key=lambda entry: entry[2]+"-"+entry[1]):
         line = "".join(entry) + "\n"
         line = line.replace("\t", "    ")
-        if not line.endswith(",\n") and not line.endswith("*/\n"):
+        if not line.endswith(",\n") and not line.endswith("*/\n") and not line.endswith(",\r\n") and not line.endswith("*/\r\n"):
             print("Warning: '%s' is missing a comma at the end of the line" % (line))
         output.write(line)