Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b9ed4b65
Commit
b9ed4b65
authored
Feb 15, 2015
by
stv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Pylint: E1305(too-many-format-args)
parent
83fec5d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
cms/djangoapps/contentstore/git_export_utils.py
+3
-1
cms/djangoapps/contentstore/management/commands/create_course.py
+6
-1
common/lib/xmodule/xmodule/modulestore/exceptions.py
+5
-2
lms/djangoapps/licenses/tests.py
+4
-1
No files found.
cms/djangoapps/contentstore/git_export_utils.py
View file @
b9ed4b65
...
...
@@ -161,7 +161,9 @@ def export_to_git(course_id, repo, user='', rdir=None):
ident
=
GIT_EXPORT_DEFAULT_IDENT
time_stamp
=
timezone
.
now
()
cwd
=
os
.
path
.
abspath
(
rdirp
)
commit_msg
=
'Export from Studio at {1}'
.
format
(
user
,
time_stamp
)
commit_msg
=
"Export from Studio at {time_stamp}"
.
format
(
time_stamp
=
time_stamp
,
)
try
:
cmd_log
([
'git'
,
'config'
,
'user.email'
,
ident
[
'email'
]],
cwd
)
cmd_log
([
'git'
,
'config'
,
'user.name'
,
ident
[
'name'
]],
cwd
)
...
...
cms/djangoapps/contentstore/management/commands/create_course.py
View file @
b9ed4b65
...
...
@@ -40,7 +40,12 @@ class Command(BaseCommand):
try
:
user
=
user_from_str
(
args
[
1
])
except
User
.
DoesNotExist
:
raise
CommandError
(
"No user {} found: expected args are "
.
format
(
args
[
1
],
self
.
args
))
raise
CommandError
(
"No user {user} found: expected args are {args}"
.
format
(
user
=
args
[
1
],
args
=
self
.
args
,
),
)
org
=
args
[
2
]
course
=
args
[
3
]
...
...
common/lib/xmodule/xmodule/modulestore/exceptions.py
View file @
b9ed4b65
...
...
@@ -50,8 +50,11 @@ class DuplicateItemError(Exception):
"""
Print info about what's duplicated
"""
return
'{0.store}[{0.collection}] already has {0.element_id}'
.
format
(
self
,
Exception
.
__str__
(
self
,
*
args
,
**
kwargs
)
return
"{store}[{collection}] already has {element_id} ({exception})"
.
format
(
store
=
self
.
store
,
collection
=
self
.
collection
,
element_id
=
self
.
element_id
,
exception
=
Exception
.
__str__
(
self
,
*
args
,
**
kwargs
),
)
...
...
lms/djangoapps/licenses/tests.py
View file @
b9ed4b65
...
...
@@ -184,7 +184,10 @@ class CommandTest(ModuleStoreTestCase):
software_count
=
CourseSoftware
.
objects
.
all
()
.
count
()
self
.
assertEqual
(
2
,
software_count
)
log
.
debug
(
'Now we should have 3 sets of 20 serials'
.
format
(
size
))
log
.
debug
(
"Now we should have 3 sets of
%
s serials"
,
size
,
)
licenses_count
=
UserLicense
.
objects
.
all
()
.
count
()
self
.
assertEqual
(
3
*
size
,
licenses_count
)
...
...
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