| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b548092 commit 662c56e
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,8 @@ | |||
| 1 | 1 | from __future__ import unicode_literals | |
| 2 | + | ||
| 2 | 3 | from . import _filters, _ffmpeg, _run | |
| 3 | 4 | from ._filters import * | |
| 4 | 5 | from ._ffmpeg import * | |
| 5 | 6 | from ._run import * | |
| 7 | + | ||
| 6 | 8 | __all__ = _filters.__all__ + _ffmpeg.__all__ + _run.__all__ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | from __future__ import unicode_literals | |
| 2 | + | ||
| 2 | 3 | from .nodes import ( | |
| 3 | 4 | filter_operator, | |
| 4 | 5 | GlobalNode, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | from __future__ import unicode_literals | |
| 2 | + | ||
| 2 | 3 | from .nodes import ( | |
| 3 | 4 | FilterNode, | |
| 4 | 5 | filter_operator, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,8 @@ | |||
| 1 | - import hashlib | ||
| 1 | + from __future__ import unicode_literals | ||
| 2 | + | ||
| 3 | + from builtins import str | ||
| 4 | + from past.builtins import basestring | ||
| 5 | + import hashlib | ||
| 2 | 6 | ||
| 3 | 7 | ||
| 4 | 8 | def _recursive_repr(item): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + from __future__ import unicode_literals | ||
| 2 | + | ||
| 1 | 3 | from ._utils import get_hash, get_hash_int | |
| 2 | 4 | from builtins import object | |
| 3 | 5 | from collections import namedtuple | |
@@ -72,14 +74,14 @@ def incoming_edge_map(self): | |||
| 72 | 74 | ||
| 73 | 75 | def get_incoming_edges(downstream_node, incoming_edge_map): | |
| 74 | 76 | edges = [] | |
| 75 | - for downstream_label, (upstream_node, upstream_label) in incoming_edge_map.items(): | ||
| 77 | + for downstream_label, (upstream_node, upstream_label) in list(incoming_edge_map.items()): | ||
| 76 | 78 | edges += [DagEdge(downstream_node, downstream_label, upstream_node, upstream_label)] | |
| 77 | 79 | return edges | |
| 78 | 80 | ||
| 79 | 81 | ||
| 80 | 82 | def get_outgoing_edges(upstream_node, outgoing_edge_map): | |
| 81 | 83 | edges = [] | |
| 82 | - for upstream_label, downstream_infos in outgoing_edge_map.items(): | ||
| 84 | + for upstream_label, downstream_infos in list(outgoing_edge_map.items()): | ||
| 83 | 85 | for (downstream_node, downstream_label) in downstream_infos: | |
| 84 | 86 | edges += [DagEdge(downstream_node, downstream_label, upstream_node, upstream_label)] | |
| 85 | 87 | return edges | |
@@ -91,7 +93,7 @@ class KwargReprNode(DagNode): | |||
| 91 | 93 | @property | |
| 92 | 94 | def __upstream_hashes(self): | |
| 93 | 95 | hashes = [] | |
| 94 | - for downstream_label, (upstream_node, upstream_label) in self.incoming_edge_map.items(): | ||
| 96 | + for downstream_label, (upstream_node, upstream_label) in list(self.incoming_edge_map.items()): | ||
| 95 | 97 | hashes += [hash(x) for x in [downstream_label, upstream_node, upstream_label]] | |
| 96 | 98 | return hashes | |
| 97 | 99 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | from __future__ import unicode_literals | |
| 2 | 2 | ||
| 3 | + from builtins import object | ||
| 3 | 4 | from .dag import KwargReprNode | |
| 4 | 5 | from ._utils import get_hash_int | |
| 5 | 6 | ||
@@ -49,7 +50,7 @@ def __check_input_len(cls, stream_map, min_inputs, max_inputs): | |||
| 49 | 50 | ||
| 50 | 51 | @classmethod | |
| 51 | 52 | def __check_input_types(cls, stream_map, incoming_stream_types): | |
| 52 | - for stream in stream_map.values(): | ||
| 53 | + for stream in list(stream_map.values()): | ||
| 53 | 54 | if not _is_of_types(stream, incoming_stream_types): | |
| 54 | 55 | raise TypeError('Expected incoming stream(s) to be of one of the following types: {}; got {}' | |
| 55 | 56 | .format(_get_types_str(incoming_stream_types), type(stream))) | |
@@ -69,7 +70,7 @@ def __get_stream_map(cls, stream_spec): | |||
| 69 | 70 | @classmethod | |
| 70 | 71 | def __get_incoming_edge_map(cls, stream_map): | |
| 71 | 72 | incoming_edge_map = {} | |
| 72 | - for downstream_label, upstream in stream_map.items(): | ||
| 73 | + for downstream_label, upstream in list(stream_map.items()): | ||
| 73 | 74 | incoming_edge_map[downstream_label] = (upstream.node, upstream.label) | |
| 74 | 75 | return incoming_edge_map | |
| 75 | 76 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments