#1943 Add Docstring in file_virus_validation
Merged 7 years ago by pingou. Opened 7 years ago by artiladdha53.
artiladdha53/pagure fix-doc  into  master

file modified
+3
@@ -72,6 +72,9 @@ 

  

  

  def file_virus_validator(form, field):

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

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

+ 

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

          return

      from pyclamd import ClamdUnixSocket

no initial comment

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

rebased

7 years ago

rebased

7 years ago

Pull-Request has been merged by pingou

7 years ago