From: Brian Warner Date: Fri, 5 Jan 2007 01:06:20 +0000 (-0700) Subject: more pyflakes cleanups X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~404 X-Git-Url: https://git.rkrishnan.org/specifications/(%5B%5E?a=commitdiff_plain;h=fa11c3f722afa059b447bbf0935d220481b2b441;p=tahoe-lafs%2Ftahoe-lafs.git more pyflakes cleanups --- diff --git a/src/allmydata/encode_new.py b/src/allmydata/encode_new.py index 6c6aa3cd..3bd01f79 100644 --- a/src/allmydata/encode_new.py +++ b/src/allmydata/encode_new.py @@ -1,12 +1,11 @@ -#! /usr/bin/python +# -*- test-case-name: allmydata.test.test_encode -*- -import math from twisted.internet import defer from allmydata.chunk import HashTree, roundup_pow2 from Crypto.Cipher import AES import sha from allmydata.util import mathutil -from allmydata.util.assertutil import _assert, precondition +from allmydata.util.assertutil import precondition from allmydata.py_ecc import rs_code def hash(data): diff --git a/src/allmydata/test/test_filetable_new.py b/src/allmydata/test/test_filetable_new.py index 473050ca..5d0c2cf7 100644 --- a/src/allmydata/test/test_filetable_new.py +++ b/src/allmydata/test/test_filetable_new.py @@ -1,5 +1,4 @@ -import os from zope.interface import implements from twisted.trial import unittest from twisted.internet import defer