#1943 Add Docstring in file_virus_validation
Merged 2 years ago by pingou. Opened 2 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

2 years ago

rebased

2 years ago

Pull-Request has been merged by pingou

2 years ago