Skip to content

Commit

Permalink
Merge pull request beeware#748 from MisterY/jetbrains
Browse files Browse the repository at this point in the history
Accept non-Android vendors as Java by default. Fixes beeware#747 (jumbo jet)
  • Loading branch information
eliasdorneles authored Mar 1, 2018
2 parents e2fc0d2 + 4e858ae commit f82d9e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions python/common/python/platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ public class platform extends org.python.types.Module {
java.lang.String platform_class_name;
java.lang.Class platform_class;

if (vendor.equals("Oracle Corporation")) {
platform_class_name = "python._platform.JavaPlatform";
} else if (vendor.equals("The Android Project")) {
if (vendor.equals("The Android Project")) {
platform_class_name = "python._platform.AndroidPlatform";
} else if (vendor.equals("Azul Systems, Inc.")) {
platform_class_name = "python._platform.JavaPlatform";
} else {
throw new org.python.exceptions.RuntimeError("Unknown platform vendor '" + vendor + "'");
platform_class_name = "python._platform.JavaPlatform";
}

try {
Expand Down

0 comments on commit f82d9e8

Please sign in to comment.