Title: [276878] trunk/Tools
Revision
276878
Author
aakash_j...@apple.com
Date
2021-05-01 18:32:13 -0700 (Sat, 01 May 2021)

Log Message

start-local-buildbot-server should fail gracefully for Python 2
https://bugs.webkit.org/show_bug.cgi?id=225268

Reviewed by Alexey Proskuryakov.

* CISupport/start-local-buildbot-server:

Modified Paths

Diff

Modified: trunk/Tools/CISupport/start-local-buildbot-server (276877 => 276878)


--- trunk/Tools/CISupport/start-local-buildbot-server	2021-05-01 20:40:57 UTC (rev 276877)
+++ trunk/Tools/CISupport/start-local-buildbot-server	2021-05-02 01:32:13 UTC (rev 276878)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python3
 #
 # Copyright (C) 2017, 2021 Igalia S.L.
+# Copyright (C) 2020 Apple Inc. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are
@@ -360,6 +361,10 @@
 
 
 if __name__ == '__main__':
+    if sys.version_info < (3, 5):
+        print('ERROR: Please use Python 3. This script is not compatible with Python 2.')
+        sys.exit(1)
+
     parser = argparse.ArgumentParser()
     configuration = parser.add_mutually_exclusive_group(required=True)
     configuration.add_argument('--ews', action='', const='ews', dest='configuration',

Modified: trunk/Tools/ChangeLog (276877 => 276878)


--- trunk/Tools/ChangeLog	2021-05-01 20:40:57 UTC (rev 276877)
+++ trunk/Tools/ChangeLog	2021-05-02 01:32:13 UTC (rev 276878)
@@ -1,5 +1,14 @@
 2021-05-01  Aakash Jain  <aakash_j...@apple.com>
 
+        start-local-buildbot-server should fail gracefully for Python 2
+        https://bugs.webkit.org/show_bug.cgi?id=225268
+
+        Reviewed by Alexey Proskuryakov.
+
+        * CISupport/start-local-buildbot-server:
+
+2021-05-01  Aakash Jain  <aakash_j...@apple.com>
+
         Disable search engine crawling on build.webkit.org webpages
         https://bugs.webkit.org/show_bug.cgi?id=225252
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to