<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: tools/examples/svnlook.py
===================================================================
--- tools/examples/svnlook.py	(revision 20786)
+++ tools/examples/svnlook.py	(working copy)
@@ -16,7 +16,6 @@
 #
 
 import sys
-import string
 import time
 import os
 
@@ -24,6 +23,7 @@
 
 class SVNLook:
   def __init__(self, path, cmd, rev, txn):
+    path = core.svn_path_canonicalize(path)
     repos_ptr = repos.open(path)
     self.fs_ptr = repos.fs(repos_ptr)
 
@@ -308,7 +308,7 @@
 
 def _basename(path):
   "Return the basename for a '/'-separated path."
-  idx = string.rfind(path, '/')
+  idx = path.rfind('/')
   if idx == -1:
     return path
   return path[idx+1:]
@@ -373,7 +373,7 @@
   if args:
     if len(args) &gt; 1:
       usage(1)
-    cmd = string.replace(args[0], '-', '_')
+    cmd = args[0].replace('-', '_')
   else:
     cmd = 'default'
 
</pre></body></html>