Explorar o código

[PYTHON] Clarify API version comment

Tamir Duberstein %!s(int64=10) %!d(string=hai) anos
pai
achega
ef1b747a42
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      python/google/protobuf/internal/api_implementation.py

+ 2 - 2
python/google/protobuf/internal/api_implementation.py

@@ -80,8 +80,8 @@ if _implementation_type != 'python':
 
 # This environment variable can be used to switch between the two
 # 'cpp' implementations, overriding the compile-time constants in the
-# _api_implementation module. Right now only 1 and 2 are valid values. Any other
-# value will be ignored.
+# _api_implementation module. Right now only '2' is supported. Any other
+# value will cause an error to be raised.
 _implementation_version_str = os.getenv(
     'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION', '2')