Permalink
Browse files

Avoid importing pkg_resources in fedmsg.meta

Not sure why, but till reported a related UserWarning here:
https://admin.fedoraproject.org/updates/fedmsg-0.7.5-1.fc19
  • Loading branch information...
1 parent 0663b22 commit ffbc376155f475b4c4aaa12c715be91ea4d29fde @ralphbean ralphbean committed Feb 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 fedmsg/meta/__init__.py
View
@@ -58,7 +58,6 @@
from fedmsg.meta.default import DefaultProcessor
-import pkg_resources
import logging
@@ -84,6 +83,7 @@ def make_processors(**config):
>>> text = fedmsg.meta.msg2repr(some_message_dict, **config)
"""
+ import pkg_resources
global processors
processors = []
for processor in pkg_resources.iter_entry_points('fedmsg.meta'):

0 comments on commit ffbc376

Please sign in to comment.