Skip to content

Commit 1ae4e7f

Browse files
author
wiro
committed
remove trailing spaces
1 parent ed461e2 commit 1ae4e7f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

gitlab-project-export.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@
1717
if __name__ == '__main__':
1818
# Parsing arguments
1919
parser = argparse.ArgumentParser(
20-
description="""
20+
description="""
2121
GitLab Project Export is
2222
small project using Gitlab API for exporting whole gitlab
2323
project with wikis, issues etc.
2424
Good for migration or simple backup your gitlab projects.
2525
""",
2626
epilog='Created by Robert Vojcik <[email protected]>')
27-
27+
2828
# Arguments
2929
parser.add_argument('-c', dest='config', default='config.yaml',
30-
help='config file')
30+
help='config file')
3131
parser.add_argument('-d', dest='debug', default=False, action='store_const', const=True,
32-
help='Debug mode')
33-
32+
help='Debug mode')
33+
3434
args = parser.parse_args()
3535

3636
if not os.path.isfile(args.config):
37-
print("Unable to find config file %s" % (args.config))
37+
print("Unable to find config file %s" % (args.config))
3838

3939
c = config.Config(args.config)
4040
token = c.config["gitlab"]["access"]["token"]
@@ -57,7 +57,7 @@
5757
print("Success for %s"%(project))
5858
# Download project to our destination
5959
if c.config["backup"]["project_dirs"]:
60-
destination = c.config["backup"]["destination"] + "/" + project
60+
destination = c.config["backup"]["destination"] + "/" + project
6161
else:
6262
destination = c.config["backup"]["destination"]
6363

@@ -97,5 +97,5 @@
9797
# Export for project unsuccessful
9898
print("Export failed for project %s" % (project), file=sys.stderr)
9999
return_code += 1
100-
100+
101101
sys.exit(return_code)

gitlab-project-import.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@
1717
if __name__ == '__main__':
1818
# Parsing arguments
1919
parser = argparse.ArgumentParser(
20-
description="""
20+
description="""
2121
GitLab Project Export is
2222
small project using Gitlab API for exporting whole gitlab
2323
project with wikis, issues etc.
2424
Good for migration or simple backup your gitlab projects.
2525
""",
2626
epilog='Created by Robert Vojcik <[email protected]>')
27-
27+
2828
# Arguments
2929
parser.add_argument('-c', dest='config', default='config.yaml',
30-
help='config file')
30+
help='config file')
3131
parser.add_argument('-f', dest='filepath', default=False,
32-
help='Path to gitlab exported project file')
32+
help='Path to gitlab exported project file')
3333
parser.add_argument('-p', dest='project_path', default=False,
34-
help='Project path')
34+
help='Project path')
3535
parser.add_argument('-d', dest='debug', default=False, action='store_const', const=True,
36-
help='Debug mode')
37-
36+
help='Debug mode')
37+
3838
args = parser.parse_args()
3939

4040
if not os.path.isfile(args.config):
41-
print("Unable to find config file %s" % (args.config))
41+
print("Unable to find config file %s" % (args.config))
4242

4343
c = config.Config(args.config)
4444
token = c.config["gitlab"]["access"]["token"]

0 commit comments

Comments
 (0)