File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed
Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def rawify_url(url):
2020 # Proceed with making the call without authenticating -- stricter rate limits apply
2121 pass
2222 else :
23- headers .update ({"Authorization" : f"Bearer { token } " })
23+ headers .update ({"Authorization" : f"Bearer { token } " })
2424
2525 try :
2626 response = requests .get (repos_api , headers = headers , timeout = 10 )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def read_from_url(url):
1515 # Proceed with making the call without authenticating -- stricter rate limits apply
1616 pass
1717 else :
18- headers .update ({"Authorization" : f"Bearer { token } " })
18+ headers .update ({"Authorization" : f"Bearer { token } " })
1919 response = requests .get (url_raw , headers = headers , timeout = 30 )
2020 if response .ok :
2121 return response .text
Original file line number Diff line number Diff line change @@ -138,19 +138,19 @@ def __init__(self, author):
138138 }
139139
140140 def _from_alias (self ):
141- return f"AU - { self ._author .get ('alias' ) } \n "
141+ return f"AU - { self ._author .get ('alias' )} \n "
142142
143143 def _from_given_and_last (self ):
144- return f"AU - { self ._get_full_last_name () } , { self ._author .get ('given-names' ) } \n "
144+ return f"AU - { self ._get_full_last_name ()} , { self ._author .get ('given-names' )} \n "
145145
146146 def _from_given (self ):
147- return f"AU - { self ._author .get ('given-names' ) } \n "
147+ return f"AU - { self ._author .get ('given-names' )} \n "
148148
149149 def _from_last (self ):
150- return f"AU - { self ._get_full_last_name () } \n "
150+ return f"AU - { self ._get_full_last_name ()} \n "
151151
152152 def _from_name (self ):
153- return f"AU - { self ._author .get ('name' ) } \n "
153+ return f"AU - { self ._author .get ('name' )} \n "
154154
155155 def as_string (self ):
156156 key = self ._get_key ()
Original file line number Diff line number Diff line change @@ -44,24 +44,24 @@ def __init__(self, cffobj):
4444 def _from_identifiers_url (self ):
4545 urls = self ._get_urls_from_identifiers ()
4646 if len (urls ) > 0 :
47- return f"url = { '{' + urls [0 ].get ('value' ) + '}' } "
47+ return f"url = {{ { urls [0 ].get ('value' )} } }"
4848 return None
4949
5050 def _from_repository (self ):
51- return f"url = { '{' + self ._cffobj .get ('repository' ) + '}' } "
51+ return f"url = {{ { self ._cffobj .get ('repository' )} } }"
5252
5353 def _from_repository_artifact (self ):
54- return f"url = { '{' + self ._cffobj .get ('repository-artifact' ) + '}' } "
54+ return f"url = {{ { self ._cffobj .get ('repository-artifact' )} } }"
5555
5656 def _from_repository_code (self ):
57- return f"url = { '{' + self ._cffobj .get ('repository-code' ) + '}' } "
57+ return f"url = {{ { self ._cffobj .get ('repository-code' )} } }"
5858
5959 @staticmethod
6060 def _from_thin_air ():
6161 return None
6262
6363 def _from_url (self ):
64- return f"url = { '{' + self ._cffobj .get ('url' ) + '}' } "
64+ return f"url = {{ { self ._cffobj .get ('url' )} } }"
6565
6666 def as_string (self ):
6767 key = "" .join ([
Original file line number Diff line number Diff line change @@ -44,24 +44,24 @@ def __init__(self, cffobj):
4444 def _from_identifiers_url (self ):
4545 urls = self ._get_urls_from_identifiers ()
4646 if len (urls ) > 0 :
47- return f"UR - { urls [0 ].get ('value' ) } \n "
47+ return f"UR - { urls [0 ].get ('value' )} \n "
4848 return None
4949
5050 def _from_repository (self ):
51- return f"UR - { self ._cffobj .get ('repository' ) } \n "
51+ return f"UR - { self ._cffobj .get ('repository' )} \n "
5252
5353 def _from_repository_artifact (self ):
54- return f"UR - { self ._cffobj .get ('repository-artifact' ) } \n "
54+ return f"UR - { self ._cffobj .get ('repository-artifact' )} \n "
5555
5656 def _from_repository_code (self ):
57- return f"UR - { self ._cffobj .get ('repository-code' ) } \n "
57+ return f"UR - { self ._cffobj .get ('repository-code' )} \n "
5858
5959 @staticmethod
6060 def _from_thin_air ():
6161 return None
6262
6363 def _from_url (self ):
64- return f"UR - { self ._cffobj .get ('url' ) } \n "
64+ return f"UR - { self ._cffobj .get ('url' )} \n "
6565
6666 def as_string (self ):
6767 key = "" .join ([
You can’t perform that action at this time.
0 commit comments