Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore DictComp SubscriptLoad Call NameLoad Index NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Num While NameLoad body If BinOpBitAnd NameLoad NameLoad body AugAssignBitAnd NameStore UnaryOpInvert NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad AugAssignLShift NameStore Num Return BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareIsNot NameLoad NameLoad Str Assign AttributeStore NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareLt AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Raise NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareLt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad Num body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Raise NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body If CompareLt AttributeLoad NameLoad attr Num body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad While NameLoad body With AttributeLoad NameLoad attr body If CompareLt AttributeLoad NameLoad attr Num body Return Call NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr IfExp NameLoad NameLoad NameLoad body Break AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num While CompareGt Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad If CompareLt Call NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad body Break Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd NameLoad NameLoad If BinOpBitAnd NameLoad NameLoad body Continue TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body If BinOpBitAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BinOpBitAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BinOpBitAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If BinOpBitAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareNotIn NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A Monitors a directory tree for changes using the inotify API.

See http://linux.die.net/man/7/inotify.
 N/A ctypes N/A ctypes.util N/A errno N/A itertools N/A logging N/A os N/A select N/A struct N/A sys N/A threading google.appengine.tools.devappserver2 watcher_common N/A IN_MODIFY 2 N/A IN_ATTRIB 4 N/A IN_MOVED_FROM 64 N/A IN_MOVED_TO 128 N/A IN_CREATE 256 N/A IN_DELETE 512 N/A IN_IGNORED 32768 N/A IN_ISDIR 1073741824 N/A _INOTIFY_EVENT N/A N/A struct Struct iIII N/A _INOTIFY_EVENT_SIZE N/A _INOTIFY_EVENT size N/A _INTERESTING_INOTIFY_EVENTS N/A N/A N/A N/A N/A IN_ATTRIB IN_MODIFY IN_MOVED_FROM IN_MOVED_TO IN_CREATE IN_DELETE N/A N/A N/A N/A sys platform startswith linux N/A N/A _libc N/A N/A ctypes CDLL N/A N/A N/A ctypes util find_library c use_errno True N/A N/A N/A _libc inotify_init argtypes N/A N/A N/A N/A _libc inotify_init restype N/A ctypes c_int N/A N/A N/A _libc inotify_add_watch argtypes N/A N/A ctypes c_int N/A ctypes c_char_p N/A ctypes c_uint32 N/A N/A N/A _libc inotify_add_watch restype N/A ctypes c_int N/A N/A N/A _libc inotify_rm_watch argtypes N/A N/A ctypes c_int N/A ctypes c_int N/A N/A N/A _libc inotify_rm_watch restype N/A ctypes c_int N/A N/A _libc None N/A _ATTRIBUTE_NAMES N/A IN_MODIFY IN_ATTRIB IN_MOVED_FROM IN_MOVED_TO IN_CREATE IN_DELETE IN_IGNORED IN_ISDIR N/A _ATTRIBUTE_MASK_NAMES N/A N/A N/A globals N/A name name N/A name _ATTRIBUTE_NAMES N/A _AGGREGATE_CHANGES_MS_APART 100 _bit_str N/A N/A bits mask_names N/A N/A N/A Convert a bit field to list of names.

  Args:
    bits: an int that holds a combined bit field.
    mask_names: a mapping from individual bit masks to names.

  Returns:
    A human readable presentation of the combined bit field.
   N/A hex_str N/A hex bits N/A names N/A N/A mask 1 N/A bits N/A N/A N/A bits mask N/A N/A bits N/A mask N/A N/A N/A names append N/A N/A mask_names get mask N/A (0x%x) mask N/A mask 1 N/A N/A %s (%s) N/A N/A N/A | join names hex_str N/A InotifyFileWatcher N/A object N/A N/A Monitors a directory tree for changes using inotify. N/A SUPPORTS_MULTIPLE_DIRECTORIES True __init__ N/A N/A self directories N/A N/A N/A Initializer for InotifyFileWatcher.

    Args:
      directories: An iterable of strings representing the path to a directory
          that should be monitored for changes i.e. files and directories added,
          renamed, deleted or changed.

    Raises:
      OSError: if there are no inotify instances available.
     N/A N/A _libc None InotifyFileWatcher only available on Linux. N/A N/A self _directories N/A N/A N/A N/A os path abspath d N/A d directories N/A N/A self _real_directories N/A N/A N/A N/A os path realpath d N/A d N/A self _directories N/A N/A self _watch_to_directory N/A N/A N/A self _directory_to_watch_descriptor N/A N/A N/A self _directory_to_subdirs N/A N/A N/A self _inotify_events N/A N/A self _inotify_fd N/A N/A _libc inotify_init N/A N/A N/A self _inotify_fd 0 N/A N/A error N/A OSError failed call to inotify_init N/A N/A error errno N/A N/A ctypes get_errno N/A N/A error strerror N/A N/A errno errorcode N/A N/A N/A ctypes get_errno N/A error N/A N/A self _inotify_poll N/A N/A select poll N/A N/A self _inotify_fd_lock N/A N/A threading Lock N/A _remove_watch_for_path N/A N/A self path N/A N/A N/A N/A N/A logging debug _remove_watch_for_path(%r) path N/A wd N/A N/A self _directory_to_watch_descriptor N/A path N/A N/A N/A N/A _libc inotify_rm_watch N/A self _inotify_fd wd 0 N/A N/A N/A N/A logging debug inotify_rm_watch failed for %r: %d [%r] path N/A N/A ctypes get_errno N/A N/A errno errorcode N/A N/A N/A ctypes get_errno N/A parent_path N/A N/A N/A os path dirname path N/A N/A parent_path N/A self _directory_to_subdirs N/A N/A N/A N/A N/A N/A self _directory_to_subdirs N/A parent_path remove path N/A subdir N/A frozenset N/A N/A self _directory_to_subdirs N/A path N/A N/A N/A N/A self _remove_watch_for_path subdir N/A N/A N/A self _watch_to_directory N/A wd N/A N/A N/A self _directory_to_watch_descriptor N/A path N/A N/A N/A self _directory_to_subdirs N/A path N/A _add_watch_for_path N/A N/A self path N/A N/A N/A N/A N/A logging debug _add_watch_for_path(%r) path N/A N/A dirpath directories _ N/A N/A itertools chain N/A N/A N/A N/A N/A os path dirname path N/A N/A N/A N/A os path basename path None N/A N/A os walk path topdown True followlinks True N/A N/A N/A N/A watcher_common skip_ignored_dirs directories N/A N/A N/A watcher_common skip_local_symlinks N/A self _real_directories dirpath directories N/A directory directories N/A N/A directory_path N/A N/A N/A os path join dirpath directory N/A parent_path N/A N/A N/A os path dirname directory_path N/A watch_descriptor N/A N/A _libc inotify_add_watch N/A self _inotify_fd N/A N/A ctypes create_string_buffer directory_path _INTERESTING_INOTIFY_EVENTS N/A N/A watch_descriptor 0 N/A N/A N/A N/A N/A ctypes get_errno N/A errno ENOSPC N/A N/A N/A N/A logging warning There are too many directories in your application for changes in all of them to be monitored. You may have to restart the development server to see some changes to your files. N/A N/A error N/A OSError N/A could not add watch for %r directory_path N/A N/A error errno N/A N/A ctypes get_errno N/A N/A error strerror N/A N/A errno errorcode N/A N/A N/A ctypes get_errno N/A N/A error filename directory_path N/A error N/A N/A parent_path N/A self _directory_to_subdirs N/A N/A N/A N/A N/A N/A self _directory_to_subdirs N/A parent_path add directory_path N/A N/A N/A self _watch_to_directory N/A watch_descriptor directory_path N/A N/A N/A self _directory_to_watch_descriptor N/A directory_path watch_descriptor N/A N/A N/A self _directory_to_subdirs N/A directory_path N/A set N/A start N/A N/A self N/A N/A N/A Start watching the directory for changes. N/A N/A self _inotify_fd_lock N/A N/A N/A N/A self _inotify_fd 0 N/A N/A N/A N/A N/A N/A self _inotify_poll register N/A self _inotify_fd N/A select POLLIN N/A directory N/A self _directories N/A N/A N/A N/A self _add_watch_for_path directory N/A quit N/A N/A self N/A N/A N/A Stop watching the directory for changes. N/A N/A self _inotify_fd_lock N/A N/A N/A N/A os close N/A self _inotify_fd N/A N/A self _inotify_fd -1 N/A changes N/A N/A self timeout_ms N/A 0 N/A N/A Return paths for changed files and directories.

    start() must be called before this method.

    Args:
      timeout_ms: a timeout in milliseconds on which this watcher will block
                  waiting for a change. It allows for external polling threads
                  to react immediately on a change instead of waiting for
                  a random polling delay.

    Returns:
      A set of strings representing file and directory paths that have changed
      since the last call to get_changed_paths.
     N/A paths N/A set N/A True N/A N/A N/A self _inotify_fd_lock N/A N/A N/A N/A self _inotify_fd 0 N/A N/A N/A set N/A N/A N/A N/A N/A self _inotify_poll poll N/A paths _AGGREGATE_CHANGES_MS_APART timeout_ms N/A N/A N/A N/A self _inotify_events N/A N/A os read N/A self _inotify_fd 1024 N/A N/A N/A len N/A self _inotify_events _INOTIFY_EVENT_SIZE N/A N/A N/A wd mask cookie length N/A N/A _INOTIFY_EVENT unpack N/A N/A self _inotify_events N/A _INOTIFY_EVENT_SIZE N/A N/A N/A len N/A self _inotify_events N/A _INOTIFY_EVENT_SIZE length N/A N/A N/A name N/A N/A self _inotify_events N/A _INOTIFY_EVENT_SIZE N/A _INOTIFY_EVENT_SIZE length N/A name N/A N/A name rstrip N/A N/A N/A logging debug wd=%s, mask=%s, cookie=%s, length=%s, name=%r wd N/A _bit_str mask _ATTRIBUTE_MASK_NAMES cookie length name N/A N/A self _inotify_events N/A N/A self _inotify_events N/A N/A _INOTIFY_EVENT_SIZE length N/A N/A mask IN_IGNORED N/A N/A N/A N/A N/A directory N/A N/A self _watch_to_directory N/A wd N/A N/A N/A KeyError N/A N/A N/A N/A logging debug Watch deleted for watch descriptor=%d wd N/A N/A path N/A N/A N/A os path join directory name N/A N/A N/A N/A N/A os path isdir path N/A path N/A self _directory_to_watch_descriptor N/A N/A N/A mask IN_DELETE N/A N/A N/A N/A self _remove_watch_for_path path N/A N/A N/A mask IN_MOVED_FROM N/A N/A N/A N/A self _remove_watch_for_path path N/A N/A N/A mask IN_CREATE N/A N/A N/A N/A self _add_watch_for_path path N/A N/A N/A mask IN_MOVED_TO N/A N/A N/A N/A self _add_watch_for_path path N/A N/A N/A path paths N/A N/A N/A watcher_common ignore_file path N/A N/A N/A N/A paths add path N/A paths N/A N/A