Browse files

complain on incorrect usage

  • Loading branch information...
1 parent bce200c commit 148a3b7fc73e397503f79f0e619a434bab8debf9 @timbertson committed Apr 25, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 version.py
View
1 version.py
@@ -85,6 +85,7 @@ def parse(cls, number, desc=None):
return cls(components, desc=desc)
def __init__(self, components, desc=None):
+ assert not isinstance(components, basestring), "use Version.parse()"
self.number = '.'.join(map(str,components)) # XXX REMOVE
self.components = components
self.desc = desc

0 comments on commit 148a3b7

Please sign in to comment.