Skip to content

Commit

Permalink
Clearer variable names and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evansolomon committed Aug 18, 2012
1 parent 9909ffd commit 4cc1f2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions _sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ description = raw_input('Description? ')
generate = 1
generate_submit = 'Generate'

# Setup the request data
# Parse the inputs
data = {
'underscoresme_name': name,
'underscoresme_slug': slug,
Expand All @@ -40,11 +40,13 @@ data = {
'underscoresme_generate': generate,
'underscoresme_generate_submit': generate_submit
}
post_body = urllib.urlencode(data)

# Setup the request data
body = urllib.urlencode(data)
headers = {'User-Agent': '_sh'}

# Make the request
request = urllib2.Request('http://underscores.me', post_body, headers)
request = urllib2.Request('http://underscores.me', body, headers)
response = urllib2.urlopen(request)
response.fp

Expand Down

0 comments on commit 4cc1f2e

Please sign in to comment.