Tidy up some triple-quoted prints.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Jan 2025 00:11:16 +0000 (01:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 14 Jan 2025 22:47:53 +0000 (23:47 +0100)
platform/windows/wscript

index a7ef24589f64e322a79f52da86cd652b30c4e4d3..c1d37a414ea28ac42055b12898fe21110a5e4591 100644 (file)
@@ -501,26 +501,20 @@ RMDir "$INSTDIR"
         for s, l in tools:
             print('Delete "$DESKTOP\\DCP-o-matic 2 %s debug.lnk"' % l, file=f)
 
-        print("""
-Delete "$SMPROGRAMS\\DCP-o-matic 2 debug\\*.*"
-RmDir  "$SMPROGRAMS\\DCP-o-matic 2 debug"
-DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2 debug"
-DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug"
- SectionEnd
-        """, file=f)
+        print('Delete "$SMPROGRAMS\\DCP-o-matic 2 debug\\*.*"', file=f)
+        print('RmDir  "$SMPROGRAMS\\DCP-o-matic 2 debug"', file=f)
+        print('DeleteRegKey HKLM "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug"', file=f)
+        print('SectionEnd', file=f)
     else:
         print('Delete "$DESKTOP\\DCP-o-matic 2.lnk"', file=f)
         for s, l in tools:
             print('Delete "$DESKTOP\\DCP-o-matic 2 %s.lnk"' % l, file=f)
         print('Delete "$DESKTOP\\DCP-o-matic 2 Encode Server.lnk"', file=f)
 
-        print("""
-Delete "$SMPROGRAMS\\DCP-o-matic 2\\*.*"
-RmDir  "$SMPROGRAMS\\DCP-o-matic 2"
-DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2"
-DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2"
- SectionEnd
-    """, file=f)
+        print('Delete "$SMPROGRAMS\\DCP-o-matic 2\\*.*"', file=f)
+        print('RmDir  "$SMPROGRAMS\\DCP-o-matic 2"', file=f)
+        print('DeleteRegKey HKLM "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2"', file=f)
+        print('SectionEnd', file=f)
 
 
 def build(bld):