summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-22 22:01:11 +0000
committerDavid Robillard <d@drobilla.net>2011-04-22 22:01:11 +0000
commit2cb85fe854eec9063a59c8cda7c38114c15c5e07 (patch)
treeefb50e8b6f733f549efb5633eb868d45e0bc6e98
parent7fcab46b311e9efeece9d2b3cc90bdbcc198e9cd (diff)
downloadlilv-2cb85fe854eec9063a59c8cda7c38114c15c5e07.tar.gz
lilv-2cb85fe854eec9063a59c8cda7c38114c15c5e07.tar.bz2
lilv-2cb85fe854eec9063a59c8cda7c38114c15c5e07.zip
Fix Python whitespace (PEP8)
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3195 a436a847-0d15-0410-975c-d299462d15a1
-rwxr-xr-xswig/python/lv2_apply.py8
-rwxr-xr-xswig/python/lv2_list.py5
-rw-r--r--wscript2
3 files changed, 6 insertions, 9 deletions
diff --git a/swig/python/lv2_apply.py b/swig/python/lv2_apply.py
index 97d71c5..3eb4ea7 100755
--- a/swig/python/lv2_apply.py
+++ b/swig/python/lv2_apply.py
@@ -46,17 +46,17 @@ if wav_in.getnchannels() != n_audio_in:
wav_in.getnchannels(), n_audio_in)
sys.exit(1)
-# Open output file
+# Open output file
wav_out = wave.open(wav_out_path, 'w')
if not wav_out:
print "Failed to open output `%s'\n" % wav_out_path
sys.exit(1)
-# Set output file to same format as input (except possibly nchannels)
+# Set output file to same format as input (except possibly nchannels)
wav_out.setparams(wav_in.getparams())
wav_out.setnchannels(n_audio_out)
-rate = wav_in.getframerate()
+rate = wav_in.getframerate()
nframes = wav_in.getnframes()
# Instantiate plugin
@@ -74,7 +74,7 @@ def read_float(wf, nframes):
wav = wave.struct.unpack("%uB" % (len(wav)), wav)
wav = [ s - 128 for s in wav ]
wav = [ i / float(math.pow(2, 8)) for i in wav ]
-
+
n_channels = wf.getnchannels()
wavs = []
if n_channels > 1:
diff --git a/swig/python/lv2_list.py b/swig/python/lv2_list.py
index 4b09e86..786326b 100755
--- a/swig/python/lv2_list.py
+++ b/swig/python/lv2_list.py
@@ -6,7 +6,4 @@ world = slv2.World()
world.load_all()
for i in world.get_all_plugins():
- print(i.get_uri())
-
-
-
+ print(i.get_uri())
diff --git a/wscript b/wscript
index 2cdbab6..b473db4 100644
--- a/wscript
+++ b/wscript
@@ -203,7 +203,7 @@ def build(bld):
'''.split()
linkflags = [ '-ldl' ]
- libflags = [ '-fvisibility=hidden' ]
+ libflags = [ '-fvisibility=hidden' ]
if sys.platform == 'win32':
linkflags = []
libflags = []