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
741f0686
Commit
741f0686
authored
Aug 28, 2015
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9502 from edx/ned/import-path-differently
Change imports from path to use the stablest name.
parents
1f64506c
ff67dff6
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
56 additions
and
57 deletions
+56
-57
cms/djangoapps/contentstore/management/commands/export_convert_format.py
+1
-1
cms/djangoapps/contentstore/management/commands/tests/test_export_convert_format.py
+1
-1
cms/djangoapps/contentstore/management/commands/tests/test_import.py
+1
-1
cms/djangoapps/contentstore/tests/test_contentstore.py
+1
-1
cms/djangoapps/contentstore/views/import_export.py
+1
-1
cms/djangoapps/contentstore/views/tests/test_import_export.py
+1
-1
cms/envs/aws.py
+1
-1
cms/envs/bok_choy.py
+1
-1
cms/envs/common.py
+1
-1
cms/envs/test.py
+1
-1
cms/envs/yaml_config.py
+1
-1
common/lib/capa/capa/checker.py
+1
-1
common/lib/xmodule/xmodule/assetstore/tests/test_asset_xml.py
+1
-1
common/lib/xmodule/xmodule/course_module.py
+1
-1
common/lib/xmodule/xmodule/html_module.py
+1
-1
common/lib/xmodule/xmodule/modulestore/mongo/base.py
+1
-1
common/lib/xmodule/xmodule/modulestore/perf_tests/test_asset_import_export.py
+1
-1
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/test_contentstore.py
+4
-4
common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
+1
-1
common/lib/xmodule/xmodule/modulestore/xml.py
+1
-1
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
+1
-1
common/lib/xmodule/xmodule/modulestore/xml_importer.py
+1
-1
common/lib/xmodule/xmodule/static_content.py
+1
-1
common/lib/xmodule/xmodule/tests/__init__.py
+1
-1
common/lib/xmodule/xmodule/tests/helpers.py
+1
-1
common/lib/xmodule/xmodule/tests/test_content.py
+1
-1
common/lib/xmodule/xmodule/tests/test_export.py
+1
-1
common/test/acceptance/fixtures/course.py
+1
-1
common/test/acceptance/pages/studio/textbooks.py
+1
-1
common/test/acceptance/tests/helpers.py
+1
-1
docs/en_us/enrollment_api/source/conf.py
+1
-1
docs/en_us/platform_api/source/conf.py
+1
-1
lms/djangoapps/certificates/tests/test_models.py
+1
-2
lms/djangoapps/courseware/courses.py
+1
-1
lms/djangoapps/courseware/management/commands/clean_xml.py
+1
-1
lms/djangoapps/courseware/management/commands/export_course.py
+1
-1
lms/djangoapps/courseware/management/commands/tests/test_dump_course.py
+1
-1
lms/djangoapps/dashboard/sysadmin.py
+1
-1
lms/djangoapps/debug/management/commands/dump_xml_courses.py
+1
-1
lms/djangoapps/lms_migration/management/commands/create_groups.py
+1
-1
lms/envs/aws.py
+1
-1
lms/envs/bok_choy.py
+1
-1
lms/envs/common.py
+1
-1
lms/envs/test.py
+1
-1
lms/envs/yaml_config.py
+1
-1
pavelib/i18n.py
+1
-1
pavelib/paver_tests/test_paver_quality.py
+1
-1
pavelib/utils/envs.py
+1
-1
scripts/all-tests.sh
+1
-1
scripts/release.py
+1
-1
No files found.
cms/djangoapps/contentstore/management/commands/export_convert_format.py
View file @
741f0686
...
@@ -5,7 +5,7 @@ to the archive format used by a different version of export.
...
@@ -5,7 +5,7 @@ to the archive format used by a different version of export.
Sample invocation: ./manage.py export_convert_format mycourse.tar.gz ~/newformat/
Sample invocation: ./manage.py export_convert_format mycourse.tar.gz ~/newformat/
"""
"""
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.conf
import
settings
from
django.conf
import
settings
...
...
cms/djangoapps/contentstore/management/commands/tests/test_export_convert_format.py
View file @
741f0686
...
@@ -6,7 +6,7 @@ from django.core.management import call_command, CommandError
...
@@ -6,7 +6,7 @@ from django.core.management import call_command, CommandError
from
django.conf
import
settings
from
django.conf
import
settings
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
import
shutil
import
shutil
from
path
import
path
from
path
import
Path
as
path
from
contentstore.management.commands.export_convert_format
import
Command
,
extract_source
from
contentstore.management.commands.export_convert_format
import
Command
,
extract_source
from
xmodule.tests.helpers
import
directories_equal
from
xmodule.tests.helpers
import
directories_equal
...
...
cms/djangoapps/contentstore/management/commands/tests/test_import.py
View file @
741f0686
...
@@ -3,7 +3,7 @@ Unittests for importing a course via management command
...
@@ -3,7 +3,7 @@ Unittests for importing a course via management command
"""
"""
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
import
shutil
import
shutil
import
tempfile
import
tempfile
...
...
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
741f0686
...
@@ -11,7 +11,7 @@ import ddt
...
@@ -11,7 +11,7 @@ import ddt
from
datetime
import
timedelta
from
datetime
import
timedelta
from
fs.osfs
import
OSFS
from
fs.osfs
import
OSFS
from
json
import
loads
from
json
import
loads
from
path
import
path
from
path
import
Path
as
path
from
textwrap
import
dedent
from
textwrap
import
dedent
from
uuid
import
uuid4
from
uuid
import
uuid4
from
functools
import
wraps
from
functools
import
wraps
...
...
cms/djangoapps/contentstore/views/import_export.py
View file @
741f0686
...
@@ -8,7 +8,7 @@ import os
...
@@ -8,7 +8,7 @@ import os
import
re
import
re
import
shutil
import
shutil
import
tarfile
import
tarfile
from
path
import
path
from
path
import
Path
as
path
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
from
django.conf
import
settings
from
django.conf
import
settings
...
...
cms/djangoapps/contentstore/views/tests/test_import_export.py
View file @
741f0686
...
@@ -9,7 +9,7 @@ import os
...
@@ -9,7 +9,7 @@ import os
import
shutil
import
shutil
import
tarfile
import
tarfile
import
tempfile
import
tempfile
from
path
import
path
from
path
import
Path
as
path
from
uuid
import
uuid4
from
uuid
import
uuid4
from
django.test.utils
import
override_settings
from
django.test.utils
import
override_settings
...
...
cms/envs/aws.py
View file @
741f0686
...
@@ -18,7 +18,7 @@ from .common import *
...
@@ -18,7 +18,7 @@ from .common import *
from
openedx.core.lib.logsettings
import
get_logger_config
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
...
...
cms/envs/bok_choy.py
View file @
741f0686
...
@@ -11,7 +11,7 @@ from the same directory.
...
@@ -11,7 +11,7 @@ from the same directory.
"""
"""
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
# Pylint gets confused by path.py instances, which report themselves as class
# Pylint gets confused by path.py instances, which report themselves as class
# objects. As a result, pylint applies the wrong regex in validating names,
# objects. As a result, pylint applies the wrong regex in validating names,
...
...
cms/envs/common.py
View file @
741f0686
...
@@ -46,7 +46,7 @@ from lms.envs.common import (
...
@@ -46,7 +46,7 @@ from lms.envs.common import (
# display credit eligibility table on the CMS or not.
# display credit eligibility table on the CMS or not.
ENABLE_CREDIT_ELIGIBILITY
,
YOUTUBE_API_KEY
ENABLE_CREDIT_ELIGIBILITY
,
YOUTUBE_API_KEY
)
)
from
path
import
path
from
path
import
Path
as
path
from
warnings
import
simplefilter
from
warnings
import
simplefilter
from
lms.djangoapps.lms_xblock.mixin
import
LmsBlockMixin
from
lms.djangoapps.lms_xblock.mixin
import
LmsBlockMixin
...
...
cms/envs/test.py
View file @
741f0686
...
@@ -20,7 +20,7 @@ sessions. Assumes structure:
...
@@ -20,7 +20,7 @@ sessions. Assumes structure:
from
.common
import
*
from
.common
import
*
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
warnings
import
filterwarnings
,
simplefilter
from
warnings
import
filterwarnings
,
simplefilter
from
uuid
import
uuid4
from
uuid
import
uuid4
...
...
cms/envs/yaml_config.py
View file @
741f0686
...
@@ -21,7 +21,7 @@ from openedx.core.lib.logsettings import get_logger_config
...
@@ -21,7 +21,7 @@ from openedx.core.lib.logsettings import get_logger_config
from
util.config_parse
import
convert_tokens
from
util.config_parse
import
convert_tokens
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# https://stackoverflow.com/questions/2890146/how-to-force-pyyaml-to-load-strings-as-unicode-objects
# https://stackoverflow.com/questions/2890146/how-to-force-pyyaml-to-load-strings-as-unicode-objects
...
...
common/lib/capa/capa/checker.py
View file @
741f0686
...
@@ -7,7 +7,7 @@ from __future__ import unicode_literals
...
@@ -7,7 +7,7 @@ from __future__ import unicode_literals
import
argparse
import
argparse
import
logging
import
logging
import
sys
import
sys
from
path
import
path
from
path
import
Path
as
path
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
...
...
common/lib/xmodule/xmodule/assetstore/tests/test_asset_xml.py
View file @
741f0686
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Test for asset XML generation / parsing.
Test for asset XML generation / parsing.
"""
"""
from
path
import
path
from
path
import
Path
as
path
from
lxml
import
etree
from
lxml
import
etree
from
contracts
import
ContractNotRespected
from
contracts
import
ContractNotRespected
import
unittest
import
unittest
...
...
common/lib/xmodule/xmodule/course_module.py
View file @
741f0686
...
@@ -5,7 +5,7 @@ import logging
...
@@ -5,7 +5,7 @@ import logging
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
math
import
exp
from
math
import
exp
from
lxml
import
etree
from
lxml
import
etree
from
path
import
path
# NOTE (THK): Only used for detecting presence of syllabus
from
path
import
Path
as
path
import
requests
import
requests
from
datetime
import
datetime
from
datetime
import
datetime
import
dateutil.parser
import
dateutil.parser
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
741f0686
...
@@ -5,7 +5,7 @@ import copy
...
@@ -5,7 +5,7 @@ import copy
import
logging
import
logging
import
textwrap
import
textwrap
from
lxml
import
etree
from
lxml
import
etree
from
path
import
path
from
path
import
Path
as
path
from
fs.errors
import
ResourceNotFoundError
from
fs.errors
import
ResourceNotFoundError
from
pkg_resources
import
resource_string
from
pkg_resources
import
resource_string
...
...
common/lib/xmodule/xmodule/modulestore/mongo/base.py
View file @
741f0686
...
@@ -23,7 +23,7 @@ from bson.son import SON
...
@@ -23,7 +23,7 @@ from bson.son import SON
from
datetime
import
datetime
from
datetime
import
datetime
from
fs.osfs
import
OSFS
from
fs.osfs
import
OSFS
from
mongodb_proxy
import
MongoProxy
,
autoretry_read
from
mongodb_proxy
import
MongoProxy
,
autoretry_read
from
path
import
path
from
path
import
Path
as
path
from
pytz
import
UTC
from
pytz
import
UTC
from
contracts
import
contract
,
new_contract
from
contracts
import
contract
,
new_contract
...
...
common/lib/xmodule/xmodule/modulestore/perf_tests/test_asset_import_export.py
View file @
741f0686
"""
"""
Performance test for asset metadata in the modulestore.
Performance test for asset metadata in the modulestore.
"""
"""
from
path
import
path
from
path
import
Path
as
path
import
unittest
import
unittest
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
import
itertools
import
itertools
...
...
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
741f0686
...
@@ -60,7 +60,7 @@ import logging
...
@@ -60,7 +60,7 @@ import logging
from
contracts
import
contract
,
new_contract
from
contracts
import
contract
,
new_contract
from
importlib
import
import_module
from
importlib
import
import_module
from
mongodb_proxy
import
autoretry_read
from
mongodb_proxy
import
autoretry_read
from
path
import
path
from
path
import
Path
as
path
from
pytz
import
UTC
from
pytz
import
UTC
from
bson.objectid
import
ObjectId
from
bson.objectid
import
ObjectId
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_contentstore.py
View file @
741f0686
...
@@ -130,18 +130,18 @@ class TestContentstore(unittest.TestCase):
...
@@ -130,18 +130,18 @@ class TestContentstore(unittest.TestCase):
Test export
Test export
"""
"""
self
.
set_up_assets
(
deprecated
)
self
.
set_up_assets
(
deprecated
)
root_dir
=
path
.
p
ath
(
mkdtemp
())
root_dir
=
path
.
P
ath
(
mkdtemp
())
try
:
try
:
self
.
contentstore
.
export_all_for_course
(
self
.
contentstore
.
export_all_for_course
(
self
.
course1_key
,
root_dir
,
self
.
course1_key
,
root_dir
,
path
.
p
ath
(
root_dir
/
"policy.json"
),
path
.
P
ath
(
root_dir
/
"policy.json"
),
)
)
for
filename
in
self
.
course1_files
:
for
filename
in
self
.
course1_files
:
filepath
=
path
.
p
ath
(
root_dir
/
filename
)
filepath
=
path
.
P
ath
(
root_dir
/
filename
)
self
.
assertTrue
(
filepath
.
isfile
(),
"{} is not a file"
.
format
(
filepath
))
self
.
assertTrue
(
filepath
.
isfile
(),
"{} is not a file"
.
format
(
filepath
))
for
filename
in
self
.
course2_files
:
for
filename
in
self
.
course2_files
:
if
filename
not
in
self
.
course1_files
:
if
filename
not
in
self
.
course1_files
:
filepath
=
path
.
p
ath
(
root_dir
/
filename
)
filepath
=
path
.
P
ath
(
root_dir
/
filename
)
self
.
assertFalse
(
filepath
.
isfile
(),
"{} is unexpected exported a file"
.
format
(
filepath
))
self
.
assertFalse
(
filepath
.
isfile
(),
"{} is unexpected exported a file"
.
format
(
filepath
))
finally
:
finally
:
shutil
.
rmtree
(
root_dir
)
shutil
.
rmtree
(
root_dir
)
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_cross_modulestore_import_export.py
View file @
741f0686
...
@@ -14,7 +14,7 @@ and then for each combination of modulestores, performing the sequence:
...
@@ -14,7 +14,7 @@ and then for each combination of modulestores, performing the sequence:
from
contextlib
import
contextmanager
,
nested
from
contextlib
import
contextmanager
,
nested
import
itertools
import
itertools
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
import
random
import
random
from
shutil
import
rmtree
from
shutil
import
rmtree
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
View file @
741f0686
...
@@ -7,7 +7,7 @@ Unit tests for the Mongo modulestore
...
@@ -7,7 +7,7 @@ Unit tests for the Mongo modulestore
from
nose.tools
import
assert_equals
,
assert_raises
,
\
from
nose.tools
import
assert_equals
,
assert_raises
,
\
assert_not_equals
,
assert_false
,
assert_true
,
assert_greater
,
assert_is_instance
,
assert_is_none
assert_not_equals
,
assert_false
,
assert_true
,
assert_greater
,
assert_is_instance
,
assert_is_none
# pylint: enable=E0611
# pylint: enable=E0611
from
path
import
path
from
path
import
Path
as
path
import
pymongo
import
pymongo
import
logging
import
logging
import
shutil
import
shutil
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
View file @
741f0686
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
from
mock
import
patch
from
mock
import
patch
import
datetime
import
datetime
from
importlib
import
import_module
from
importlib
import
import_module
from
path
import
path
from
path
import
Path
as
path
import
random
import
random
import
re
import
re
import
unittest
import
unittest
...
...
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
741f0686
...
@@ -12,7 +12,7 @@ from cStringIO import StringIO
...
@@ -12,7 +12,7 @@ from cStringIO import StringIO
from
fs.osfs
import
OSFS
from
fs.osfs
import
OSFS
from
importlib
import
import_module
from
importlib
import
import_module
from
lxml
import
etree
from
lxml
import
etree
from
path
import
path
from
path
import
Path
as
path
from
contextlib
import
contextmanager
from
contextlib
import
contextmanager
from
lazy
import
lazy
from
lazy
import
lazy
...
...
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
View file @
741f0686
...
@@ -17,7 +17,7 @@ from fs.osfs import OSFS
...
@@ -17,7 +17,7 @@ from fs.osfs import OSFS
from
json
import
dumps
from
json
import
dumps
import
json
import
json
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
import
shutil
import
shutil
from
xmodule.modulestore.draft_and_published
import
DIRECT_ONLY_CATEGORIES
from
xmodule.modulestore.draft_and_published
import
DIRECT_ONLY_CATEGORIES
from
opaque_keys.edx.locator
import
CourseLocator
,
LibraryLocator
from
opaque_keys.edx.locator
import
CourseLocator
,
LibraryLocator
...
...
common/lib/xmodule/xmodule/modulestore/xml_importer.py
View file @
741f0686
...
@@ -25,7 +25,7 @@ from abc import abstractmethod
...
@@ -25,7 +25,7 @@ from abc import abstractmethod
from
opaque_keys.edx.locator
import
LibraryLocator
from
opaque_keys.edx.locator
import
LibraryLocator
import
os
import
os
import
mimetypes
import
mimetypes
from
path
import
path
from
path
import
Path
as
path
import
json
import
json
import
re
import
re
from
lxml
import
etree
from
lxml
import
etree
...
...
common/lib/xmodule/xmodule/static_content.py
View file @
741f0686
...
@@ -11,7 +11,7 @@ import errno
...
@@ -11,7 +11,7 @@ import errno
import
sys
import
sys
from
collections
import
defaultdict
from
collections
import
defaultdict
from
docopt
import
docopt
from
docopt
import
docopt
from
path
import
path
from
path
import
Path
as
path
from
xmodule.x_module
import
XModuleDescriptor
from
xmodule.x_module
import
XModuleDescriptor
...
...
common/lib/xmodule/xmodule/tests/__init__.py
View file @
741f0686
...
@@ -20,7 +20,7 @@ from functools import wraps
...
@@ -20,7 +20,7 @@ from functools import wraps
from
lazy
import
lazy
from
lazy
import
lazy
from
mock
import
Mock
,
patch
from
mock
import
Mock
,
patch
from
operator
import
attrgetter
from
operator
import
attrgetter
from
path
import
path
from
path
import
Path
as
path
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
xblock.field_data
import
DictFieldData
from
xblock.field_data
import
DictFieldData
...
...
common/lib/xmodule/xmodule/tests/helpers.py
View file @
741f0686
...
@@ -3,7 +3,7 @@ Utility methods for unit tests.
...
@@ -3,7 +3,7 @@ Utility methods for unit tests.
"""
"""
import
filecmp
import
filecmp
from
path
import
path
from
path
import
Path
as
path
def
directories_equal
(
directory1
,
directory2
):
def
directories_equal
(
directory1
,
directory2
):
...
...
common/lib/xmodule/xmodule/tests/test_content.py
View file @
741f0686
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
os
import
os
import
unittest
import
unittest
import
ddt
import
ddt
from
path
import
path
from
path
import
Path
as
path
from
xmodule.contentstore.content
import
StaticContent
,
StaticContentStream
from
xmodule.contentstore.content
import
StaticContent
,
StaticContentStream
from
xmodule.contentstore.content
import
ContentStore
from
xmodule.contentstore.content
import
ContentStore
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
,
AssetLocation
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
,
AssetLocation
...
...
common/lib/xmodule/xmodule/tests/test_export.py
View file @
741f0686
...
@@ -14,7 +14,7 @@ import uuid
...
@@ -14,7 +14,7 @@ import uuid
from
datetime
import
datetime
,
timedelta
,
tzinfo
from
datetime
import
datetime
,
timedelta
,
tzinfo
from
fs.osfs
import
OSFS
from
fs.osfs
import
OSFS
from
path
import
path
from
path
import
Path
as
path
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
from
textwrap
import
dedent
from
textwrap
import
dedent
...
...
common/test/acceptance/fixtures/course.py
View file @
741f0686
...
@@ -9,7 +9,7 @@ import datetime
...
@@ -9,7 +9,7 @@ import datetime
from
textwrap
import
dedent
from
textwrap
import
dedent
from
collections
import
namedtuple
from
collections
import
namedtuple
from
path
import
path
from
path
import
Path
as
path
from
opaque_keys.edx.keys
import
CourseKey
from
opaque_keys.edx.keys
import
CourseKey
...
...
common/test/acceptance/pages/studio/textbooks.py
View file @
741f0686
...
@@ -3,7 +3,7 @@ Course Textbooks page.
...
@@ -3,7 +3,7 @@ Course Textbooks page.
"""
"""
import
requests
import
requests
from
path
import
path
# pylint: disable=no-name-in-module
from
path
import
Path
as
path
from
.course_page
import
CoursePage
from
.course_page
import
CoursePage
from
.utils
import
click_css
from
.utils
import
click_css
...
...
common/test/acceptance/tests/helpers.py
View file @
741f0686
...
@@ -12,7 +12,7 @@ import os
...
@@ -12,7 +12,7 @@ import os
import
urlparse
import
urlparse
from
contextlib
import
contextmanager
from
contextlib
import
contextmanager
from
datetime
import
datetime
from
datetime
import
datetime
from
path
import
path
from
path
import
Path
as
path
from
bok_choy.javascript
import
js_defined
from
bok_choy.javascript
import
js_defined
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.web_app_test
import
WebAppTest
from
bok_choy.promise
import
EmptyPromise
,
Promise
from
bok_choy.promise
import
EmptyPromise
,
Promise
...
...
docs/en_us/enrollment_api/source/conf.py
View file @
741f0686
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# pylint: disable=unused-argument
# pylint: disable=unused-argument
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
import
sys
import
sys
import
mock
import
mock
...
...
docs/en_us/platform_api/source/conf.py
View file @
741f0686
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# pylint: disable=unused-argument
# pylint: disable=unused-argument
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
import
sys
import
sys
import
mock
import
mock
...
...
lms/djangoapps/certificates/tests/test_models.py
View file @
741f0686
...
@@ -5,8 +5,7 @@ from django.core.files.images import ImageFile
...
@@ -5,8 +5,7 @@ from django.core.files.images import ImageFile
from
django.test
import
TestCase
from
django.test
import
TestCase
from
django.test.utils
import
override_settings
from
django.test.utils
import
override_settings
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
# pylint: disable=no-name-in-module
from
path
import
Path
as
path
from
path
import
path
from
opaque_keys.edx.locator
import
CourseLocator
from
opaque_keys.edx.locator
import
CourseLocator
from
certificates.models
import
(
from
certificates.models
import
(
...
...
lms/djangoapps/courseware/courses.py
View file @
741f0686
...
@@ -3,7 +3,7 @@ from fs.errors import ResourceNotFoundError
...
@@ -3,7 +3,7 @@ from fs.errors import ResourceNotFoundError
import
logging
import
logging
import
inspect
import
inspect
from
path
import
path
from
path
import
Path
as
path
from
django.http
import
Http404
from
django.http
import
Http404
from
django.conf
import
settings
from
django.conf
import
settings
...
...
lms/djangoapps/courseware/management/commands/clean_xml.py
View file @
741f0686
...
@@ -4,7 +4,7 @@ import sys
...
@@ -4,7 +4,7 @@ import sys
import
traceback
import
traceback
from
fs.osfs
import
OSFS
from
fs.osfs
import
OSFS
from
path
import
path
from
path
import
Path
as
path
from
django.core.management.base
import
BaseCommand
from
django.core.management.base
import
BaseCommand
...
...
lms/djangoapps/courseware/management/commands/export_course.py
View file @
741f0686
...
@@ -12,7 +12,7 @@ import tarfile
...
@@ -12,7 +12,7 @@ import tarfile
from
tempfile
import
mktemp
,
mkdtemp
from
tempfile
import
mktemp
,
mkdtemp
from
textwrap
import
dedent
from
textwrap
import
dedent
from
path
import
path
from
path
import
Path
as
path
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
,
CommandError
...
...
lms/djangoapps/courseware/management/commands/tests/test_dump_course.py
View file @
741f0686
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
json
import
json
from
nose.plugins.attrib
import
attr
from
nose.plugins.attrib
import
attr
from
path
import
path
from
path
import
Path
as
path
import
shutil
import
shutil
from
StringIO
import
StringIO
from
StringIO
import
StringIO
import
tarfile
import
tarfile
...
...
lms/djangoapps/dashboard/sysadmin.py
View file @
741f0686
...
@@ -28,7 +28,7 @@ from django.views.decorators.http import condition
...
@@ -28,7 +28,7 @@ from django.views.decorators.http import condition
from
django.views.decorators.csrf
import
ensure_csrf_cookie
from
django.views.decorators.csrf
import
ensure_csrf_cookie
from
edxmako.shortcuts
import
render_to_response
from
edxmako.shortcuts
import
render_to_response
import
mongoengine
import
mongoengine
from
path
import
path
from
path
import
Path
as
path
from
courseware.courses
import
get_course_by_id
from
courseware.courses
import
get_course_by_id
import
dashboard.git_import
as
git_import
import
dashboard.git_import
as
git_import
...
...
lms/djangoapps/debug/management/commands/dump_xml_courses.py
View file @
741f0686
...
@@ -10,7 +10,7 @@ of each of its fields (including those fields that are set as default values).
...
@@ -10,7 +10,7 @@ of each of its fields (including those fields that are set as default values).
from
__future__
import
print_function
from
__future__
import
print_function
import
json
import
json
from
path
import
path
from
path
import
Path
as
path
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.conf
import
settings
from
django.conf
import
settings
...
...
lms/djangoapps/lms_migration/management/commands/create_groups.py
View file @
741f0686
...
@@ -9,7 +9,7 @@ import os
...
@@ -9,7 +9,7 @@ import os
from
django.core.management.base
import
BaseCommand
from
django.core.management.base
import
BaseCommand
from
django.conf
import
settings
from
django.conf
import
settings
from
django.contrib.auth.models
import
Group
from
django.contrib.auth.models
import
Group
from
path
import
path
from
path
import
Path
as
path
from
lxml
import
etree
from
lxml
import
etree
...
...
lms/envs/aws.py
View file @
741f0686
...
@@ -23,7 +23,7 @@ from .common import *
...
@@ -23,7 +23,7 @@ from .common import *
from
openedx.core.lib.logsettings
import
get_logger_config
from
openedx.core.lib.logsettings
import
get_logger_config
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
...
...
lms/envs/bok_choy.py
View file @
741f0686
...
@@ -11,7 +11,7 @@ from the same directory.
...
@@ -11,7 +11,7 @@ from the same directory.
"""
"""
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
tempfile
import
mkdtemp
from
tempfile
import
mkdtemp
# Pylint gets confused by path.py instances, which report themselves as class
# Pylint gets confused by path.py instances, which report themselves as class
...
...
lms/envs/common.py
View file @
741f0686
...
@@ -33,7 +33,7 @@ import sys
...
@@ -33,7 +33,7 @@ import sys
import
os
import
os
import
imp
import
imp
from
path
import
path
from
path
import
Path
as
path
from
warnings
import
simplefilter
from
warnings
import
simplefilter
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
...
...
lms/envs/test.py
View file @
741f0686
...
@@ -20,7 +20,7 @@ sessions. Assumes structure:
...
@@ -20,7 +20,7 @@ sessions. Assumes structure:
from
.common
import
*
from
.common
import
*
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
from
uuid
import
uuid4
from
uuid
import
uuid4
from
warnings
import
filterwarnings
,
simplefilter
from
warnings
import
filterwarnings
,
simplefilter
...
...
lms/envs/yaml_config.py
View file @
741f0686
...
@@ -20,7 +20,7 @@ from openedx.core.lib.logsettings import get_logger_config
...
@@ -20,7 +20,7 @@ from openedx.core.lib.logsettings import get_logger_config
from
util.config_parse
import
convert_tokens
from
util.config_parse
import
convert_tokens
import
os
import
os
from
path
import
path
from
path
import
Path
as
path
# https://stackoverflow.com/questions/2890146/how-to-force-pyyaml-to-load-strings-as-unicode-objects
# https://stackoverflow.com/questions/2890146/how-to-force-pyyaml-to-load-strings-as-unicode-objects
from
yaml
import
Loader
,
SafeLoader
from
yaml
import
Loader
,
SafeLoader
...
...
pavelib/i18n.py
View file @
741f0686
...
@@ -3,7 +3,7 @@ Internationalization tasks
...
@@ -3,7 +3,7 @@ Internationalization tasks
"""
"""
import
sys
import
sys
import
subprocess
import
subprocess
from
path
import
path
from
path
import
Path
as
path
from
paver.easy
import
task
,
cmdopts
,
needs
,
sh
from
paver.easy
import
task
,
cmdopts
,
needs
,
sh
try
:
try
:
...
...
pavelib/paver_tests/test_paver_quality.py
View file @
741f0686
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Tests for paver quality tasks
Tests for paver quality tasks
"""
"""
import
os
import
os
from
path
import
path
# pylint: disable=no-name-in-module
from
path
import
Path
as
path
import
tempfile
import
tempfile
import
unittest
import
unittest
from
mock
import
patch
,
MagicMock
,
mock_open
from
mock
import
patch
,
MagicMock
,
mock_open
...
...
pavelib/utils/envs.py
View file @
741f0686
...
@@ -6,7 +6,7 @@ import os
...
@@ -6,7 +6,7 @@ import os
import
sys
import
sys
import
json
import
json
from
lazy
import
lazy
from
lazy
import
lazy
from
path
import
path
from
path
import
Path
as
path
import
memcache
import
memcache
...
...
scripts/all-tests.sh
View file @
741f0686
...
@@ -11,7 +11,7 @@ set -e
...
@@ -11,7 +11,7 @@ set -e
###############################################################################
###############################################################################
# Violations thresholds for failing the build
# Violations thresholds for failing the build
export
PYLINT_THRESHOLD
=
6
2
75
export
PYLINT_THRESHOLD
=
6
1
75
export
JSHINT_THRESHOLD
=
3700
export
JSHINT_THRESHOLD
=
3700
doCheckVars
()
{
doCheckVars
()
{
...
...
scripts/release.py
View file @
741f0686
...
@@ -14,7 +14,7 @@ import json
...
@@ -14,7 +14,7 @@ import json
import
getpass
import
getpass
try
:
try
:
from
path
import
path
from
path
import
Path
as
path
from
git
import
Repo
,
Commit
from
git
import
Repo
,
Commit
from
git.refs.symbolic
import
SymbolicReference
from
git.refs.symbolic
import
SymbolicReference
from
dateutil.parser
import
parse
as
parse_datestring
from
dateutil.parser
import
parse
as
parse_datestring
...
...
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