changeset 2338 | 63a4d56416c6 |
parent 2335 | 33734ca16f74 |
child 2339 | aa5954c06b9d |
--- a/src/sysrepo.py Fri May 06 14:35:23 2011 -0700 +++ b/src/sysrepo.py Fri May 06 17:24:48 2011 -0700 @@ -256,7 +256,7 @@ # check our port try: num = int(port) - if num <= 0 or num >= 65635: + if num <= 0 or num >= 65535: raise SysrepoException(_("invalid port: %s") % port) except ValueError: @@ -265,7 +265,7 @@ # check our cache size try: num = int(cache_size) - if num <= 0 or num >= 65635: + if num <= 0: raise SysrepoException(_("invalid cache size: " "%s") % num) except ValueError: