1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

Change sys.maxint to a const value

This commit is contained in:
xiez
2012-08-04 17:11:57 +08:00
parent 13f0d405e0
commit 4153e6255c
4 changed files with 12 additions and 9 deletions

View File

@@ -54,6 +54,7 @@ else:
print "Load config from " + CCNET_CONF_PATH
CCNET_CONF_PATH = os.path.normpath(os.path.expanduser(CCNET_CONF_PATH))
MAX_INT = 2147483647
pool = ccnet.ClientPool(CCNET_CONF_PATH)
ccnet_rpc = ccnet.CcnetRpcClient(pool, req_pool=True)
@@ -151,7 +152,7 @@ def remove_group_user(user):
def get_org_groups(org_id, start, limit):
try:
groups = ccnet_threaded_rpc.get_org_groups(org_id, 0, sys.maxint)
groups = ccnet_threaded_rpc.get_org_groups(org_id, 0, MAX_INT)
except SearpcError:
groups = []
return groups