Skip to content

Commit 903b704

Browse files
committed
Abbreviating package to pkg makes it sound like it's going in a field named
pkg.
1 parent f4bd1a6 commit 903b704

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/org/python/core/ClasspathPyImporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected String makeFilename(String fullname) {
110110
}
111111

112112
@Override
113-
protected String makePkgPath(String fullname) {
113+
protected String makePackagePath(String fullname) {
114114
return path;
115115
}
116116

src/org/python/core/util/importer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public importer() {
4646
* Returns the value to fill in __path__ on a module with the given full module name created by
4747
* this importer.
4848
*/
49-
protected abstract String makePkgPath(String fullname);
49+
protected abstract String makePackagePath(String fullname);
5050

5151
/**
5252
* Given a full module name, return the potential file path in the archive (without extension).
@@ -95,7 +95,7 @@ protected final PyObject importer_load_module(String fullname) {
9595
if (moduleCodeData.ispackage) {
9696
// add __path__ to the module *before* the code gets executed
9797
PyList pkgpath = new PyList();
98-
pkgpath.add(makePkgPath(fullname));
98+
pkgpath.add(makePackagePath(fullname));
9999
mod.__dict__.__setitem__("__path__", pkgpath);
100100
}
101101
imp.createFromCode(fullname, moduleCodeData.code, moduleCodeData.path);
@@ -155,7 +155,7 @@ protected final ModuleInfo getModuleInfo(String fullname) {
155155
*/
156156
protected final ModuleCodeData getModuleCode(String fullname) {
157157
String path = makeFilename(fullname);
158-
String fullPath = makePkgPath(fullname);
158+
String fullPath = makePackagePath(fullname);
159159

160160
if (path.length() < 0) {
161161
return null;

src/org/python/modules/zipimport/zipimporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ protected String makeFilename(String fullname) {
418418
}
419419

420420
@Override
421-
protected String makePkgPath(String fullname) {
421+
protected String makePackagePath(String fullname) {
422422
return archive + File.separator + prefix + getSubname(fullname);
423423
}
424424

0 commit comments

Comments
 (0)