Module Expr Str Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Pass Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Num Num NameLoad body Expr Str Assign NameStore Num Assign NameStore BinOpMod Str TupleLoad BinOpMult Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If BoolOpAnd UnaryOpNot NameLoad CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If CompareGt BinOpAdd NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Str TryFinally body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Lambda arguments args NameParam defaults CompareIn Str NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign SubscriptStore NameLoad Index AttributeLoad SubscriptLoad NameLoad Index Num attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str NameLoad Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str keyword Lambda arguments args NameParam defaults CompareIn Str NameLoad attr attr attr Index Num If CompareIn Str NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr TryExcept body AugAssignAdd SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad Print Str Print Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad keyword Str keyword Num Expr Call NameLoad ListComp Call NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad keyword Num keyword NameLoad Print Str Print Str decorator_list FunctionDef arguments args defaults body Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad BinOpMult Str BinOpMult BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
This is a development script, intended for development use only.

This script generates the POST_ACTIONS variable
for placement in the twitter_globals.py

Example Usage:

    %prog >twitter/twitter_globals.py

Dependencies:

    (easy_install) BeautifulSoup
 N/A sys urllib urlopen _open BeautifulSoup BeautifulSoup htmlentitydefs codepoint2name uni2html N/A N/A u N/A N/A N/A 
    Convert unicode to html.

    Basically leaves ascii chars as is, and attempts to encode unicode chars
    as HTML entities. If the conversion fails the character is skipped.
     N/A htmlentities N/A list N/A c u N/A N/A ord_c N/A ord c N/A N/A ord_c 128 N/A N/A N/A ord_c 31 N/A N/A N/A N/A htmlentities append c N/A N/A N/A N/A N/A N/A htmlentities append N/A &%s; N/A codepoint2name N/A ord_c N/A N/A N/A KeyError N/A N/A N/A N/A N/A join htmlentities N/A print_fw N/A N/A iterable joins prefix indent width trail N/A ,  0 79 False N/A N/A 
    PPrint an iterable (of stringable elements).

        Entries are joined using `joins`
        A fixed_width (fw) is maintained of `width` chars per line
        Each line is indented with `indent`*4 spaces
        Lines are then prefixed with `prefix` string
        if `trail` a trailing comma is sent to stdout
        A newline is written after all is printed.
     N/A shift_width 4 N/A preline N/A %s%s N/A N/A shift_width prefix N/A linew N/A len preline N/A N/A N/A N/A sys stdout write preline N/A N/A i entry N/A enumerate iterable N/A N/A N/A N/A trail N/A i N/A N/A len iterable 1 N/A N/A sentry N/A str entry N/A N/A sentry N/A %s%s N/A N/A str entry joins N/A N/A N/A linew N/A len sentry width N/A N/A N/A N/A N/A sys stdout write N/A 
%s preline N/A linew N/A len preline N/A N/A N/A N/A sys stdout write sentry N/A linew N/A len sentry N/A N/A N/A N/A sys stdout write N/A main_with_options N/A N/A options files N/A N/A N/A 
    Main function the prints twitter's _POST_ACTIONS to stdout

    TODO: look at possibly dividing up this function
     N/A apifile N/A _open http://apiwiki.twitter.com/REST+API+Documentation N/A N/A N/A apihtml N/A uni2html N/A N/A apifile read N/A N/A N/A N/A apifile close N/A apidoc N/A BeautifulSoup apihtml N/A toc N/A N/A apidoc find div N/A class toc N/A toc_entries N/A N/A toc findAll li text N/A N/A N/A text N/A N/A Methods text N/A method_links N/A N/A entry toc_entries N/A N/A links N/A N/A N/A N/A entry parent parent findAll a N/A N/A method_links N/A N/A N/A links N/A 0 string N/A N/A x N/A href N/A x N/A links N/A 1 N/A POST_ACTION_HASH N/A N/A N/A method_type methods N/A N/A method_links items N/A N/A method methods N/A N/A method N/A method N/A 1 N/A method_body N/A N/A apidoc find a N/A name method N/A value N/A N/A list N/A N/A N/A N/A N/A N/A method_body findNext b text N/A N/A N/A text N/A N/A Method text parent parent childGenerator N/A -1 N/A N/A POST value N/A N/A method_name N/A N/A N/A method_body findNext h3 string N/A N/A N/A N/A POST_ACTION_HASH N/A method_name N/A method_type N/A N/A N/A KeyError N/A N/A N/A POST_ACTION_HASH N/A method_name N/A method_type N/A POST_ACTION_HASH_R N/A N/A N/A method method_types N/A N/A POST_ACTION_HASH items N/A N/A N/A N/A N/A N/A N/A POST_ACTION_HASH_R N/A method_types append method N/A N/A N/A KeyError N/A N/A N/A POST_ACTION_HASH_R N/A method_types N/A method N/A '''
    This module is automatically generated using `update.py`

    .. data:: POST_ACTIONS
        List of twitter method names that require the use of POST
'''
 N/A POST_ACTIONS = [
 N/A N/A method_types methods N/A N/A POST_ACTION_HASH_R items N/A N/A N/A print_fw method_types prefix #  indent 1 N/A N/A print_fw N/A N/A repr N/A str x N/A x methods indent 1 trail True N/A N/A ] N/A main N/A N/A N/A N/A N/A optparse CustomFormatter N/A N/A optparse IndentedHelpFormatter N/A N/A formatter that overrides description reformatting. format_description N/A N/A self description N/A N/A N/A  indents each line in the description  N/A N/A N/A N/A join N/A N/A %s%s N/A N/A N/A N/A N/A self level 1 N/A self indent_increment line N/A line N/A N/A description splitlines N/A N/A N/A parser N/A N/A optparse OptionParser formatter N/A CustomFormatter description __doc__ N/A N/A options files N/A N/A parser parse_args N/A N/A main_with_options options files N/A N/A N/A __name__ __main__ N/A N/A N/A main