Show More
@@ -722,10 +722,7 b' def checknlink(testfile):' | |||||
722 |
|
722 | |||
723 | try: |
|
723 | try: | |
724 | os_link(testfile, f) |
|
724 | os_link(testfile, f) | |
725 |
except OSError |
|
725 | except OSError: | |
726 | if inst.errno == errno.EINVAL: |
|
|||
727 | # FS doesn't support creating hardlinks |
|
|||
728 | return True |
|
|||
729 | return False |
|
726 | return False | |
730 |
|
727 | |||
731 | try: |
|
728 | try: | |
@@ -1026,6 +1023,9 b" def datestr(date=None, format='%a %b %d " | |||||
1026 | number of seconds away from UTC. if timezone is false, do not |
|
1023 | number of seconds away from UTC. if timezone is false, do not | |
1027 | append time zone to string.""" |
|
1024 | append time zone to string.""" | |
1028 | t, tz = date or makedate() |
|
1025 | t, tz = date or makedate() | |
|
1026 | if t < 0: | |||
|
1027 | t = 0 # time.gmtime(lt) fails on Windows for lt < -43200 | |||
|
1028 | tz = 0 | |||
1029 | if "%1" in format or "%2" in format: |
|
1029 | if "%1" in format or "%2" in format: | |
1030 | sign = (tz > 0) and "-" or "+" |
|
1030 | sign = (tz > 0) and "-" or "+" | |
1031 | minutes = abs(tz) // 60 |
|
1031 | minutes = abs(tz) // 60 |
General Comments 0
You need to be logged in to leave comments.
Login now