We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff89e1e commit 82f55edCopy full SHA for 82f55ed
src/file_parser/language.rs
@@ -35,7 +35,9 @@ impl FromStr for Language {
35
fn from_str(s: &str) -> Result<Self, Self::Err> {
36
match s.to_lowercase().as_ref() {
37
"rs" | "rust" => Ok(Language::Rust),
38
- "py" | "python" | "python3" => Ok(Language::Python3),
+ /* python creates ambiguity with Python2.7 and Python3
39
+ * as both are supported by leetcode, so we only allow python3 */
40
+ "py" /*| "python" */ | "python3" => Ok(Language::Python3),
41
"cpp" => Ok(Language::Cpp),
42
"java" => Ok(Language::Java),
43
"c" => Ok(Language::C),
0 commit comments