largefiles: fix typo with s/__class/__class__/
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 23 Mar 2015 17:07:25 -0700
changeset 24428 586d33f47dca
parent 24427 811a1842cfe5
child 24429 69bd0ec2f9be
largefiles: fix typo with s/__class/__class__/ Commit f78252429e0a (largefiles: don't create chain of __contains__ calls, 2015-03-11) introduced a typo with __class instead of __class__. Let's fix it. There are (obviously) no tests covering this code path, and I could not figure out a way to trigger it, so it remains untested. Spotted by Drew Gottlieb.
hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Mon Mar 23 14:47:35 2015 -0400
+++ b/hgext/largefiles/reposetup.py	Mon Mar 23 17:07:25 2015 -0700
@@ -44,7 +44,7 @@
                         return [lfutil.splitstandin(f) or f for f in filenames]
                     def manifest(self):
                         man1 = super(lfilesctx, self).manifest()
-                        class lfilesmanifest(man1.__class):
+                        class lfilesmanifest(man1.__class__):
                             def __contains__(self, filename):
                                 orig = super(lfilesmanifest, self).__contains__
                                 return (orig(filename) or