Browse Source

[PYTHON] Clarify API version comment

Tamir Duberstein 10 năm trước cách đây
mục cha
commit
ef1b747a42

+ 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
 # This environment variable can be used to switch between the two
 # 'cpp' implementations, overriding the compile-time constants in the
 # '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(
 _implementation_version_str = os.getenv(
     'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION', '2')
     'PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION', '2')