[py] fix % escaping in py-source.c
authorPaul Brossier <piem@piem.org>
Tue, 20 Nov 2018 21:46:19 +0000 (22:46 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 20 Nov 2018 21:46:19 +0000 (22:46 +0100)
python/ext/py-source.c

index ca525bf..7687fbd 100644 (file)
@@ -155,7 +155,7 @@ static char Py_source_doc[] = ""
 "...     for samples in source:\n"
 "...         n_frames += len(samples)\n"
 "...     print('read', n_frames, 'samples in', samples.shape[0], 'channels',\n"
-"...         'from file \"\%s\"' \% source.uri)\n"
+"...         'from file \"%%s\"' %% source.uri)\n"
 "...\n"
 "read 239334 samples in 2 channels from file \"audiotrack.wav\"\n"
 "\n"