forked from premiere/premiere-libtorrent
Add/fix shebang in python scripts, add execute permission (linux), remove whitespace/tabs at end of line
This commit is contained in:
parent
bbe51268d3
commit
a59d1d3240
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import libtorrent as lt
|
import libtorrent as lt
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
f = open('../include/libtorrent/settings_pack.hpp')
|
f = open('../include/libtorrent/settings_pack.hpp')
|
||||||
|
|
||||||
out = open('settings.rst', 'w+')
|
out = open('settings.rst', 'w+')
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
counter_types = {}
|
counter_types = {}
|
||||||
|
|
||||||
f = open('../include/libtorrent/performance_counters.hpp')
|
f = open('../include/libtorrent/performance_counters.hpp')
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import resource
|
import resource
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
os.chdir('bindings/python')
|
os.chdir('bindings/python')
|
||||||
execfile('setup.py')
|
execfile('setup.py')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
"""Minimal non-feature complete socks proxy"""
|
"""Minimal non-feature complete socks proxy"""
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import SimpleHTTPServer
|
import SimpleHTTPServer
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import glob
|
import glob
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import os, sys, time
|
import os, sys, time
|
||||||
|
|
||||||
keys = [['upload rate', 'x1y1', 6], ['history entries', 'x1y2', 10], ['queue', 'x1y2', 4]]
|
keys = [['upload rate', 'x1y1', 6], ['history entries', 'x1y2', 10], ['queue', 'x1y2', 4]]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# Copyright Arvid Norberg 2008. Use, modification and distribution is
|
# Copyright Arvid Norberg 2008. Use, modification and distribution is
|
||||||
# subject to the Boost Software License, Version 1.0. (See accompanying
|
# subject to the Boost Software License, Version 1.0. (See accompanying
|
||||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys, time
|
import os, sys, time
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys, time
|
import os, sys, time
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# Copyright Arvid Norberg 2008. Use, modification and distribution is
|
# Copyright Arvid Norberg 2008. Use, modification and distribution is
|
||||||
# subject to the Boost Software License, Version 1.0. (See accompanying
|
# subject to the Boost Software License, Version 1.0. (See accompanying
|
||||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
# this is meant to parse the dht_lookups.log generated by parse_dht_log.py
|
# this is meant to parse the dht_lookups.log generated by parse_dht_log.py
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import os, sys, time
|
import os, sys, time
|
||||||
|
|
||||||
# usage: memory.log memory_index.log
|
# usage: memory.log memory_index.log
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# to use this script, first run 'sample' to sample your libtorrent based process
|
# to use this script, first run 'sample' to sample your libtorrent based process
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# Copyright (c) 2013, Arvid Norberg
|
# Copyright (c) 2013, Arvid Norberg
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os, sys, time
|
import os, sys, time
|
||||||
|
|
||||||
# usage: parse_log.py log-file [socket-index to focus on]
|
# usage: parse_log.py log-file [socket-index to focus on]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# Copyright (c) 2013, Arvid Norberg
|
# Copyright (c) 2013, Arvid Norberg
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
#!/bin/python
|
|
||||||
|
|
||||||
# Copyright (c) 2013, Arvid Norberg
|
# Copyright (c) 2013, Arvid Norberg
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import glob
|
import glob
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#! /usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import glob
|
import glob
|
||||||
|
|
Loading…
Reference in New Issue