All key/value pairs from the config are converted to unicode but httplib does not accept unicode for the port; only number or string.
httplib.HTTPSConnection(u'example.com', u'1443')
This converts the host string to unicode by combining the host and port given (u"example.com:1443") and allowing httplib to parse the port out of the unicode.
httplib.HTTPSConnection(u"example.com:1443")
This error only shows up when the port is set in a configuration file.
All key/value pairs from the config are converted to unicode but
httplib
does not accept unicode for the port; only number or string.This converts the host string to unicode by combining the host and port given (
u"example.com:1443"
) and allowing httplib to parse the port out of the unicode.This error only shows up when the port is set in a configuration file.