Skip to content

Commit

Permalink
Code cleanup: don't call __special__ object methods directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 30, 2009
1 parent 41a8164 commit 172df8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ try:

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

url_opener = pasteURLopener()
Expand Down

0 comments on commit 172df8f

Please sign in to comment.