mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Rewrite asserts
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ class Github:
|
||||
return status
|
||||
|
||||
def __rawRequest( self, verb, url, input ):
|
||||
assert( verb in [ "HEAD", "GET", "POST", "PATCH", "PUT", "DELETE" ] )
|
||||
assert verb in [ "HEAD", "GET", "POST", "PATCH", "PUT", "DELETE" ]
|
||||
|
||||
b64_userpass = base64.b64encode( '%s:%s' % ( self.__login, self.__password ) )
|
||||
b64_userpass = b64_userpass.replace( '\n', '' )
|
||||
|
||||
Reference in New Issue
Block a user