Skip to content

Commit

Permalink
removed use of unicode type, absorbed by type str in python3
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Jul 13, 2022
1 parent d265638 commit 1f2afe6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion github/WorkflowRun.py
Expand Up @@ -308,7 +308,7 @@ def _useAttributes(self, attributes):
if "event" in attributes: # pragma no branch
self._event = self._makeStringAttribute(attributes["event"])
if "run_started_at" in attributes: # pragma no branch
assert attributes["run_started_at"] is None or isinstance(attributes["run_started_at"], (str, unicode)), attributes["run_started_at"]
assert attributes["run_started_at"] is None or isinstance(attributes["run_started_at"], str), attributes["run_started_at"]
self._run_started_at = self._makeDatetimeAttribute(attributes["run_started_at"])
if "status" in attributes: # pragma no branch
self._status = self._makeStringAttribute(attributes["status"])
Expand Down
2 changes: 1 addition & 1 deletion scripts/add_attribute.py
Expand Up @@ -55,7 +55,7 @@
),
"datetime": (
"datetime.datetime",
"(str, unicode)",
"str",
'self._makeDatetimeAttribute(attributes["' + attributeName + '"])',
),
"class": (
Expand Down
4 changes: 2 additions & 2 deletions tests/ReplayData/ExposeAllAttributes.testAllClasses.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/ReplayData/PullRequest.testGetFiles.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/ReplayData/PullRequestFile.setUp.txt

Large diffs are not rendered by default.

0 comments on commit 1f2afe6

Please sign in to comment.