Module Expr Str Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr Str body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIsNot NameLoad NameLoad body If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num Num NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num NameLoad Return NameLoad Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse TryExcept body Return Call AttributeLoad NameLoad attr NameLoad keyword Str handlers ExceptHandler type NameLoad body Return Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Str decorator_list
N/A N/A Collection of helper functions. N/A urlparse google.appengine.ext db codereview.exceptions FetchError make_url N/A N/A base filename rev N/A N/A N/A Helper to construct the URL to fetch.

  Args:
    base: The base property of the Issue to which the Patch belongs.
    filename: The filename property of the Patch instance.
    rev: Revision number, or None for head revision.

  Returns:
    A URL referring to the given revision of the file.
   N/A N/A scheme netloc path _ _ _ N/A N/A urlparse urlparse base N/A N/A N/A netloc endswith .googlecode.com N/A N/A N/A rev None N/A N/A N/A FetchError Can't access googlecode.com without a revision N/A N/A N/A N/A path startswith /svn/ N/A N/A N/A FetchError N/A Malformed googlecode.com URL (%s) base N/A path N/A path N/A 5 N/A url N/A %s://%s/svn-history/r%d/%s/%s N/A scheme netloc rev path filename N/A url N/A N/A N/A N/A N/A netloc endswith sourceforge.net N/A rev None N/A N/A N/A N/A N/A N/A path strip endswith / N/A N/A path N/A N/A N/A path strip N/A -1 N/A N/A path N/A N/A path strip N/A splitted_path N/A N/A path split / N/A url N/A %s://%s/%s/!svn/bc/%d/%s/%s N/A scheme netloc N/A N/A / join N/A splitted_path N/A 1 3 rev N/A N/A / join N/A splitted_path N/A 3 filename N/A url N/A url base N/A N/A N/A N/A url endswith / N/A N/A url / N/A url filename N/A N/A rev None N/A N/A url N/A ?rev=%s rev N/A url N/A to_dbtext N/A N/A text N/A N/A N/A Helper to turn a string into a db.Text instance.

  Args:
    text: a string.

  Returns:
    A db.Text instance.
   N/A N/A isinstance text unicode N/A N/A N/A N/A db Text text N/A N/A N/A N/A N/A N/A db Text text encoding utf-8 N/A N/A N/A UnicodeDecodeError N/A N/A N/A N/A db Text text encoding latin-1 N/A unify_linebreaks N/A N/A text N/A N/A N/A Helper to return a string with all line breaks converted to LF.

  Args:
    text: a string.

  Returns:
    A string with all line breaks converted to LF.
   N/A N/A N/A N/A N/A text replace replace N/A