Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | Name: Google App Engine SDK |
| 2 | URL: https://github.com/GoogleCloudPlatform/appengine-python-standard |
| 3 | Version: May 18, 2022 |
| 4 | License: Apache 2.0 |
| 5 | License File: LICENSE |
| 6 | Security Critical: no |
| 7 | Description: |
| 8 | Development tools for Google App Engine |
| 9 | Local Modifications: |
| 10 | While most App Engine APIs have been updated for Python 3 in the above GitHub |
| 11 | repository, ProtocolBuffer is not available. Therefore, we have copied the file |
| 12 | from the old Python 2 API and are updating it ourselves for Python 3. |
| 13 | |
| 14 | 1. Install the Google Cloud SDK (https://cloud.google.com/sdk) |
| 15 | The App Engine Python SDK is located in gcloud/platform/google_appengine/ |
| 16 | 2. Retain only: |
| 17 | google/net/__init__.py |
| 18 | google/net/proto/__init__.py |
| 19 | google/net/proto/ProtocolBuffer.py |
| 20 | LICENSE |
| 21 | 3. Strip trailing whitespace from all files. |
| 22 | 4. Update files for Python 3. |
| 23 | Syntax changes: |
| 24 | * raise Exception, s --> raise Exception(s) |
| 25 | |
| 26 | Import moves: |
| 27 | * import httplib --> from six.moves import http_client |
| 28 | |
| 29 | String changes: |
| 30 | * a.fromstring(s) --> a.frombytes(six.ensure_binary(s)) |
| 31 | * a.tostring() --> a.tobytes() |
| 32 | |
| 33 | Integer changes: |
| 34 | * 1234L --> 1234 |
| 35 | * long(1234) --> 1234 |