From: Chaoren Lin Date: Fri, 17 Jul 2015 21:40:11 +0000 (+0000) Subject: Check if altsep exists before replace. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=636a0e3836650ed51b737b33d6eee4d04482eb31;p=platform%2Fupstream%2Fllvm.git Check if altsep exists before replace. llvm-svn: 242576 --- diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 66c69f9..c3deee9 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1651,7 +1651,8 @@ class Base(unittest2.TestCase): if compiler[1] == ':': compiler = compiler[2:] - compiler = compiler.replace(os.path.altsep, os.path.sep) + if os.path.altsep is not None: + compiler = compiler.replace(os.path.altsep, os.path.sep) fname = "{}-{}-{}".format(self.id(), self.getArchitecture(), "_".join(compiler.split(os.path.sep))) if len(fname) > 200: