Fix example, and clarify string literal syntax.

This commit is contained in:
Georg Brandl 2010-01-06 09:14:44 +00:00
parent ad8da71490
commit 336f3092fb
1 changed files with 2 additions and 2 deletions

View File

@ -470,7 +470,7 @@ Here are some example of fields using such markers::
Requires-Dist: pywin32 (>1.0); sys.platform == 'win32'
Obsoletes-Dist: pywin31; sys.platform == 'win32'
Requires-Dist: foo (1,!=1.3); os.machine == 'i386'
Requires-Dist: foo (1,!=1.3); platform.machine == 'i386'
Requires-Dist: bar; python_version == '2.4' or python_version == '2.5'
Requires-External: libxslt; 'linux' in sys.platform
@ -491,7 +491,7 @@ where ``EXPR`` belongs to any of those:
- sys.platform = sys.platform
- platform.version = platform.version()
- platform.machine = platform.machine()
- a free string, like ``2.4``, or ``win32``
- a free string, like ``'2.4'``, or ``'win32'``
Notice that ``in`` is restricted to strings, meaning that it is not possible
to use other sequences like tuples or lists on the right side.