File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9ec0a6cf8039bd87c1a27235f91085be36ce3f9a
2
+ refs/heads/master: ef957ca28e77326aef34f4df6bea201f2f1bf67c
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -76,9 +76,12 @@ class RoundTripTask(object):
76
76
77
77
contents = '' .join (map (lambda l : l .decode ('utf-8' , errors = 'replace' ),
78
78
open (self .input_filename ).readlines ()))
79
- lines = difflib .unified_diff (contents ,
80
- self .stdout .decode ('utf-8' ,
81
- errors = 'replace' ),
79
+ stdout_contents = self .stdout .decode ('utf-8' , errors = 'replace' )
80
+
81
+ if contents == stdout_contents :
82
+ return None
83
+
84
+ lines = difflib .unified_diff (contents , stdout_contents ,
82
85
fromfile = self .input_filename ,
83
86
tofile = '-' )
84
87
diff = '\n ' .join (line for line in lines )
You can’t perform that action at this time.
0 commit comments