Skip to content

Commit

Permalink
fixup! Drop Python 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed Jan 2, 2025
1 parent 49a5de4 commit a191127
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions astor/string_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def pretty_string(s, embedded, current_line, min_trip_str=20, max_line=100):

default = repr(s)

# Punt on abnormal strings
if isinstance(s, str):
return default
if isinstance(s, bytes):
if not isinstance(s, str):
return 'b' + default

len_s = len(default)
Expand Down

0 comments on commit a191127

Please sign in to comment.