[linux-minidisc] [PATCH 14/14] There is no need to use %r for (thought-to-be) ASCII title.
- From: Vincent Pelletier <plr.vincent@gmail.com>
- To: <linux-minidisc@lists.fu-berlin.de>
- Date: Thu, 11 Feb 2010 22:35:39 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:in-reply-to:references:from:date:subject:to:mime-version :content-type:x-length:x-uid; b=b2VXjpufgYaU889d1S/PTp9ybc/otVPDl8/3lvMdK8sxuuI/FcKfMi9X6p3uvp9TUU HfBT78qEEYy89OmZgugOs0Lrh7yc3aOvNbiMsPB50poYtVk3wvXqBJLGF6gurgfcfUe3 W8y7cLC0TxgbtBlMGtorhXyVyRiFbLX8qFqYs=
- Subject: [linux-minidisc] [PATCH 14/14] There is no need to use %r for (thought-to-be) ASCII title.
Note: those titles seems to just be one of 2 alternatives, and were found
to contain shift-jis in some homemade MDs.
---
netmd/lsmd.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/netmd/lsmd.py b/netmd/lsmd.py
index cb5c02a..065be99 100755
--- a/netmd/lsmd.py
+++ b/netmd/lsmd.py
@@ -38,7 +38,7 @@ def listMD(md):
* 512 + time_tuple[3]
flags = reprDiscFlags(md_iface.getDiscFlags())
- print 'Disk (%s) %r %s' % (
+ print 'Disk (%s) %s %s' % (
', '.join(flags), md_iface.getDiscTitle(),
md_iface.getDiscTitle(True).decode('shift_jis_2004'))
disc_used, disc_total, disc_left = md_iface.getDiscCapacity()
@@ -60,7 +60,7 @@ def listMD(md):
hour, minute, second, sample = md_iface.getTrackLength(real_track)
codec, channel_count = md_iface.getTrackEncoding(real_track)
flags = md_iface.getTrackFlags(real_track)
- print '%s%03i: %02i:%02i:%02i+%03i %s %s %s %r %s' % (prefix,
+ print '%s%03i: %02i:%02i:%02i+%03i %s %s %s %s %s' % (prefix,
track, hour, minute, second, sample, codec_name_dict[codec],
channel_count_dict[channel_count], flag_dict[flags],
md_iface.getTrackTitle(real_track),