Skip to content

Commit fd7be76

Browse files
committed
Reformat code
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent e7319a6 commit fd7be76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extractcode/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ def new_name(location, is_dir=False):
160160
the extension unchanged.
161161
"""
162162
assert location
163-
163+
164164
location = location.rstrip('\\/')
165165
name = fileutils.file_name(location).strip()
166-
if (not name or name == '.'
166+
if (not name or name == '.'
167167
# windows bare drive path as in c: or z:
168-
or (name and len(name)==2 and name.endswith(':'))):
168+
or (name and len(name) == 2 and name.endswith(':'))):
169169
name = 'file'
170170

171171
parent = fileutils.parent_directory(location)

0 commit comments

Comments
 (0)