prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

error in CategoryFinder.add_label(self, label): #569

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the code is this :
  def add_label(self, label):
    """Add a label, if it is not present.

    Args:
      label: The str label to set
    """
    if not self.has_label(self):
      self.add_category(scheme=LABELS_SCHEME,
                        term='%s#%s' % (LABELS_NS, label),
                        label=label)
  AddLabel = add_label

 if not self.has_label(self):
should be replaced by :
if not self.has_label(label):

Original issue reported on code.google.com by jer...@wemakeprojects.com on 29 Nov 2011 at 5:06

GoogleCodeExporter commented 9 years ago
Thanks for this report, the fix is awaiting review here:

http://codereview.appspot.com/5494065/

Original comment by afs...@google.com on 17 Dec 2011 at 7:46

GoogleCodeExporter commented 9 years ago
Thanks again, fix pushed in r1088

Original comment by afs...@google.com on 17 Dec 2011 at 9:02