chiark / gitweb /
FishPond: Actually make fish be an instance object (in Servus)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:25:23 +0000 (11:25 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:25:52 +0000 (11:25 +0100)
OMG.

No overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Servus-chiark.py

index 45b19a428e799527650e5304d9bfaa5f2b34e78a..f0be526abdf5f855cf5cb77ac6ac126032397c23 100755 (executable)
@@ -42,7 +42,7 @@ import commands as c
 
 # This fishpond is shared between trouts and flirts.  It doesn't have to be;
 # you can define as many ponds as you like.
-class fish (c.FishPond):
+class Fish (c.FishPond):
        cur_fish=5
        max_fish=5
        nofish_time=60
@@ -50,6 +50,8 @@ class fish (c.FishPond):
        fish_inc=2
        Boring_Git='Nobody'
 
+fish = Fish()
+
 # load the "blame" details for a file
 def loadblame(filename):
     p=subprocess.Popen(["git","blame","-s",filename],