diff --git a/dpaste/templates/dpaste/about.html b/dpaste/templates/dpaste/about.html
index aa7d730..b8fd609 100644
--- a/dpaste/templates/dpaste/about.html
+++ b/dpaste/templates/dpaste/about.html
@@ -19,7 +19,7 @@
API
{# Just put the script in dpaste and copy the source node #}
- - #!/usr/bin/env python
-
- import urllib
- import urllib2
- import sys
-
- def paste_code():
- request = urllib2.Request(
- 'https://dpaste.de/api/',
- urllib.urlencode([('content', sys.stdin.read())]),
- )
- response = urllib2.urlopen(request)
- # Strip surrounding quotes (NB: response has no trailing newline)
- print response.read()[1:-1]
-
- if __name__ == '__main__':
- paste_code()
+ - #!/usr/bin/env python
-
- import urllib
- import urllib2
- import sys
-
- def paste_code():
- request = urllib2.Request(
- 'https://dpaste.de/api/',
- urllib.urlencode([('content', sys.stdin.read())]),
- )
- response = urllib2.urlopen(request)
- # Strip surrounding quotes (NB: response has no trailing newline)
- print response.read()[1:-1]
-
- if __name__ == '__main__':
- paste_code()
Save this script in /usr/local/bin/dpaste
and chmod +x ..filepath
.