diff --git a/python/src/META-INF/python-plugin-common.xml b/python/src/META-INF/python-plugin-common.xml
index c8684329a267..01ec72aeb8f6 100644
--- a/python/src/META-INF/python-plugin-common.xml
+++ b/python/src/META-INF/python-plugin-common.xml
@@ -463,6 +463,9 @@
+
diff --git a/python/src/com/jetbrains/python/PyNames.java b/python/src/com/jetbrains/python/PyNames.java
index 6287a1248e1d..d187fc7e31fc 100644
--- a/python/src/com/jetbrains/python/PyNames.java
+++ b/python/src/com/jetbrains/python/PyNames.java
@@ -339,7 +339,11 @@ public class PyNames {
* @return true iff name is not reserved and is a well-formed identifier.
*/
public static boolean isIdentifier(@NotNull @NonNls String name) {
- return ! isReserved(name) && IDENTIFIER_PATTERN.matcher(name).matches();
+ return ! isReserved(name) && isIndentifierString(name);
+ }
+
+ public static boolean isIndentifierString(String name) {
+ return IDENTIFIER_PATTERN.matcher(name).matches();
}
public static boolean isRightOperatorName(@Nullable String name) {
diff --git a/python/src/com/jetbrains/python/packaging/PyRequirement.java b/python/src/com/jetbrains/python/packaging/PyRequirement.java
index 181b4c7e6d28..da00cd36a72e 100644
--- a/python/src/com/jetbrains/python/packaging/PyRequirement.java
+++ b/python/src/com/jetbrains/python/packaging/PyRequirement.java
@@ -153,7 +153,7 @@ public class PyRequirement {
return null;
}
if (s.matches("[0-9]+")) {
- final int value = Integer.parseInt(s);
+ final long value = Long.parseLong(s);
return String.format("%08d", value);
}
return "*" + s;