From 323c00311d2f90cb7a82286d037ee5fc8c09f960 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 May 2010 11:04:56 +0200 Subject: fb: remove \n from URL Signed-off-by: Florian Pritz --- fb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fb') diff --git a/fb b/fb index bced69f..98a5256 100755 --- a/fb +++ b/fb @@ -34,7 +34,7 @@ def do_upload(file, extension=None): url = Popen(merge([['curl', '-#', '-n', '-L', '-F', 'file=@%s' % file, ], curl_args, ['http://paste.xinu.at/file/do_upload']]), - stdout=PIPE).communicate()[0] + stdout=PIPE).communicate()[0].rstrip() print url Popen('echo -n "%s" | nohup >/dev/null xclip 2>&1' % url, shell=True) -- cgit v1.2.3-24-g4f1b