PEP 493: default to platform default in examples
This commit is contained in:
parent
c5e713f2d7
commit
cf5b1dd94e
|
@ -232,7 +232,7 @@ Example implementation
|
|||
try:
|
||||
verify_mode = config.get('https', 'verify')
|
||||
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
|
||||
verify_mode = 'enable'
|
||||
verify_mode = 'platform_default'
|
||||
default_factory = context_factories.get('platform_default')
|
||||
return context_factories.get(verify_mode, default_factory)
|
||||
|
||||
|
@ -310,7 +310,7 @@ Example implementation
|
|||
try:
|
||||
verify_mode = config.get('https', 'verify')
|
||||
except (ConfigParser.NoSectionError, ConfigParser.NoOptionError):
|
||||
verify_mode = 'enable'
|
||||
verify_mode = 'platform_default'
|
||||
default_factory = context_factories.get('platform_default')
|
||||
return context_factories.get(verify_mode, default_factory)
|
||||
|
||||
|
|
Loading…
Reference in New Issue