From 9c014c0fd05e8b1572d69e55bca24bd703df9494 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 20 Feb 2010 23:11:05 +0000 Subject: [PATCH] minor change --- lib/core/common.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index a69627722..1651bc5a8 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -853,18 +853,18 @@ def urlEncodeCookieValues(cookieStr): def directoryPath(path): retVal = None - if path.find('/') != -1: - retVal = posixpath.dirname(path) - else: + if isWindowsPath(path): retVal = ntpath.dirname(path) + else: + retVal = posixpath.dirname(path) return retVal def normalizePath(path): retVal = None - if path.find('/') != -1: - retVal = posixpath.normpath(path) - else: + if isWindowsPath(path): retVal = ntpath.normpath(path) + else: + retVal = posixpath.normpath(path) return retVal def safeStringFormat(formatStr, params):