A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/python/cpython/commit/11a82c7220a29aa1cabd6a1b042742b44c9c9b91 below:

Make the Python program help ASCII-only (GH-21836) · python/cpython@11a82c7 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+8

-3

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+8

-3

lines changed Original file line number Diff line number Diff line change

@@ -45,7 +45,11 @@ def test_site_flag(self):

45 45 46 46

def test_usage(self):

47 47

rc, out, err = assert_python_ok('-h')

48 -

self.assertIn(b'usage', out)

48 +

lines = out.splitlines()

49 +

self.assertIn(b'usage', lines[0])

50 +

# The first line contains the program name,

51 +

# but the rest should be ASCII-only

52 +

b''.join(lines[1:]).decode('ascii')

49 53 50 54

def test_version(self):

51 55

version = ('Python %d.%d' % sys.version_info[:2]).encode("ascii")

Original file line number Diff line number Diff line change

@@ -0,0 +1 @@

1 +

The output of ``python --help`` contains now only ASCII characters.

Original file line number Diff line number Diff line change

@@ -291,7 +291,7 @@ Set implementation specific option. The following options are available:

291 291

nested imports). Note that its output may be broken in multi-threaded

292 292

application. Typical usage is python3 -X importtime -c 'import asyncio'

293 293 294 -

-X dev: enable CPython’s “development mode, introducing additional runtime

294 +

-X dev: enable CPython's "development mode", introducing additional runtime

295 295

checks which are too expensive to be enabled by default. It will not be

296 296

more verbose than the default if the code is correct: new warnings are

297 297

only emitted when an issue is detected. Effect of the developer mode:

Original file line number Diff line number Diff line change

@@ -84,7 +84,7 @@ static const char usage_3[] = "\

84 84

cumulative time (including nested imports) and self time (excluding\n\

85 85

nested imports). Note that its output may be broken in multi-threaded\n\

86 86

application. Typical usage is python3 -X importtime -c 'import asyncio'\n\

87 -

-X dev: enable CPython’s “development mode, introducing additional runtime\n\

87 +

-X dev: enable CPython's \"development mode\", introducing additional runtime\n\

88 88

checks which are too expensive to be enabled by default. Effect of the\n\

89 89

developer mode:\n\

90 90

* Add default warning filter, as -W default\n\

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4