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
8a243132
Commit
8a243132
authored
May 15, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use the str.lower() method, in Python 3 it's not a string.
parent
ada6ae5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
topydo/lib/ListContextCommand.py
topydo/lib/ListContextCommand.py
+1
-1
topydo/lib/ListProjectCommand.py
topydo/lib/ListProjectCommand.py
+1
-1
No files found.
topydo/lib/ListContextCommand.py
View file @
8a243132
...
...
@@ -28,7 +28,7 @@ class ListContextCommand(Command):
if
not
super
(
ListContextCommand
,
self
).
execute
():
return
False
for
context
in
sorted
(
self
.
todolist
.
contexts
(),
key
=
str
.
lower
):
for
context
in
sorted
(
self
.
todolist
.
contexts
(),
key
=
lambda
s
:
s
.
lower
()
):
self
.
out
(
context
)
def
usage
(
self
):
...
...
topydo/lib/ListProjectCommand.py
View file @
8a243132
...
...
@@ -28,7 +28,7 @@ class ListProjectCommand(Command):
if
not
super
(
ListProjectCommand
,
self
).
execute
():
return
False
for
project
in
sorted
(
self
.
todolist
.
projects
(),
key
=
str
.
lower
):
for
project
in
sorted
(
self
.
todolist
.
projects
(),
key
=
lambda
s
:
s
.
lower
()
):
self
.
out
(
project
)
def
usage
(
self
):
...
...
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