<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: contrib/hook-scripts/check-case-insensitive.py
===================================================================
--- contrib/hook-scripts/check-case-insensitive.py	(revision 21257)
+++ contrib/hook-scripts/check-case-insensitive.py	(working copy)
@@ -60,7 +60,6 @@
   sys.path.insert(0, SVNLIB_DIR)
 
 import os.path
-import string
 from svn import fs, core, repos, delta
 
 # Set this True for debug output.
@@ -183,7 +182,7 @@
 
 
   def add_directory(self, path, *args):
-    lpath = string.lower(path.decode("utf-8"))
+    lpath = path.decode("utf-8").lower()
     if self.paths.has_key(lpath):
       self.paths[lpath] += 1
     else:
@@ -193,7 +192,7 @@
   open_directory = add_directory
 
   def add_file(self, path, *args):
-    lpath = string.lower(path.decode("utf-8"))
+    lpath = path.decode("utf-8").lower()
     if self.paths.has_key(lpath):
       self.paths[lpath] += 1
     else:
@@ -288,17 +287,17 @@
     else:
       changedpath = changedroot + '/' + path
     for added in changed.added:
-      if (string.lower(added) == string.lower(changedpath)):
+      if (added.lower() == changedpath.lower()):
         return added
     for added in changed.addeddir:
-      if (string.lower(added) == string.lower(changedpath)):
+      if (added.lower() == changedpath.lower()):
         return added
     return ''
 
 if __name__ == "__main__":
   # Check for sane usage.
   if len(sys.argv) != 3:
-    sys.stderr.write("Usage: REPOS TXN\n"
+    sys.stderr.write("Usage: %s REPOS TXN\n"
                      % (os.path.basename(sys.argv[0])))
     sys.exit(1)
 
</pre></body></html>