Fix uWSGI startup with separate ini file under Python 3

Ensure ``config_file`` is a Unicode string.

Fix #7714.
This commit is contained in:
Nicola Soranzo
2019-04-10 16:54:48 +01:00
parent 8d5b155f1a
commit 9bbb200f23
+1 -1
View File
@@ -324,7 +324,7 @@ class UWSGIApplicationStack(MessageApplicationStack):
parser = nice_config_parser(config_file)
if not parser.has_section(config_section) and parser.has_section('app:main'):
kwds['config_section'] = 'app:main'
kwds['config_file'] = config_file
kwds['config_file'] = unicodify(config_file)
return kwds
@classmethod