Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame] | 1 | Short Name: endpoints |
| 2 | URL: https://github.com/cloudendpoints/endpoints-python |
| 3 | Version: 4.8.0 |
| 4 | License: Apache 2.0 |
| 5 | License File: LICENSE.txt |
| 6 | Security Critical: no |
| 7 | Description: |
| 8 | Google Cloud Endpoints is a solution for creating RESTful web APIs. |
| 9 | Local Modifications: |
| 10 | 1. Retain only the endpoints/ directory and LICENSE.txt file. |
| 11 | 2. Remove dependency on semver and move endpoints_management and |
| 12 | protorpc.wsgi imports into the functions where they're being used. |
| 13 | 3. Update files for Python 3. |
| 14 | Syntax changes: |
| 15 | * except Exception, e: --> except Exception as e: |
| 16 | |
| 17 | Import moves: |
| 18 | * from collections import Foo -> from collections.abc import Foo |
| 19 | * import cStringIO --> from six.moves import cStringIO |
| 20 | * import httplib --> from six.moves import http_client |
| 21 | * import urllib --> from six.moves import urllib |
| 22 | * import urlparse --> from six.moves import urllib |
| 23 | |
| 24 | String changes: |
| 25 | * basestring --> six.string_types |
| 26 | * if isinstance(s, unicode): s = s.encode() -> s = six.ensure_str(s) |
| 27 | * s.encode('ascii') --> six.ensure_binary(s, 'ascii') |
| 28 | * s.encode('hex') --> binascii.hexlify(s) |
| 29 | |
| 30 | Integer changes: |
| 31 | * long() --> int() |
| 32 | |
| 33 | Iterator changes: |
| 34 | * iteritems() --> items() |
| 35 | * iterkeys() -> keys() |
| 36 | * itervalues() --> values() |