summaryrefslogtreecommitdiff
path: root/dns/entropy.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-01-14 14:51:06 -0800
committerBob Halley <halley@nominum.com>2010-01-14 14:51:06 -0800
commit53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4 (patch)
tree10328f74009a1bdb93a5b924df5f1610417e370c /dns/entropy.py
parent4fbaa1dce221a1bd1b24c5c5e88bab088c13be9f (diff)
downloaddnspython-53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4.tar.gz
create exceptions with arguments as "raise E(args)" instead of "raise E, args"
Diffstat (limited to 'dns/entropy.py')
-rw-r--r--dns/entropy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/entropy.py b/dns/entropy.py
index 9e10d12..fd9d4f8 100644
--- a/dns/entropy.py
+++ b/dns/entropy.py
@@ -102,7 +102,7 @@ class EntropyPool(object):
def random_between(self, first, last):
size = last - first + 1
if size > 4294967296L:
- raise ValueError, 'too big'
+ raise ValueError('too big')
if size > 65536:
rand = self.random_32
max = 4294967295L