Explorar o código

Remove useless NodeProfile

theenglishway (time) %!s(int64=7) %!d(string=hai) anos
pai
achega
97042bbb8f

+ 2 - 2
twhatter/cli.py

@@ -8,7 +8,7 @@ import IPython
 from twhatter.output import Print, Json, Database, Yaml
 from twhatter.output.sqlalchemy import Tweet, User
 from twhatter.log import log_setup
-from twhatter.exploration import StrategyDumb, NodeTimeline, NodeProfile
+from twhatter.exploration import StrategyDumb, NodeTimeline
 
 
 @click.group()
@@ -58,7 +58,7 @@ def timeline(ctx, limit, user):
 @click.pass_context
 def profile(ctx, user):
     """Get basic info about some user"""
-    start_node = NodeProfile(user)
+    start_node = NodeTimeline(user)
     strategy = StrategyDumb(start_node)
     strategy(ctx.obj['output'])
 

+ 0 - 2
twhatter/exploration/node/__init__.py

@@ -1,7 +1,5 @@
 from .timeline import NodeTimeline
-from .profile import NodeProfile
 
 __all__ = [
     'NodeTimeline',
-    'NodeProfile',
 ]

+ 0 - 13
twhatter/exploration/node/profile.py

@@ -1,13 +0,0 @@
-import logging
-from .base import NodeBase
-from twhatter.client import ClientProfile
-
-
-class NodeProfile(NodeBase):
-    def __init__(self, user):
-        super().__init__()
-        self.client = ClientProfile(user)
-
-    def __iter__(self):
-        super().__iter__()
-        yield self.client.user