55# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66
77import os
8- import os .path
98import sys
109import select
1110import logging
@@ -213,11 +212,11 @@ def _deplete_buffer(fno, handler, buf_list, wg=None):
213212
214213def dashify (string ):
215214 return string .replace ('_' , '-' )
216-
215+
217216
218217def slots_to_dict (self , exclude = ()):
219218 return dict ((s , getattr (self , s )) for s in self .__slots__ if s not in exclude )
220-
219+
221220
222221def dict_to_slots_and__excluded_are_none (self , d , excluded = ()):
223222 for k , v in d .items ():
@@ -246,15 +245,15 @@ class Git(LazyMixin):
246245 """
247246 __slots__ = ("_working_dir" , "cat_file_all" , "cat_file_header" , "_version_info" ,
248247 "_git_options" , "_environment" )
249-
248+
250249 _excluded_ = ('cat_file_all' , 'cat_file_header' , '_version_info' )
251-
250+
252251 def __getstate__ (self ):
253252 return slots_to_dict (self , exclude = self ._excluded_ )
254-
253+
255254 def __setstate__ (self , d ):
256255 dict_to_slots_and__excluded_are_none (self , d , excluded = self ._excluded_ )
257-
256+
258257 # CONFIGURATION
259258 # The size in bytes read from stdout when copying git's output to another stream
260259 max_chunk_size = 1024 * 64
@@ -267,7 +266,7 @@ def __setstate__(self, d):
267266
268267 # value of Windows process creation flag taken from MSDN
269268 CREATE_NO_WINDOW = 0x08000000
270-
269+
271270 # Provide the full path to the git executable. Otherwise it assumes git is in the path
272271 _git_exec_env_var = "GIT_PYTHON_GIT_EXECUTABLE"
273272 GIT_PYTHON_GIT_EXECUTABLE = os .environ .get (_git_exec_env_var , git_exec_name )
@@ -339,7 +338,7 @@ def wait(self, stderr=b''):
339338 if stderr is None :
340339 stderr = b''
341340 stderr = force_bytes (stderr )
342-
341+
343342 status = self .proc .wait ()
344343
345344 def read_all_from_possibly_closed_stream (stream ):
0 commit comments