Skip to content

Commit

Permalink
Whitespace fixups as per PEP-8.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 30, 2009
1 parent 8154d95 commit 41a8164
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ try:
#Return the parameters depending of the pastebin used
def getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password):
"Return the parameters array for the selected pastebin"
params={}
params = {}
for pastebin in pastebind:
if re.search( pastebind[pastebin]['pastebin']['regexp'], website ):
if re.search(pastebind[pastebin]['pastebin']['regexp'], website):
for param in pastebind[pastebin]['format'].keys():
paramname = pastebind[pastebin]['format'][param]
if param == 'user':
Expand Down Expand Up @@ -139,7 +139,7 @@ try:
return getText(getFirstNode(nodes, title).childNodes)

# Display usage instructions
def Usage ():
def Usage():
print "pastebinit v" + version
print "Reads on stdin for input or takes a filename as first parameter"
print _("Optional arguments:")
Expand Down Expand Up @@ -264,14 +264,14 @@ try:
if not re.search(".*/", website):
website += "/"

reLink=None
tmp_page=""
reLink = None
tmp_page = ""
if params.__contains__("page"):
website+=params['page']
tmp_page=params['page']
website += params['page']
tmp_page = params['page']
params.__delitem__("page")
if params.__contains__("regexp"):
reLink=params['regexp']
reLink = params['regexp']
params.__delitem__("regexp")
params = urllib.urlencode(params) #Convert to a format usable with the HTML POST

Expand Down

0 comments on commit 41a8164

Please sign in to comment.