Skip to content

Loading…

Avoid importing pkg_resources in fedmsg.meta #223

Merged
merged 1 commit into from

3 participants

@ralphbean
Fedora Infrastructure member

Not sure why, but till reported a related UserWarning here:
https://admin.fedoraproject.org/updates/fedmsg-0.7.5-1.fc19

@pypingou
Fedora Infrastructure member

Odd, but code wise :+1:

@lmacken
Fedora Infrastructure member

looks fine :+1:

setuptools :-1:

@ralphbean ralphbean merged commit 9bfe5ec into develop

1 check passed

Details default The Travis CI build passed
@ralphbean ralphbean deleted the feature/avoid-pkg_resources branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 18, 2014
  1. @ralphbean

    Avoid importing pkg_resources in fedmsg.meta

    ralphbean committed
    Not sure why, but till reported a related UserWarning here:
    https://admin.fedoraproject.org/updates/fedmsg-0.7.5-1.fc19
Showing with 1 addition and 1 deletion.
  1. +1 −1 fedmsg/meta/__init__.py
View
2 fedmsg/meta/__init__.py
@@ -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'):
Something went wrong with that request. Please try again.