#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

@@ -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']:


      from pyclamd import ClamdUnixSocket

no initial comment

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


2 years ago


2 years ago

Pull-Request has been merged by pingou

2 years ago