Skip to content

Commit fdd4856

Browse files
committed
fixed StringIndexOutOfBoundsException on Windows
1 parent 0307d38 commit fdd4856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/PythonClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public PythonClientCodegen() {
5454
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
5555
supportingFiles.add(new SupportingFile("swagger.mustache", module, "swagger.py"));
5656
supportingFiles.add(new SupportingFile("__init__.mustache", module, "__init__.py"));
57-
supportingFiles.add(new SupportingFile("__init__.mustache", modelPackage.replaceAll("\\.", File.separator), "__init__.py"));
57+
supportingFiles.add(new SupportingFile("__init__.mustache", modelPackage.replace('.', File.separatorChar), "__init__.py"));
5858
}
5959

6060
@Override

0 commit comments

Comments
 (0)