Show More
@@ -143,7 +143,7 def debugancestor(ui, repo, *args): | |||
|
143 | 143 | @command(b'debugantivirusrunning', []) |
|
144 | 144 | def debugantivirusrunning(ui, repo): |
|
145 | 145 | """attempt to trigger an antivirus scanner to see if one is active""" |
|
146 | with repo.cachevfs.open('eicar-test-file.com', b'wb') as f: | |
|
146 | with repo.cachevfs.open(b'eicar-test-file.com', b'wb') as f: | |
|
147 | 147 | f.write( |
|
148 | 148 | util.b85decode( |
|
149 | 149 | # This is a base85-armored version of the EICAR test file. See |
@@ -154,7 +154,7 def debugantivirusrunning(ui, repo): | |||
|
154 | 154 | ) |
|
155 | 155 | # Give an AV engine time to scan the file. |
|
156 | 156 | time.sleep(2) |
|
157 | util.unlink(repo.cachevfs.join('eicar-test-file.com')) | |
|
157 | util.unlink(repo.cachevfs.join(b'eicar-test-file.com')) | |
|
158 | 158 | |
|
159 | 159 | |
|
160 | 160 | @command(b'debugapplystreamclonebundle', [], b'FILE') |
General Comments 0
You need to be logged in to leave comments.
Login now