unitas/www-apps/lektor/files/publisher-rsync-python3.diff

17 lines
749 B
Diff

diff -Naur lektor-3.0.1.orig/lektor/publisher.py lektor-3.0.1/lektor/publisher.py
--- lektor-3.0.1.orig/lektor/publisher.py 2017-06-13 01:52:29.000000000 +0200
+++ lektor-3.0.1/lektor/publisher.py 2017-08-11 16:09:12.000000000 +0200
@@ -217,10 +217,10 @@
username = credentials.get('username') or target_url.username
if username:
- target.append(username.encode('utf-8') + '@')
+ target.append(username + '@')
target.append(target_url.ascii_host)
- target.append(':' + target_url.path.encode('utf-8').rstrip('/') + '/')
+ target.append(':' + target_url.path.rstrip('/') + '/')
argline.append(self.output_path.rstrip('/\\') + '/')
argline.append(''.join(target))