Revision 76b62028 lib/jstore.py

b/lib/jstore.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
174 174

  
175 175

  
176 176
def FormatJobID(job_id):
177
  """Convert a job ID to string format.
177
  """Convert a job ID to int format.
178 178

  
179
  Currently this just does C{str(job_id)} after performing some
180
  checks, but if we want to change the job id format this will
181
  abstract this change.
179
  Currently this just is a no-op that performs some checks, but if we
180
  want to change the job id format this will abstract this change.
182 181

  
183 182
  @type job_id: int or long
184 183
  @param job_id: the numeric job id
185
  @rtype: str
184
  @rtype: int
186 185
  @return: the formatted job id
187 186

  
188 187
  """
......
191 190
  if job_id < 0:
192 191
    raise errors.ProgrammerError("Job ID %s is negative" % job_id)
193 192

  
194
  return str(job_id)
193
  return job_id
195 194

  
196 195

  
197 196
def GetArchiveDirectory(job_id):

Also available in: Unified diff