Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit d907d69

Browse files
committed
df: base: Remove non-working doctests
Signed-off-by: John Andersen <[email protected]>
1 parent 0978322 commit d907d69

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

dffml/df/base.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ def isopimp(item):
298298
"""
299299
Similar to inspect.isclass and that family of functions. Returns true if
300300
item is a subclass of OperationImpelmentation.
301-
302-
>>> # Get all operation implementations imported in a file
303-
>>> list(map(lambda item: item[1],
304-
>>> inspect.getmembers(sys.modules[__name__],
305-
>>> predicate=isopimp)))
306301
"""
307302
return bool(
308303
(
@@ -322,11 +317,6 @@ def isoperation(item):
322317
"""
323318
Similar to inspect.isclass and that family of functions. Returns true if
324319
item is an instance of Operation.
325-
326-
>>> # Get all operations imported in a file
327-
>>> list(map(lambda item: item[1],
328-
>>> inspect.getmembers(sys.modules[__name__],
329-
>>> predicate=isoperation)))
330320
"""
331321
return bool(isinstance(item, Operation) and item is not Operation)
332322

@@ -335,11 +325,6 @@ def isopwraped(item):
335325
"""
336326
Similar to inspect.isclass and that family of functions. Returns true if a
337327
function has been wrapped with `op`.
338-
339-
>>> # Get all functions imported in a file that have been wrapped with `op`
340-
>>> list(map(lambda item: item[1],
341-
>>> inspect.getmembers(sys.modules[__name__],
342-
>>> predicate=isopwraped)))
343328
"""
344329
return bool(
345330
getattr(item, "op", False)

0 commit comments

Comments
 (0)