From 180ddcad10cd9f85d17b52e4ac2dcf94493dc3c8 Mon Sep 17 00:00:00 2001 From: Hurderella Date: Sun, 1 May 2016 00:12:57 +0900 Subject: [PATCH] return upload information now, 'upload_from_path' func on client.py did not return result information. but user need to it. then just return about upload infomation after call 'upload' func --- imgurpython/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgurpython/client.py b/imgurpython/client.py index 9c41ea6..197914a 100644 --- a/imgurpython/client.py +++ b/imgurpython/client.py @@ -581,7 +581,7 @@ def get_image(self, image_id): def upload_from_path(self, path, config=None, anon=True): with open(path, 'rb') as fd: - self.upload(fd, config, anon) + return self.upload(fd, config, anon) def upload(self, fd, config=None, anon=True): if not config: