Thu Nov 30 09:37:41 UTC 2006 Kirill Smelkov * string.join is deprecated diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2015-10-09 11:40:06.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2015-10-09 11:40:06.000000000 +0000 @@ -50,19 +50,19 @@ def filter_num(s): l = [c for c in s if c in string.digits] - return string.join(l, "") + return ''.join(l) allowed_in_action = string.ascii_letters + string.digits + '_' def filter_act(s): l = [c for c in s if c in allowed_in_action] - return string.join(l, "") + return ''.join(l) allowed_in_hash = string.ascii_letters + string.digits + '-.' def filter_hash(s): l = [c for c in s if c in allowed_in_hash] - return string.join(l, "") + return ''.join(l) def filter_file(s): @@ -83,7 +83,7 @@ def printd(*params): - print string.join(params), '
' + print ' '.join(params), '
' # I _hate_ this. @@ -94,7 +94,7 @@ n = [] for i in s.split('\n'): n.append(_fixu8(i)) - return string.join(n, '\n') + return '\n'.join(n) def _fixu8(s): if type(s) == unicode: @@ -205,7 +205,7 @@ if m & 0001: s.append('x') else: s.append('-') - return string.join(s, '') + return ''.join(s) def isbinary(fname):