File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,10 @@ PyMemberDef Patch_members[] = {
161161 {NULL }
162162};
163163
164- PyDoc_STRVAR (Patch_binary__doc__ , "Binary ." );
164+ PyDoc_STRVAR (Patch_is_binary__doc__ , "True if binary data, False if not ." );
165165
166166PyObject *
167- Patch_binary__get__ (Patch * self )
167+ Patch_is_binary__get__ (Patch * self )
168168{
169169 if (!(self -> flags & GIT_DIFF_FLAG_NOT_BINARY ) &&
170170 (self -> flags & GIT_DIFF_FLAG_BINARY ))
@@ -173,7 +173,7 @@ Patch_binary__get__(Patch *self)
173173}
174174
175175PyGetSetDef Patch_getseters [] = {
176- GETTER (Patch , binary ),
176+ GETTER (Patch , is_binary ),
177177 {NULL }
178178};
179179
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ def _test(diff):
175175
176176 self .assertEqual (patch .old_file_path , 'a' )
177177 self .assertEqual (patch .new_file_path , 'a' )
178- self .assertEqual (patch .binary , False )
178+ self .assertEqual (patch .is_binary , False )
179179
180180 _test (commit_a .tree .diff_to_tree (commit_b .tree ))
181181 _test (self .repo .diff (COMMIT_SHA1_1 , COMMIT_SHA1_2 ))
You can’t perform that action at this time.
0 commit comments