aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/db/base.py')
-rw-r--r--mediagoblin/db/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mediagoblin/db/base.py b/mediagoblin/db/base.py
index d2595ce2..deae2a01 100644
--- a/mediagoblin/db/base.py
+++ b/mediagoblin/db/base.py
@@ -13,7 +13,6 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import six
import copy
from sqlalchemy.ext.declarative import declarative_base
@@ -41,14 +40,14 @@ class FakeCursor:
return FakeCursor(copy.copy(self.cursor), self.mapper, self.filter)
def __iter__(self):
- return six.moves.filter(self.filter, six.moves.map(self.mapper, self.cursor))
+ return filter(self.filter, map(self.mapper, self.cursor))
def __getitem__(self, key):
return self.mapper(self.cursor[key])
def slice(self, *args, **kwargs):
r = self.cursor.slice(*args, **kwargs)
- return list(six.moves.filter(self.filter, six.moves.map(self.mapper, r)))
+ return list(filter(self.filter, map(self.mapper, r)))
class GMGTableBase:
# Deletion types