From 22fdd59ca40f3c7c8ba5d8b69b88c268900a95b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 14 Aug 2017 14:35:58 +0200 Subject: [PATCH] scm: Accept unicode as local path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/wrappers/scm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pungi/wrappers/scm.py b/pungi/wrappers/scm.py index 04dc8290..6ae225a5 100644 --- a/pungi/wrappers/scm.py +++ b/pungi/wrappers/scm.py @@ -226,7 +226,7 @@ def get_file_from_scm(scm_dict, target_path, logger=None): >>> get_file_from_scm(scm_dict, target_path) ['/tmp/path/share/variants.dtd'] """ - if isinstance(scm_dict, str): + if isinstance(scm_dict, basestring): scm_type = "file" scm_repo = None scm_file = os.path.abspath(scm_dict) @@ -279,7 +279,7 @@ def get_dir_from_scm(scm_dict, target_path, logger=None): >>> get_dir_from_scm(scm_dict, target_path) ['/tmp/path/share/variants.dtd', '/tmp/path/share/rawhide-fedora.ks', ...] """ - if isinstance(scm_dict, str): + if isinstance(scm_dict, basestring): scm_type = "file" scm_repo = None scm_dir = os.path.abspath(scm_dict)