Skip to content

Commit 97aff5f

Browse files
committed
Various minor updates
1 parent 4880cdc commit 97aff5f

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

diffsync/diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Diff and DiffElement classes for DiffSync.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

diffsync/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Utility functions for DiffSync library.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

examples/example2/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ ds1.sync_to(ds2, callback=print_callback)
2424
You should see output similar to the following:
2525

2626
```
27-
diff: Processed 1/ 200 records.
28-
diff: Processed 3/ 200 records.
27+
diff: Processed 1/200 records.
28+
diff: Processed 3/200 records.
2929
...
30-
diff: Processed 199/ 200 records.
31-
diff: Processed 200/ 200 records.
32-
sync: Processed 1/ 134 records.
33-
sync: Processed 2/ 134 records.
30+
diff: Processed 199/200 records.
31+
diff: Processed 200/200 records.
32+
sync: Processed 1/134 records.
33+
sync: Processed 2/134 records.
3434
...
35-
sync: Processed 134/ 134 records.
35+
sync: Processed 134/134 records.
3636
```
3737

3838
A few points to note:

examples/example2/example2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def populate(self, count):
6161

6262
def print_callback(stage, current, total):
6363
"""Callback for DiffSync; stage is "diff"/"sync", current is records processed to date, total is self-evident."""
64-
print(f"{stage}: Processed {current:>5}/{total:>5} records.")
64+
print(f"{stage}: Processed {current:>3}/{total} records.")
6565

6666

6767
def main():

tests/unit/test_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Unit tests for the Diff class.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

tests/unit/test_diff_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Unit tests for the DiffElement class.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

tests/unit/test_diffsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Unit tests for the DiffSync class.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

tests/unit/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Verification that the provided example code works correctly.
22
3-
Copyright (c) 2020 Network To Code, LLC <info@networktocode.com>
3+
Copyright (c) 2020-2021 Network To Code, LLC <info@networktocode.com>
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)