daltonmatos / plugnplay

A Generic plug-in system for python applications

Home Page:http://github.com/daltonmatos/plugnplay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatibility with py3k filter() function

daltonmatos opened this issue · comments

In py3k, different from py2, the filter() function returns an filter object, not a list or tuple, etc.

With this, plugnplay breaks here:

def normalize_path(path):

Traceback (most recent call last):
  File "/home/daltonmatos/projetos/plugnplay/tests/common.py", line 17, in test_normalize_path_complex
    self.assertEquals('pnp.some.module.path', normalize_path('/some/module/path'))
  File "/home/daltonmatos/projetos/plugnplay/plugnplay/__init__.py", line 92, in normalize_path
    return '.'.join([PNP_SYS_MODULES_PREFIX] + parts)
TypeError: can only concatenate list (not "filter") to list