PR#1943 Merged Add Docstring in file_virus_validation

Proposed 5 months ago by artiladdha53
Modified 5 months ago
From forks/artiladdha53/pagure fix-doc  into pagure master
file changed

 1 @@ -72,6 +72,9 @@ 

 2   

 3   

 4   def file_virus_validator(form, field):

 5 +     ''' Checks for virus in the file from flask request object,

 6 +     raises wtf.ValidationError if virus is found else None. '''

 7 + 

 8       if not pagure.APP.config['VIRUS_SCAN_ATTACHMENTS']:

 9           return

10       from pyclamd import ClamdUnixSocket

Looks fine to me, let's rebase and merge :)

5 months ago

rebased

5 months ago

rebased

5 months ago

Pull-Request has been merged by pingou

Changes summary
+3 -0
file changed