diff --git a/swift/common/constraints.py b/swift/common/constraints.py index 74611ec5d2..ec65f349ce 100644 --- a/swift/common/constraints.py +++ b/swift/common/constraints.py @@ -14,7 +14,6 @@ # limitations under the License. import os -import re from webob.exc import HTTPBadRequest, HTTPLengthRequired, \ HTTPRequestEntityTooLarge @@ -144,10 +143,6 @@ def check_float(string): return False -_invalid_xml = re.compile(ur'[^\x09\x0a\x0d\x20-\uD7FF\uE000-\uFFFD%s-%s]' % - (unichr(0x10000), unichr(0x10FFFF))) - - def check_utf8(string): """ Validate if a string is valid UTF-8.