commit ac34c3afb8c019251a18f15acb5ef43d655f1827
parent 05f646792baf08121e6e8b3f798551714194d153
Author: Árni Dagur <agudmundsson@fc-md.umd.edu>
Date: Sat, 9 May 2020 19:24:38 -0400
Revert commit 'Gag stderr for add_filter_list'
Diffstat:
2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -11,7 +11,6 @@ debug = true
[dependencies]
adblock = "0.2.8"
pyo3 = "0.9"
-gag = "0.1"
[lib]
name="adblock"
diff --git a/src/lib.rs b/src/lib.rs
@@ -18,7 +18,6 @@ use pyo3::class::PyObjectProtocol;
use pyo3::exceptions::ValueError as PyValueError;
use pyo3::prelude::*;
use pyo3::PyErr;
-use gag::Gag;
use std::collections::HashMap;
use std::collections::HashSet;
@@ -351,9 +350,6 @@ impl Engine {
/// Add the contents of a block list file to the blocking engine.
#[text_signature = "($self, filter_list)"]
pub fn add_filter_list(&mut self, filter_list: &str) {
- // Gag the any messages to stderr. This is necessary until issue
- // https://github.com/brave/adblock-rust/issues/88 is closed.
- let _stderr_gag = Gag::stderr();
self.engine.add_filter_list(filter_list);
}