changeset 798:720e51cb0edb

i dont use mozilla pastebin anymore
author Jeff Hammel <k0scist@gmail.com>
date Fri, 28 Oct 2016 10:45:46 -0700
parents 3575840553c8
children dbd2562cb03e
files python/pbmoz.py
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- 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