Skip to content

Commit e5a5d9c

Browse files
committed
Removed a function from utils
1 parent 139b81d commit e5a5d9c

File tree

1 file changed

+0
-10
lines changed
  • src/main/kotlin/org/utpython/types/mypy

1 file changed

+0
-10
lines changed

src/main/kotlin/org/utpython/types/mypy/Utils.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,4 @@ fun String.modifyWindowsPath(): String {
55
val (disk, path) = this.split(":", limit = 2)
66
"\\\\localhost\\$disk$${path.replace("/", "\\")}"
77
} else this
8-
}
9-
10-
/**
11-
* Remove .__init__ suffix if it exists.
12-
It resolves problem with duplication module names in mypy, e.g. mod.__init__ and mod
13-
*/
14-
fun String.dropInitFile(): String {
15-
return if (this.endsWith(".__init__")) {
16-
this.dropLast(9)
17-
} else this
188
}

0 commit comments

Comments
 (0)