File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -274,15 +274,15 @@ class ClamdUnixSocket(ClamdNetworkSocket):
274274 """
275275 Class for using clamd with an unix socket
276276 """
277- def __init__ (self , filename = "/var/run/clamav/clamd.ctl" , timeout = None ):
277+ def __init__ (self , path = "/var/run/clamav/clamd.ctl" , timeout = None ):
278278 """
279279 class initialisation
280280
281- filename (string) : unix socket filename
281+ path (string) : unix socket path
282282 timeout (float or None) : socket timeout
283283 """
284284
285- self .unix_socket = filename
285+ self .unix_socket = path
286286 self .timeout = timeout
287287
288288 def _init_socket (self ):
Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ def __init__(self):
9191
9292@raises (clamd .ConnectionError )
9393def test_cannot_connect ():
94- clamd .ClamdUnixSocket (filename = "/tmp/404" ).ping ()
95-
96-
94+ clamd .ClamdUnixSocket (path = "/tmp/404" ).ping ()
9795
9896
9997# class TestNetworkSocket(TestUnixSocket):
You can’t perform that action at this time.
0 commit comments