Skip to content

Commit 4a4908c

Browse files
UtumnoSharlikran
authored andcommitted
FFF readable_sig
1 parent 5a549b8 commit 4a4908c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Mopy/bash/bosh/cosaves.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,11 +1416,8 @@ def _get_plugin_signature(self, plugin_chunk):
14161416
readable_sig = u'Pluggy'
14171417
else:
14181418
# Reverse the result since xSE writes signatures backwards
1419-
# TODO(inf) There has to be a better way to do this
1420-
readable_sig = (self._to_unichr(raw_sig, 0) +
1421-
self._to_unichr(raw_sig, 8) +
1422-
self._to_unichr(raw_sig, 16) +
1423-
self._to_unichr(raw_sig, 24))[::-1]
1419+
readable_sig = u''.join(
1420+
[self._to_unichr(raw_sig, x) for x in [0, 8, 16, 24]])[::-1]
14241421
return readable_sig + u' (0x%X)' % raw_sig
14251422

14261423
@staticmethod

0 commit comments

Comments
 (0)