File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,20 @@ def is_target_supported(cls, target_name):
259
259
def all_supported_targets (cls ):
260
260
return [t for t in TARGET_MAP .keys () if cls .is_target_supported (t )]
261
261
262
+ @staticmethod
263
+ def filter_dot (str ):
264
+ """
265
+ Remove the './' or '.\\ ' prefix, if present.
266
+ """
267
+ if str == None :
268
+ return None
269
+ if str [:2 ] == './' :
270
+ return str [2 :]
271
+ if str [:2 ] == '.\\ ' :
272
+ return str [2 :]
273
+ return str
274
+
275
+
262
276
263
277
def apply_supported_whitelist (compiler , whitelist , target ):
264
278
"""Generate a list of supported targets for a given compiler and post-binary hook
Original file line number Diff line number Diff line change @@ -417,21 +417,6 @@ def compute_exclusions(self):
417
417
418
418
# -------------------------------------------------------------------------
419
419
420
- @staticmethod
421
- def filter_dot (str ):
422
- """
423
- Remove the './' prefix, if present.
424
- This function assumes that resources.win_to_unix()
425
- replaced all windows backslashes with slashes.
426
- """
427
- if str == None :
428
- return None
429
- if str [:2 ] == './' :
430
- return str [2 :]
431
- return str
432
-
433
- # -------------------------------------------------------------------------
434
-
435
420
def dump_tree (self , nodes , depth = 0 ):
436
421
for k in nodes .keys ():
437
422
node = nodes [k ]
You can’t perform that action at this time.
0 commit comments