[thorstenp] don't use deprecated string module
This commit is contained in:
parent
70abf6a955
commit
22f2cb37a7
|
@ -20,7 +20,6 @@
|
||||||
from common import gajim
|
from common import gajim
|
||||||
import select
|
import select
|
||||||
import re
|
import re
|
||||||
from string import split
|
|
||||||
from common.zeroconf.zeroconf import C_BARE_NAME, C_DOMAIN
|
from common.zeroconf.zeroconf import C_BARE_NAME, C_DOMAIN
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -157,7 +156,7 @@ class Zeroconf:
|
||||||
r'\064': '@',
|
r'\064': '@',
|
||||||
}
|
}
|
||||||
|
|
||||||
name, stype, protocol, domain, dummy = split(fullname, '.')
|
name, stype, protocol, domain, dummy = fullname.split('.')
|
||||||
|
|
||||||
# Replace the escaped values
|
# Replace the escaped values
|
||||||
for src, trg in escaping.items():
|
for src, trg in escaping.items():
|
||||||
|
|
Loading…
Reference in New Issue