From 905059dcc203680f86316c83d538f14896adb928 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Thu, 17 Sep 2015 22:53:38 -0400 Subject: [style] pep8 fixes --- src/leap/bitmask/util/__init__.py | 3 ++- src/leap/bitmask/util/pastebin.py | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/leap/bitmask/util') diff --git a/src/leap/bitmask/util/__init__.py b/src/leap/bitmask/util/__init__.py index 9853803a..b788abd0 100644 --- a/src/leap/bitmask/util/__init__.py +++ b/src/leap/bitmask/util/__init__.py @@ -156,6 +156,7 @@ def flags_to_dict(): return values + def here(module=None): if getattr(sys, 'frozen', False): # we are running in a |PyInstaller| bundle @@ -163,6 +164,6 @@ def here(module=None): else: dirname = os.path.dirname if module: - return dirname(module.__file__) + return dirname(module.__file__) else: return dirname(__file__) diff --git a/src/leap/bitmask/util/pastebin.py b/src/leap/bitmask/util/pastebin.py index a3bdba02..6d50ac9e 100644 --- a/src/leap/bitmask/util/pastebin.py +++ b/src/leap/bitmask/util/pastebin.py @@ -366,7 +366,9 @@ class PastebinAPI(object): Usage Example:: from pastebin import PastebinAPI x = PastebinAPI() - details = x.user_details('453a994e0e2f1efae07f8759e59e075b', 'c57a18e6c0ae228cd4bd16fe36da381a') + details = x.user_details( + '453a994e0e2f1efae07f8759e59e075b', + 'c57a18e6c0ae228cd4bd16fe36da381a') print details MonkeyPuzzle @@ -486,7 +488,8 @@ class PastebinAPI(object): DLiSspYT 1332714730 - Pastebin.py - Python 3.2 Pastebin.com API + Pastebin.py - + Python 3.2 Pastebin.com API 25300 0 0 @@ -609,7 +612,6 @@ class PastebinAPI(object): def paste(self, api_dev_key, api_paste_code, api_user_key=None, paste_name=None, paste_format=None, paste_private=None, paste_expire_date=None): - """Submit a code snippet to Pastebin using the new API. -- cgit v1.2.3