File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,23 @@ To use with a unix socket::
21
21
>>> import clamd
22
22
>>> cd = clamd.ClamdUnixSocket()
23
23
>>> cd.ping()
24
- u 'PONG'
24
+ 'PONG'
25
25
>>> cd.version() # doctest: +ELLIPSIS
26
- u 'ClamAV ...
26
+ 'ClamAV ...
27
27
>>> cd.reload()
28
- u 'RELOADING'
28
+ 'RELOADING'
29
29
30
30
To scan a file::
31
31
32
32
>>> open('/tmp/EICAR','wb').write(clamd.EICAR)
33
33
>>> cd.scan('/tmp/EICAR')
34
- {u '/tmp/EICAR': (u 'FOUND', u 'Eicar-Test-Signature')}
34
+ {'/tmp/EICAR': ('FOUND', 'Eicar-Test-Signature')}
35
35
36
36
To scan a stream::
37
37
38
38
>>> from six import BytesIO
39
39
>>> cd.instream(BytesIO(clamd.EICAR))
40
- {u 'stream': (u 'FOUND', u 'Eicar-Test-Signature')}
40
+ {'stream': ('FOUND', 'Eicar-Test-Signature')}
41
41
42
42
43
43
License
Original file line number Diff line number Diff line change @@ -28,4 +28,3 @@ tests-require = six
28
28
29
29
[nosetests]
30
30
with-doctest =1
31
- doctest-extension =rst
You can’t perform that action at this time.
0 commit comments