cpython: 6181146842ba (original) (raw)

Mercurial > cpython

changeset 96090:6181146842ba

Issue #24210: Silence a PendingDeprecationWarning warning in platform.platform(). [#24210]

Berker Peksag berker.peksag@gmail.com
date Sat, 16 May 2015 20:24:28 +0300
parents 08829230079b
children ea61d8eb8a28
files Lib/platform.py
diffstat 1 files changed, 11 insertions(+), 1 deletions(-)[+] [-] Lib/platform.py 12

line wrap: on

line diff

--- a/Lib/platform.py +++ b/Lib/platform.py @@ -114,6 +114,8 @@ import collections import sys, os, re, subprocess +import warnings +

Globals & Constants

Determine the platform's /dev/null device

@@ -1438,7 +1440,15 @@ def platform(aliased=0, terse=0): elif system in ('Linux',): # Linux based systems