Merge pull request #377 from mblayman/fix-trasnsport

Fix trasnsport typo in plugin manager.
This commit is contained in:
Jakub Roztočil 2015-08-31 06:20:01 +02:00
commit 307517e7ef
3 changed files with 3 additions and 2 deletions

View File

@ -32,3 +32,4 @@ Patches and ideas
* `Nathan LaFreniere <https://github.com/nlf>`_
* `Matthias Lehmann <https://github.com/matleh>`_
* `Dennis Brakhane <https://github.com/brakhane>`_
* `Matt Layman <https://github.com/mblayman>`_

View File

@ -22,7 +22,7 @@ DEFAULT_UA = 'HTTPie/%s' % __version__
def get_requests_session():
requests_session = requests.Session()
for cls in plugin_manager.get_trasnsport_plugins():
for cls in plugin_manager.get_transport_plugins():
transport_plugin = cls()
requests_session.mount(prefix=transport_plugin.prefix,
adapter=transport_plugin.get_adapter())

View File

@ -60,6 +60,6 @@ class PluginManager(object):
if issubclass(plugin, ConverterPlugin)]
# Adapters
def get_trasnsport_plugins(self):
def get_transport_plugins(self):
return [plugin for plugin in self
if issubclass(plugin, TransportPlugin)]