# HG changeset patch # User Jeff Hammel # Date 1477676746 25200 # Node ID 720e51cb0edbc1f9932fbfe5215c464bb935d45c # Parent 3575840553c85673b9aea5b69e24f9651f1d2dce i dont use mozilla pastebin anymore diff -r 3575840553c8 -r 720e51cb0edb python/pbmoz.py --- a/python/pbmoz.py Fri Oct 28 10:44:50 2016 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/usr/bin/env python -import urllib, sys - -if len(sys.argv) == 2: - url = "http://%s.pastebin.mozilla.org" % sys.argv[1] - fmt = sys.argv[1] -else: - url = "http://pastebin.mozilla.org" - fmt = "None" - -body = sys.stdin.read() - -params = [ - ('parent_pid', ''), - ('code2', body), - ('poster', ''), - ('expiry', 'd'), - ('paste', 'Send'), - ('format', fmt), - ] - -data = urllib.urlencode(params) - -req = urllib.urlopen(url, data) - -print req.geturl() \ No newline at end of file