Commit f0ab2303 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Disallow empty names in _random_choice

parent 9e73d0a6
...@@ -48,7 +48,7 @@ class Name(Text): ...@@ -48,7 +48,7 @@ class Name(Text):
def _random_choice(self, kw): def _random_choice(self, kw):
alphabet = u'abcdef_1233490.:@/-αβγδεζ' alphabet = u'abcdef_1233490.:@/-αβγδεζ'
length = randint(0, 48) length = randint(1, 48)
return ''.join(choice(alphabet) for _ in xrange(length)) return ''.join(choice(alphabet) for _ in xrange(length))
class Nonnegative(Integer): class Nonnegative(Integer):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment