Skip to content

Commit

Permalink
Add utility function that nbmolviz expects
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Aug 25, 2017
1 parent d8da718 commit c232bca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions moldesign/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@
import future.utils

from functools import reduce
import contextlib
import fractions
import operator
import os
import re
import string
import sys
import tempfile
from html.parser import HTMLParser
from io import StringIO
from uuid import uuid4


def make_none(*args, **kwargs):
return None

def if_not_none(item, default):
""" Equivalent to `item if item is not None else default` """
Expand Down

0 comments on commit c232bca

Please sign in to comment.