File tree Expand file tree Collapse file tree 2 files changed +25
-20
lines changed Expand file tree Collapse file tree 2 files changed +25
-20
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,13 @@ looking for a quick way to help out.
18
18
19
19
```
20
20
21
- - Specify the pandas version used and those of it's dependencies. You can simply include the output of
22
- [ ` ci/print_versions.py ` ] ( https://github.com/pydata/pandas/blob/master/ci/print_versions.py ) .
21
+ - Include the full version string of pandas and it's dependencies:
22
+
23
+ ``` python
24
+ >> > from pandas.util.print_versions import show_versions
25
+ >> > show_versions()
26
+ ```
27
+
23
28
- Explain what the expected behavior was, and what you saw instead.
24
29
25
30
# ### Pull Requests
Original file line number Diff line number Diff line change 8
8
def get_sys_info ():
9
9
"Returns system information as a dict"
10
10
11
+ blob = []
12
+
11
13
# get full commit hash
12
14
commit = None
13
- try :
14
- pipe = subprocess .Popen ('git log --format="%H" -n 1' .split (" " ),
15
- stdout = subprocess .PIPE , stderr = subprocess .PIPE )
16
- so , serr = pipe .communicate ()
17
- except :
18
- pass
19
- else :
20
- if pipe .returncode == 0 :
21
- commit = so
22
- try :
23
- commit = so .decode ('utf-8' )
24
- except ValueError :
25
- pass
26
- commit = commit .strip ().strip ('"' )
27
-
28
- # list of tuples over dict because OrderedDict not in 2.6, least
29
- # resistance.
30
- blob = []
15
+ if os .path .isdir (".git" ) and os .path .isdir ("pandas" ):
16
+ try :
17
+ pipe = subprocess .Popen ('git log --format="%H" -n 1' .split (" " ),
18
+ stdout = subprocess .PIPE , stderr = subprocess .PIPE )
19
+ so , serr = pipe .communicate ()
20
+ except :
21
+ pass
22
+ else :
23
+ if pipe .returncode == 0 :
24
+ commit = so
25
+ try :
26
+ commit = so .decode ('utf-8' )
27
+ except ValueError :
28
+ pass
29
+ commit = commit .strip ().strip ('"' )
30
+
31
31
blob .append (('commit' , commit ))
32
32
33
33
try :
You can’t perform that action at this time.
0 commit comments