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 e7319a6 commit fd7be76Copy full SHA for fd7be76
src/extractcode/__init__.py
@@ -160,12 +160,12 @@ def new_name(location, is_dir=False):
160
the extension unchanged.
161
"""
162
assert location
163
-
+
164
location = location.rstrip('\\/')
165
name = fileutils.file_name(location).strip()
166
- if (not name or name == '.'
+ if (not name or name == '.'
167
# windows bare drive path as in c: or z:
168
- or (name and len(name)==2 and name.endswith(':'))):
+ or (name and len(name) == 2 and name.endswith(':'))):
169
name = 'file'
170
171
parent = fileutils.parent_directory(location)
0 commit comments