Репозитории ALT
S: | 1.2.18-alt2 |
5.1: | 0.83.0-alt2 |
4.1: | 0.82.4-alt2.1 |
4.0: | 0.82.2-alt1 |
Группа :: Разработка/Python
Пакет: python-module-dbus
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: dbus-python-1.1.1-alt-usc4-impaired-python-hack2-around.patch
Скачать
Скачать
--- dbus-python-1.1.1/test/test-standalone.py 2012-12-11 16:26:12.126616092 +0000
+++ dbus-python-1.1.1/test/test-standalone.py 2012-12-11 16:48:48.847168511 +0000
@@ -435,7 +435,11 @@
def utf8(*xs):
return str('').join(map(chr, xs))
def uni(x):
- return unichr(x)
+ hi,lo=divmod(x-0x10000,0x400)
+ if hi>0:
+ return unichr(0xd800+hi)+unichr(0xdc00+lo)
+ else:
+ return unichr(x)
for bad in [
uni(0xD800),
utf8(0xed, 0xa0, 0x80),