ironfroggy/straight.plugin — pull request #5 by alanbriolat (2012-06-01 10:22:17+00:00)
Title: Ensure importlib dependency is met

`straight.plugin` uses `importlib`, which is only present in the standard library since Python 2.7/3.1. This change adds a dependency on `importlib` when it's not present to support other Python versions.

```pycon
Python 2.6 (r26:66714, Jun 1 2012, 11:16:26)
[GCC 4.6.3] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>> import straight.plugin
Traceback (most recent call last):
File "", line 1, in
File "/home/alan/.pythonbrew/venvs/Python-2.6/PygOut-py2.6/lib/python2.6/site-packages/straight/plugin/__init__.py", line 1, in
from straight.plugin import loaders
File "/home/alan/.pythonbrew/venvs/Python-2.6/PygOut-py2.6/lib/python2.6/site-packages/straight/plugin/loaders.py", line 6, in
from importlib import import_module
ImportError: No module named importlib
```