Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit afcf095

Browse files
committed
Stop converting the filename to lowercase
This leads to problems for tools integrating with pydocstyle, e.g., atom linter-pydocstyle Closes #179
1 parent c3cd2dc commit afcf095

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/pydocstyle.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ class Module(Definition):
151151
module = property(lambda self: self)
152152
all = property(lambda self: self._all)
153153

154-
def __init__(self, *args, **kwargs):
155-
super(Module, self).__init__(*args, **kwargs)
156-
self.name = self.name.lower()
157-
158154
def __str__(self):
159155
return 'at module level'
160156

src/tests/test_cases/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,5 @@ def inner_function():
339339
"""Do inner something."""
340340
return 0
341341

342-
expect(__file__.lower() if __file__[-1] != 'c' else __file__[:-1].lower(),
342+
expect(__file__ if __file__[-1] != 'c' else __file__[:-1],
343343
'D100: Missing docstring in public module')

0 commit comments

Comments
 (0)