Skip to content

Commit 7a7895f

Browse files
committed
Halve the number of quotes in NotImplementedError messages
1 parent 13dc301 commit 7a7895f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygit2/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,14 +790,14 @@ def option(option_type: Option, arg1: Any = NOT_PASSED, arg2: Any = NOT_PASSED)
790790
# as the API works accepts a X509* struct. Use GIT_OPT_SET_SSL_CERT_LOCATIONS
791791
# instead.
792792
elif option_type == C.GIT_OPT_ADD_SSL_X509_CERT:
793-
raise NotImplementedError("Use GIT_OPT_SET_SSL_CERT_LOCATIONS instead")
793+
raise NotImplementedError('Use GIT_OPT_SET_SSL_CERT_LOCATIONS instead')
794794

795795
# Not implemented - SET_ALLOCATOR is not feasible from Python level
796796
# because it requires providing C function pointers for memory management
797797
# (malloc, free, etc.) that must handle raw memory at the C level,
798798
# which cannot be safely implemented in pure Python.
799799
elif option_type == C.GIT_OPT_SET_ALLOCATOR:
800-
raise NotImplementedError("Setting a custom allocator not possible from Python")
800+
raise NotImplementedError('Setting a custom allocator not possible from Python')
801801

802802
else:
803803
raise ValueError(f'Invalid option {option_type}')

0 commit comments

Comments
 (0)