Skip to content

Commit 3f8d244

Browse files
mmaterarocky
authored andcommitted
tidy up
1 parent a0a15ef commit 3f8d244

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

mathics/builtin/files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4914,7 +4914,7 @@ def apply(self, context, evaluation):
49144914
'Needs[context_String]'
49154915
contextstr = context.get_string_value()
49164916
if contextstr == "":
4917-
return Symbol("Null")
4917+
return SymbolNull
49184918
if contextstr[0]=="`":
49194919
curr_ctxt = evaluation.definitions.get_current_context()
49204920
contextstr = curr_ctxt + contextstr[1:]
@@ -4936,7 +4936,7 @@ def apply(self, context, evaluation):
49364936
Symbol('System`$Packages'), context)
49374937
already_loaded = already_loaded.evaluate(evaluation).is_true()
49384938
if already_loaded:
4939-
return Symbol('Null')
4939+
return SymbolNull
49404940

49414941
result = Expression('Get', context).evaluate(evaluation)
49424942

mathics/core/definitions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ def get_package_names(self) -> typing.List[str]:
395395
packages = [c.get_string_value() for c in packages.leaves]
396396
return packages
397397

398-
399-
400398
#return sorted({name.split("`")[0] for name in self.get_names()})
401399

402400
def shorten_name(self, name_with_ctx) -> str:

0 commit comments

Comments
 (0)