Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use just set()

  • Loading branch information...
commit 05f1a824df32c2b0b1c4ac1ed1dc9490faa753da 1 parent 596c2f7
Stefan Urbanek authored
Showing with 3 additions and 4 deletions.
  1. +1 −2  brewery/dq/base.py
  2. +2 −2 brewery/dq/field_statistics.py
View
3  brewery/dq/base.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-import sets
class ProbeSet(object):
"""Set of probes"""
@@ -31,7 +30,7 @@ class FieldTypeProbe(object):
def __init__(self, field):
self.field = field
- self.storage_types = sets.Set()
+ self.storage_types = set()
self.null_count = 0
self.empty_string_count = 0
View
4 brewery/dq/field_statistics.py
@@ -47,9 +47,9 @@ def __init__(self, key = None, distinct_threshold = 10):
self.record_count = 0
self.value_ratio = 0
- self.distinct_values = sets.Set()
+ self.distinct_values = set()
self.distinct_overflow = False
- self.storage_types = sets.Set()
+ self.storage_types = set()
self.null_count = 0
self.null_value_ratio = 0
Please sign in to comment.
Something went wrong with that request. Please try again.