Skip to content

Commit

Permalink
Made api_request assignment easier to read.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ermakov committed Jan 13, 2012
1 parent 5421382 commit 02f2236
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gist.py
Expand Up @@ -209,10 +209,7 @@ def api_request_wget(url_api, data = '', method = None):

return json.loads(response)

if not 'ssl' in sys.modules and not os.name == 'nt':
api_request = api_request_wget
else:
api_request = api_request_native
api_request = api_request_wget if ('ssl' not in sys.modules and os.name != 'nt') else api_request_native

class GistCommand(sublime_plugin.TextCommand):
public = True
Expand Down

0 comments on commit 02f2236

Please sign in to comment.