Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 1950213002: Remove unused imports in webkitpy with using autoflake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions 4 # modification, are permitted provided that the following conditions
5 # are met: 5 # are met:
6 # 6 #
7 # 1. Redistributions of source code must retain the above 7 # 1. Redistributions of source code must retain the above
8 # copyright notice, this list of conditions and the following 8 # copyright notice, this list of conditions and the following
9 # disclaimer. 9 # disclaimer.
10 # 2. Redistributions in binary form must reproduce the above 10 # 2. Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 a timestamp, the W3C Mercurial changeset if available, the list of CSS 65 a timestamp, the W3C Mercurial changeset if available, the list of CSS
66 properties used that require prefixes, the list of imported files, and 66 properties used that require prefixes, the list of imported files, and
67 guidance for future test modification and maintenance. On subsequent 67 guidance for future test modification and maintenance. On subsequent
68 imports, this file is read to determine if files have been 68 imports, this file is read to determine if files have been
69 removed in the newer changesets. The script removes these files 69 removed in the newer changesets. The script removes these files
70 accordingly. 70 accordingly.
71 """ 71 """
72 72
73 # FIXME: Change this file to use the Host abstractions rather that os, sys, shut ils, etc. 73 # FIXME: Change this file to use the Host abstractions rather that os, sys, shut ils, etc.
74 74
75 import datetime
76 import logging 75 import logging
77 import mimetypes 76 import mimetypes
78 import optparse 77 import optparse
79 import os 78 import os
80 import shutil 79 import shutil
81 import sys 80 import sys
82 81
83 from webkitpy.common.host import Host 82 from webkitpy.common.host import Host
84 from webkitpy.common.webkit_finder import WebKitFinder 83 from webkitpy.common.webkit_finder import WebKitFinder
85 from webkitpy.common.system.executive import ScriptError 84 from webkitpy.common.system.executive import ScriptError
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 """ Creates a destination directory that mirrors that of the source dire ctory """ 407 """ Creates a destination directory that mirrors that of the source dire ctory """
409 408
410 new_subpath = self.dir_to_import[len(self.top_of_repo):] 409 new_subpath = self.dir_to_import[len(self.top_of_repo):]
411 410
412 destination_directory = os.path.join(self.destination_directory, new_sub path) 411 destination_directory = os.path.join(self.destination_directory, new_sub path)
413 412
414 if not os.path.exists(destination_directory): 413 if not os.path.exists(destination_directory):
415 os.makedirs(destination_directory) 414 os.makedirs(destination_directory)
416 415
417 _log.info('Tests will be imported into: %s', destination_directory) 416 _log.info('Tests will be imported into: %s', destination_directory)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698