From d1008b45b50d11d910e944f2970fddc03167d212 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 18 Jan 2013 10:46:06 +0100 Subject: [PATCH] Minor removal of unused function --- lib/core/common.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 1f9c56102..c9b3d887b 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1463,18 +1463,6 @@ def ntToPosixSlashes(filepath): return filepath.replace('\\', '/') -def isBase64EncodedString(subject): - """ - Checks if the provided string is Base64 encoded - - >>> isBase64EncodedString('dGVzdA==') - True - >>> isBase64EncodedString('123456') - False - """ - - return re.match(r"\A(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z", subject) is not None - def isHexEncodedString(subject): """ Checks if the provided string is hex encoded