Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
1176abbf
Commit
1176abbf
authored
Jun 06, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unused stuff.
parent
a021c148
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
9 deletions
+4
-9
topydo/cli/TopydoCompleter.py
topydo/cli/TopydoCompleter.py
+1
-1
topydo/cli/UILoader.py
topydo/cli/UILoader.py
+1
-1
topydo/commands/DCommand.py
topydo/commands/DCommand.py
+1
-2
topydo/commands/PostponeCommand.py
topydo/commands/PostponeCommand.py
+0
-1
topydo/commands/PriorityCommand.py
topydo/commands/PriorityCommand.py
+0
-1
topydo/lib/Filter.py
topydo/lib/Filter.py
+1
-2
topydo/lib/TodoList.py
topydo/lib/TodoList.py
+0
-1
No files found.
topydo/cli/TopydoCompleter.py
View file @
1176abbf
...
...
@@ -87,7 +87,7 @@ class TopydoCompleter(Completer):
yield
Completion
(
reldate
,
-
len
(
value
),
display_meta
=
to_absolute
(
reldate
))
def
get_completions
(
self
,
p_document
,
p_complete_event
):
def
get_completions
(
self
,
p_document
,
_
):
# include all characters except whitespaces (for + and @)
word_before_cursor
=
p_document
.
get_word_before_cursor
(
True
)
is_first_word
=
not
re
.
match
(
r'\
s*
\S+\
s
', p_document.current_line_before_cursor)
...
...
topydo/cli/UILoader.py
View file @
1176abbf
...
...
@@ -27,7 +27,7 @@ def main():
args
=
sys
.
argv
[
1
:]
try
:
opts
,
args
=
getopt
.
getopt
(
args
,
MAIN_OPTS
)
_
,
args
=
getopt
.
getopt
(
args
,
MAIN_OPTS
)
except
getopt
.
GetoptError
as
e
:
error
(
str
(
e
))
sys
.
exit
(
1
)
...
...
topydo/commands/DCommand.py
View file @
1176abbf
...
...
@@ -19,7 +19,6 @@ import re
from
topydo.lib.MultiCommand
import
MultiCommand
from
topydo.lib.PrettyPrinter
import
PrettyPrinter
from
topydo.lib.PrettyPrinterFilter
import
PrettyPrinterNumbers
from
topydo.lib.TodoListBase
import
InvalidTodoException
class
DCommand
(
MultiCommand
):
"""
...
...
@@ -110,7 +109,7 @@ class DCommand(MultiCommand):
return
[
todo
for
todo
in
self
.
todolist
.
todos
()[:
self
.
length
]
if
not
self
.
_uncompleted_children
(
todo
)
and
todo
.
is_active
()]
def
condition
(
self
,
p_todo
):
def
condition
(
self
,
_
):
"""
An additional condition whether execute_specific should be executed.
"""
...
...
topydo/commands/PostponeCommand.py
View file @
1176abbf
...
...
@@ -21,7 +21,6 @@ from topydo.lib.Command import InvalidCommandArgument
from
topydo.lib.Config
import
config
from
topydo.lib.PrettyPrinterFilter
import
PrettyPrinterNumbers
from
topydo.lib.RelativeDate
import
relative_date_to_date
from
topydo.lib.TodoListBase
import
InvalidTodoException
from
topydo.lib.Utils
import
date_string_to_date
class
PostponeCommand
(
MultiCommand
):
...
...
topydo/commands/PriorityCommand.py
View file @
1176abbf
...
...
@@ -16,7 +16,6 @@
from
topydo.lib.MultiCommand
import
MultiCommand
from
topydo.lib.PrettyPrinterFilter
import
PrettyPrinterNumbers
from
topydo.lib.TodoListBase
import
InvalidTodoException
from
topydo.lib.Utils
import
is_valid_priority
class
PriorityCommand
(
MultiCommand
):
...
...
topydo/lib/Filter.py
View file @
1176abbf
...
...
@@ -16,7 +16,6 @@
import
re
from
topydo.lib.Config
import
config
from
topydo.lib.RelativeDate
import
relative_date_to_date
from
topydo.lib.Utils
import
date_string_to_date
...
...
@@ -29,7 +28,7 @@ class Filter(object):
return
[
t
for
t
in
p_todos
if
self
.
match
(
t
)]
def
match
(
self
,
p_todo
):
def
match
(
self
,
_
):
""" Default match value. """
return
True
...
...
topydo/lib/TodoList.py
View file @
1176abbf
...
...
@@ -20,7 +20,6 @@ A list of todo items.
from
topydo.lib.Config
import
config
from
topydo.lib.Graph
import
DirectedGraph
from
topydo.lib.PrettyPrinter
import
PrettyPrinter
from
topydo.lib.TodoListBase
import
TodoListBase
class
TodoList
(
TodoListBase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment