Skip to content

Commit

Permalink
Fix pycodestyle warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 14, 2018
1 parent ddd6028 commit ce7a6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def walk_git_files(self, repo_path=''):
lines = f.readlines()

for l in lines:
m = re.match("^\s*path\s*=\s*(.*)\s*$", l)
m = re.match("^\\s*path\\s*=\\s*(.*)\\s*$", l)

if m:
repo_submodule_path = m.group(1) # relative to repo_path
Expand Down Expand Up @@ -347,7 +347,7 @@ def main():

output_name = path.basename(output_file_path)
output_name = re.sub(
'(\.zip|\.tar|\.tgz|\.txz|\.gz|\.bz2|\.xz|\.tar\.gz|\.tar\.bz2|\.tar\.xz)$',
'(\\.zip|\\.tar|\\.tgz|\\.txz|\\.gz|\\.bz2|\\.xz|\\.tar\\.gz|\\.tar\\.bz2|\\.tar\\.xz)$',
'',
output_name
) or "Archive"
Expand Down

0 comments on commit ce7a6ef

Please sign in to comment.