Skip to content

Commit

Permalink
Unicode strings by default for Py3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
abompard committed Apr 26, 2018
1 parent 09a2c15 commit 5534e45
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions fedmsg_migration_tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

"""This module is responsible for loading the application configuration."""

from __future__ import unicode_literals

import logging
import logging.config
import os
Expand All @@ -27,21 +31,21 @@

#: A dictionary of application configuration defaults.
DEFAULTS = dict(
amqp_url=u'amqp://',
amqp_url='amqp://',
amqp_to_zmq={
'queue_name': 'fedmsg_zmq_bridge',
'bindings': [
{
'exchange': u'amq.topic',
'routing_key': u'#',
'exchange': 'amq.topic',
'routing_key': '#',
'arguments': {},
}
],
'publish_endpoint': 'tcp://*:9940',
},
zmq_to_amqp={
'exchange': u'zmq.topic',
'topics': [u''],
'exchange': 'zmq.topic',
'topics': [''],
'zmq_endpoints': [],
},
log_config={
Expand Down

0 comments on commit 5534e45

Please sign in to comment.