PEP 493: default to platform default in examples

This commit is contained in:
Nick Coghlan 2015-05-19 23:30:08 +10:00
parent c5e713f2d7
commit cf5b1dd94e
1 changed files with 2 additions and 2 deletions

View File

@ -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)