You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/example1/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,25 +38,25 @@ enable_console_logging(verbosity=0) # Show WARNING and ERROR logs only
38
38
Show the differences between A and B
39
39
```python
40
40
diff_a_b = a.diff_to(b)
41
-
diff_a_b.print_detailed()
41
+
print(diff_a_b.str())
42
42
```
43
43
44
44
Show the differences between B and C
45
45
```python
46
46
diff_b_c = c.diff_from(b)
47
-
diff_b_c.print_detailed()
47
+
print(diff_b_c.str())
48
48
```
49
49
50
50
Synchronize A and B (update B with the contents of A)
51
51
```python
52
52
a.sync_to(b)
53
-
a.diff_to(b).print_detailed()
53
+
print(a.diff_to(b).str())
54
54
```
55
55
56
56
Now A and B will show no differences
57
57
```python
58
58
diff_a_b = a.diff_to(b)
59
-
diff_a_b.print_detailed()
59
+
print(diff_a_b.str())
60
60
```
61
61
62
62
> In the Device model, the `site_name` and `role` are not included in the `_attributes`, so they are not shown when we are comparing the different objects, even if the value is different.
0 commit comments