Revision: 6b3fb3a4ad94
Branch: default
Author: Pekka Klärck
Date: Thu Jun 13 04:23:41 2013
Log: Added utils.matches and utils.html_attr_escape back because they
were used externally
Update issue 1472
Owner: pekka.klarck
Status: Started
Added `matches` and `html_attr_escape` back.
I keep this issue open in case also other libs are affected by removals.
http://code.google.com/p/robotframework/source/detail?r=6b3fb3a4ad94
Modified:
/src/robot/utils/__init__.py
=======================================
--- /src/robot/utils/__init__.py Fri Jun 7 17:53:18 2013
+++ /src/robot/utils/__init__.py Thu Jun 13 04:23:41 2013
@@ -62,3 +62,17 @@
import sys
is_jython = sys.platform.startswith('java')
del sys
+
+
+# Following utils were removed in 2.8 but added back in 2.8.1 because they
+# were used by SSHLibrary and SeleniumLibrary. Libs must be changed not to
+# use them and then, hopefully, we can remove them again in 2.9.
+# https://code.google.com/p/robotframework/issues/detail?id=1472
+
+def matches(string, pattern, ignore=(), caseless=True, spaceless=True):
+ """Deprecated!! Use Matcher instead."""
+ return Matcher(pattern, ignore, caseless, spaceless).match(string)
+
+def html_attr_escape(attr):
+ """Deprecated!! Use attribute_escape instead."""
+ return attribute_escape(attr)
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.