mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Add tests about issue #54, according to comments by @bilderbuchi
This commit is contained in:
@@ -50,7 +50,7 @@ class BasicGithubObject( object ):
|
||||
@staticmethod
|
||||
def _parseTimezone( s ):
|
||||
assert len( s ) == 25
|
||||
return int( s[ 19 : 22 ] ) + int( s[ 23 : 25 ] ) / 60.
|
||||
return ( -1 if s[ 19 ] == '-' else 1 ) * datetime.timedelta( hours = int( s[ 20 : 22 ] ), minutes = int( s[ 23 : 25 ] ) )
|
||||
|
||||
class GithubObject( BasicGithubObject ):
|
||||
def __init__( self, requester, attributes, completed ):
|
||||
|
||||
Reference in New Issue
Block a user