chiark / gitweb /
fshash.in: Rename `RX_RSYNCESC' to `R_RSYNCESC'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 1 Jun 2024 03:19:21 +0000 (04:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 9 Jun 2024 11:10:59 +0000 (12:10 +0100)
I don't think I've ever used the former convention anywhere else.

fshash.in

index 14d45b4aa873af20c5627dbd74dda401afe2c683..6eb33beb400cc3d5d1e1db5bcdd58f0c03e7c10e 100644 (file)
--- a/fshash.in
+++ b/fshash.in
@@ -129,7 +129,7 @@ def enum_find0(f, func):
   if len(tail):
     moan("ignored trailing junk after last filename")
 
-RX_RSYNCESC = RX.compile(r'\\ \# ([0-7]{3})', RX.VERBOSE)
+R_RSYNCESC = RX.compile(r'\\ \# ([0-7]{3})', RX.VERBOSE)
 def enum_rsync(f, func):
 
   ## The format is a little fiddly.  Each line consists of PERMS SIZE DATE
@@ -160,7 +160,7 @@ def enum_rsync(f, func):
     name = tail[spc + 1:]
 
     ## Now translate escape sequences.
-    name = RX_RSYNCESC.sub(lambda m: chr(int(m.group(1), 8)), name)
+    name = R_RSYNCESC.sub(lambda m: chr(int(m.group(1), 8)), name)
 
     ## Call the client.
     try: