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):
274
274
"""
275
275
Class for using clamd with an unix socket
276
276
"""
277
- def __init__ (self , filename = "/var/run/clamav/clamd.ctl" , timeout = None ):
277
+ def __init__ (self , path = "/var/run/clamav/clamd.ctl" , timeout = None ):
278
278
"""
279
279
class initialisation
280
280
281
- filename (string) : unix socket filename
281
+ path (string) : unix socket path
282
282
timeout (float or None) : socket timeout
283
283
"""
284
284
285
- self .unix_socket = filename
285
+ self .unix_socket = path
286
286
self .timeout = timeout
287
287
288
288
def _init_socket (self ):
Original file line number Diff line number Diff line change @@ -91,9 +91,7 @@ def __init__(self):
91
91
92
92
@raises (clamd .ConnectionError )
93
93
def test_cannot_connect ():
94
- clamd .ClamdUnixSocket (filename = "/tmp/404" ).ping ()
95
-
96
-
94
+ clamd .ClamdUnixSocket (path = "/tmp/404" ).ping ()
97
95
98
96
99
97
# class TestNetworkSocket(TestUnixSocket):
You can’t perform that action at this time.
0 commit comments