Skip to content

Commit ab9fc89

Browse files
authored
refactor: Removed the unicode designator on strings that was needed when supporting Python2. (#212)
* refactor: Removed the unicode designator on strings that was needed when supporting Python2
1 parent 3187272 commit ab9fc89

File tree

2 files changed

+1165
-1165
lines changed

2 files changed

+1165
-1165
lines changed

jinja2/slurm.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ cdef inline stringOrNone(char* value, value2):
8686
if value is NULL:
8787
if value2 is '':
8888
return None
89-
return u"%s" % value2
90-
return u"%s" % value.decode("UTF-8", "replace")
89+
return "%s" % value2
90+
return "%s" % value.decode("UTF-8", "replace")
9191

9292

9393
cdef inline int16orNone(uint16_t value):
@@ -116,7 +116,7 @@ cdef inline int16orUnlimited(uint16_t value, return_type):
116116
if return_type is "int":
117117
return None
118118
else:
119-
return u"UNLIMITED"
119+
return "UNLIMITED"
120120
else:
121121
if return_type is "int":
122122
return value
@@ -126,8 +126,8 @@ cdef inline int16orUnlimited(uint16_t value, return_type):
126126

127127
cdef inline boolToString(int value):
128128
if value == 0:
129-
return u'False'
130-
return u'True'
129+
return 'False'
130+
return 'True'
131131

132132

133133
cdef extern char **environ

0 commit comments

Comments
 (0)