diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/astrobase/hplc.py b/astrobase/hplc.py index <HASH>..<HASH> 100644 --- a/astrobase/hplc.py +++ b/astrobase/hplc.py @@ -22,6 +22,7 @@ import gzip import re import glob import sys +import shutil try: import cPickle as pickle @@ -591,7 +592,7 @@ def pklc_fovcatalog_objectinfo( lcdict['o...
hplc: added pklc_fovcatalog_objectinfo to fill in objectinfo
py
diff --git a/oracle/tests/test_oracle.py b/oracle/tests/test_oracle.py index <HASH>..<HASH> 100644 --- a/oracle/tests/test_oracle.py +++ b/oracle/tests/test_oracle.py @@ -31,6 +31,23 @@ def test__get_connection_instant_client(check, dd_run_check): service_check.assert_called_with(check.SERVICE_CHECK_NAME, chec...
Add oracle test (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from os import path setup( name='astrodbkit', - version='0.3.0', + version='0.3.0.post1', description='Astronomy database management using SQL and Python', url='https://github.com/BDNYC/a...
Updated to <I>.post1
py
diff --git a/cqlengine/tests/query/test_updates.py b/cqlengine/tests/query/test_updates.py index <HASH>..<HASH> 100644 --- a/cqlengine/tests/query/test_updates.py +++ b/cqlengine/tests/query/test_updates.py @@ -146,3 +146,16 @@ class QueryUpdateTests(BaseCassEngTestCase): text_set__remove={'foo'}) ...
Adds a test that removing something that's not in a set just fails quietly
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -110,8 +110,7 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -#html_theme = 'sphinx_rtd_theme' -html_theme = 'alabaster...
Updating sphinx theme again.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,13 +31,13 @@ except(IOError, ImportError): dist = setup( name = __package_name__, - version = "1.71", + version = "1.72", description = "Cython interface between the numpy arrays and the Matrix/Array cla...
Bumped version to <I>
py
diff --git a/tornado_json/requesthandlers.py b/tornado_json/requesthandlers.py index <HASH>..<HASH> 100644 --- a/tornado_json/requesthandlers.py +++ b/tornado_json/requesthandlers.py @@ -61,14 +61,6 @@ class APIHandler(BaseHandler, JSendMixin): :param status_code: HTTP status code """ self.cl...
Remove useless check for exc_info since it should always exist
py
diff --git a/gwpy/cli/qtransform.py b/gwpy/cli/qtransform.py index <HASH>..<HASH> 100644 --- a/gwpy/cli/qtransform.py +++ b/gwpy/cli/qtransform.py @@ -103,7 +103,7 @@ class Qtransform(CliProduct): self.my_ts = self.timeseries[0] self.title2 = '' - self.qxfrm_args['search'] = self.my_ts.dt.val...
cli.qtransform: fixed usage of search `search` kwarg for `TimeSeries.q_transform` is a one-sided window duration, meaning the search is actually `[gps-search, gps+search)`, so we need to pass `duration/2.` to search the entire `TimeSeries`
py
diff --git a/rackspace_monitoring/__init__.py b/rackspace_monitoring/__init__.py index <HASH>..<HASH> 100644 --- a/rackspace_monitoring/__init__.py +++ b/rackspace_monitoring/__init__.py @@ -1,2 +1,2 @@ __all__ = ['__version__'] -__version__ = '0.3.2' +__version__ = '0.3.4'
Update version to <I> to match releases made on PyPI
py
diff --git a/ppb/gomlib.py b/ppb/gomlib.py index <HASH>..<HASH> 100644 --- a/ppb/gomlib.py +++ b/ppb/gomlib.py @@ -1,7 +1,7 @@ """ The Game Object Model. """ -from collections import defaultdict +from collections import defaultdict, deque from collections.abc import Collection from typing import Hashable from typ...
gomlib: use deque instead of list for walk()
py
diff --git a/hypermap/aggregator/utils.py b/hypermap/aggregator/utils.py index <HASH>..<HASH> 100644 --- a/hypermap/aggregator/utils.py +++ b/hypermap/aggregator/utils.py @@ -582,9 +582,6 @@ def layer2dict(layer): # we can proceed safely bbox = [float(layer.bbox_x0), float(layer.bbox_y0), float(layer.bbox_x...
We dont need anymore to project to mercator the bbox as it is made at layer instance level
py
diff --git a/gns3server/modules/dynamips/hypervisor.py b/gns3server/modules/dynamips/hypervisor.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/dynamips/hypervisor.py +++ b/gns3server/modules/dynamips/hypervisor.py @@ -21,7 +21,6 @@ Represents a Dynamips hypervisor and starts/stops the associated Dynamips proce...
Keep Dynamips stdout log file in the project directory.
py
diff --git a/zimsoap/client.py b/zimsoap/client.py index <HASH>..<HASH> 100644 --- a/zimsoap/client.py +++ b/zimsoap/client.py @@ -526,7 +526,11 @@ class ZimbraAdminClient(ZimbraAbstractClient): return zobjects.Account.from_dict(resp) - def modify_account(self, account, key, val): + def modify_accoun...
change the interface so that modify_account can take multiple attributes
py
diff --git a/python/perspective/setup.py b/python/perspective/setup.py index <HASH>..<HASH> 100644 --- a/python/perspective/setup.py +++ b/python/perspective/setup.py @@ -54,7 +54,6 @@ requires_dev = [ "mock", "psutil", "pybind11>=2.4.0", - "pyarrow>=5.0.0", "pytest>=4.3.0", "pytest-cov>=2.6...
drop pyarrow dep for python package
py
diff --git a/easy_thumbnails/files.py b/easy_thumbnails/files.py index <HASH>..<HASH> 100644 --- a/easy_thumbnails/files.py +++ b/easy_thumbnails/files.py @@ -452,14 +452,18 @@ class Thumbnailer(File): def get_source_cache(self, create=False, update=False): if self.remote_source: return None ...
Avoid an extraneous query in some cases
py
diff --git a/tensorflow_probability/python/layers/variable_input.py b/tensorflow_probability/python/layers/variable_input.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/layers/variable_input.py +++ b/tensorflow_probability/python/layers/variable_input.py @@ -29,8 +29,8 @@ class VariableLayer(tf.kera...
Fix the docstring of the VariableLayer. If the kernel was eye, then this layer would implement f(x) = x + c, which it does not. PiperOrigin-RevId: <I>
py
diff --git a/alot/db/attachment.py b/alot/db/attachment.py index <HASH>..<HASH> 100644 --- a/alot/db/attachment.py +++ b/alot/db/attachment.py @@ -66,14 +66,14 @@ class Attachment(object): if os.path.isdir(path): if filename: basename = os.path.basename(filename) - ...
db/attachment: replace all caps name with PEP8 like name Using file_ instead of FILE still avoids shadowing the builtin, but also doesn't stand out so much.
py
diff --git a/dpark/schedule.py b/dpark/schedule.py index <HASH>..<HASH> 100644 --- a/dpark/schedule.py +++ b/dpark/schedule.py @@ -590,7 +590,8 @@ class DAGScheduler(Scheduler): return def submitStage(stage): - stage.submit_time = time.time() + if not stage.submit_time: + ...
Fix ui stage walltime.
py
diff --git a/lavalink/websocket.py b/lavalink/websocket.py index <HASH>..<HASH> 100644 --- a/lavalink/websocket.py +++ b/lavalink/websocket.py @@ -29,7 +29,7 @@ class WebSocket: @property def connected(self): """ Returns whether the websocket is connected to Lavalink. """ - return bool(self._w...
Might as well be a little explicit here
py
diff --git a/draco/run.py b/draco/run.py index <HASH>..<HASH> 100644 --- a/draco/run.py +++ b/draco/run.py @@ -78,7 +78,7 @@ def run_clingo( relax_hard=False, silence_warnings=False, debug=False, -) -> Tuple[str, str]: +) -> Tuple[bytes, bytes]: """ Run draco and return stderr and stdout "...
chore: fix mypy typings (#<I>)
py
diff --git a/src/collectors/ceph/ceph.py b/src/collectors/ceph/ceph.py index <HASH>..<HASH> 100644 --- a/src/collectors/ceph/ceph.py +++ b/src/collectors/ceph/ceph.py @@ -4,7 +4,7 @@ The CephCollector collects utilization info from the Ceph storage system. Documentation for ceph perf counters: -http://ceph.com/docs...
Update perf-counters url
py
diff --git a/trump/indexing.py b/trump/indexing.py index <HASH>..<HASH> 100644 --- a/trump/indexing.py +++ b/trump/indexing.py @@ -127,6 +127,8 @@ class DatetimeIndexImp(IndexImplementer): sqlatyp = DateTime def __init__(self, dfors, case, kwargs): + + self.data = dfors ...
Handle string based datetimes more explicitly
py
diff --git a/tests/test_models.py b/tests/test_models.py index <HASH>..<HASH> 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -450,6 +450,9 @@ class TestCoasterModels(unittest.TestCase): self.assertRaises(MultipleResultsFound, Container.query.one_or_none) def test_add_and_commit(self): +...
Test to confirm bad data errors are passed through
py
diff --git a/tests/fixed_point_test.py b/tests/fixed_point_test.py index <HASH>..<HASH> 100644 --- a/tests/fixed_point_test.py +++ b/tests/fixed_point_test.py @@ -21,14 +21,14 @@ class FixedPointTestCase(unittest.TestCase): connections is a list of tuples where the node at index 0 of the tuple has to be in t...
report the missing connection tuple when facing errors in assertInCfg method
py
diff --git a/neomodel/properties.py b/neomodel/properties.py index <HASH>..<HASH> 100644 --- a/neomodel/properties.py +++ b/neomodel/properties.py @@ -2,6 +2,7 @@ from neomodel.exception import InflateError, DeflateError from datetime import datetime from datetime import date import time +import pytz def valida...
Fix for inflate with tz
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,7 +16,7 @@ import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation roo...
Added repository directory to path so we ensure we're building the latest docs.
py
diff --git a/astroid/bases.py b/astroid/bases.py index <HASH>..<HASH> 100644 --- a/astroid/bases.py +++ b/astroid/bases.py @@ -143,8 +143,8 @@ def _infer_stmts(stmts, context, frame=None): continue context.lookupname = stmt._infer_name(frame, name) try: - for inferred in stmt.i...
Fix variable collision in _infer_stmts Was this causing any bugs? Hard to say.
py
diff --git a/python/thunder/rdds/series.py b/python/thunder/rdds/series.py index <HASH>..<HASH> 100644 --- a/python/thunder/rdds/series.py +++ b/python/thunder/rdds/series.py @@ -29,7 +29,6 @@ class Series(Data): index : array-like or one-dimensional list Values must be unique, same length as the arrays...
deleted errant line of code that was added
py
diff --git a/sc2common/__init__.py b/sc2common/__init__.py index <HASH>..<HASH> 100644 --- a/sc2common/__init__.py +++ b/sc2common/__init__.py @@ -17,3 +17,4 @@ See the License for the specific language governing permissions and limitations under the License. """ +from sc2common.__version__ import *
- ensured the version is readily importing when importing
py
diff --git a/R/tests/run.py b/R/tests/run.py index <HASH>..<HASH> 100755 --- a/R/tests/run.py +++ b/R/tests/run.py @@ -630,7 +630,7 @@ class RUnitRunner: continue for f in files: - if (not re.match(".*runit.*\.[rR]", f)): + if (not re.match(".*runit.*\.[rR]$...
Put a $ at the end of re.match check for runit.
py
diff --git a/tacacs_plus/authorization.py b/tacacs_plus/authorization.py index <HASH>..<HASH> 100644 --- a/tacacs_plus/authorization.py +++ b/tacacs_plus/authorization.py @@ -138,7 +138,10 @@ class TACACSAuthorizationReply(object): @property def valid(self): - return self.status == TAC_PLUS_AUTHOR_ST...
Fix #<I>. Both PASS_ADD and PASS_REPL are valid permitted auth
py
diff --git a/salt/modules/file.py b/salt/modules/file.py index <HASH>..<HASH> 100644 --- a/salt/modules/file.py +++ b/salt/modules/file.py @@ -4468,12 +4468,12 @@ def manage_file(name, # Only test the checksums on files with managed contents if source and not (not follow_symlinks and os.path.islink(...
Hash type fallback for file management Resolves #<I>
py
diff --git a/armet/connectors/sqlalchemy/resources.py b/armet/connectors/sqlalchemy/resources.py index <HASH>..<HASH> 100644 --- a/armet/connectors/sqlalchemy/resources.py +++ b/armet/connectors/sqlalchemy/resources.py @@ -174,6 +174,9 @@ class ModelResource(object): self.session.add(target) self.sess...
Refresh the target object to avoid inconsistencies with storage (In create)
py
diff --git a/fedmsg/core.py b/fedmsg/core.py index <HASH>..<HASH> 100644 --- a/fedmsg/core.py +++ b/fedmsg/core.py @@ -280,7 +280,6 @@ class FedMsgContext(object): else: self.c['gpg_signing_key'] = self.c['gpg_keys'][cert_index] - if self.c.get('sign_messages', False): ...
Small pep8 fix to make pep8.me happy
py
diff --git a/rounding/__init__.py b/rounding/__init__.py index <HASH>..<HASH> 100644 --- a/rounding/__init__.py +++ b/rounding/__init__.py @@ -1 +1,2 @@ -from rounding.stochastic import StochasticRound \ No newline at end of file +from rounding.stochastic import StochasticRound +from rounding.standard import StandardRo...
Adding StandardRound to package import.
py
diff --git a/authomatic/providers/oauth2.py b/authomatic/providers/oauth2.py index <HASH>..<HASH> 100644 --- a/authomatic/providers/oauth2.py +++ b/authomatic/providers/oauth2.py @@ -1121,6 +1121,20 @@ class Google(OAuth2): if not 'approval_prompt' in self.user_authorization_params: # And ...
Fixed an error when Google didn't accept client ID and secret in the access token request paramaeters and at the same time in the basic authorization header.
py
diff --git a/is_core/forms/widgets.py b/is_core/forms/widgets.py index <HASH>..<HASH> 100644 --- a/is_core/forms/widgets.py +++ b/is_core/forms/widgets.py @@ -373,5 +373,5 @@ class MultipleTextInput(forms.TextInput): ) def value_from_datadict(self, data, files, name): - value = super(MultipleText...
Fixed multiple text input should not split two times
py
diff --git a/menuconfig.py b/menuconfig.py index <HASH>..<HASH> 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -2021,10 +2021,11 @@ def _sorted_menu_comment_nodes(cached_nodes=[]): # with the menus first if not cached_nodes: - cached_nodes += sorted(_kconf.menus, - ke...
menuconfig: Simplify _sorted_menu_comment_nodes() Can use the same function for both sort keys, and the logic can be simplified a bit too. The += is deliberate, to do in-place modification.
py
diff --git a/tests/test_advanced.py b/tests/test_advanced.py index <HASH>..<HASH> 100755 --- a/tests/test_advanced.py +++ b/tests/test_advanced.py @@ -28,6 +28,8 @@ LANG = [ 'kn', 'ia', 'qu', 'ckb', 'mn', 'arz', ] +NOPAGE = 'aspofinwepobw' + WIKIS = [ 'commons.wikimedia.org', 'en.wikibooks.org', @@ -...
Check for NOPAGE in advanced tests.
py
diff --git a/O365/sharepoint.py b/O365/sharepoint.py index <HASH>..<HASH> 100644 --- a/O365/sharepoint.py +++ b/O365/sharepoint.py @@ -100,7 +100,7 @@ class Site(ApiComponent): _endpoints = { 'get_subsites': '/sites', 'get_lists': '/lists', - 'get_listbyname':'/lists/displayName' + ...
fixing the naming to match pep8
py
diff --git a/exchangelib/__init__.py b/exchangelib/__init__.py index <HASH>..<HASH> 100644 --- a/exchangelib/__init__.py +++ b/exchangelib/__init__.py @@ -27,7 +27,7 @@ __all__ = [ 'ItemId', 'Mailbox', 'Attendee', 'Room', 'RoomList', 'Body', 'HTMLBody', 'Q', 'SHALLOW', 'DEEP', - 'BASIC', 'DIGEST', 'NT...
The missing Python comma paid a visit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -258,7 +258,7 @@ def get_package_data(value): if '=' in line: # package name -- file globs or specs key, value = line.split('=') - prev = package_data[key.strip()] = value.split() ...
Force str for setuptools package_data key When configparser backport is installed on Python 2, the RawConfigParser uses unicode keys, which setuptools rejects when they are copied into the package_data dict. Fixes <URL>
py
diff --git a/src/toil/jobStores/fileJobStore.py b/src/toil/jobStores/fileJobStore.py index <HASH>..<HASH> 100644 --- a/src/toil/jobStores/fileJobStore.py +++ b/src/toil/jobStores/fileJobStore.py @@ -387,14 +387,14 @@ class FileJobStore(AbstractJobStore): raise else: ...
Update fileJobStore to resolve symlinks before creating a hard link
py
diff --git a/normandy/base/api/authentication.py b/normandy/base/api/authentication.py index <HASH>..<HASH> 100644 --- a/normandy/base/api/authentication.py +++ b/normandy/base/api/authentication.py @@ -1,5 +1,6 @@ from django.conf import settings from django.contrib.auth import get_user_model +from django.core.cache...
Cache the OIDC profile for <I> seconds
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,7 @@ import os # Mock modules for readthedocs.org support. MOCK_MODULES = [ 'glfw', + 'pg.glfw', ] class Mock(object):
ignore pg.glfw in docs
py
diff --git a/tests/corpus/io/test_voxforge.py b/tests/corpus/io/test_voxforge.py index <HASH>..<HASH> 100644 --- a/tests/corpus/io/test_voxforge.py +++ b/tests/corpus/io/test_voxforge.py @@ -108,12 +108,11 @@ class TestVoxforgeDownloader: 'http://someurl.com/some/download/dir/1337ad-20170321-hii.tgz' ...
Fix url mocking in voxforge test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,20 +1,22 @@ from setuptools import setup +import os.path +__dir__ = os.path.dirname(os.path.abspath(__file__)) setup( name='Crowd', license='GPL v3', - py_modules=['crowd',], + py_modules=['crowd'], ...
Fixed relative path to README in setup.py, plus pep8
py
diff --git a/python/ray/node.py b/python/ray/node.py index <HASH>..<HASH> 100644 --- a/python/ray/node.py +++ b/python/ray/node.py @@ -292,9 +292,10 @@ class Node: for key in set(env_dict.keys()).intersection( set(params_dict.keys())): - logger.warning("Autoscaler is o...
Close #<I> (Autoscaler is overriding your resource for same quantity) (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ else: setup( name='nodeconductor', - version='0.87.0', + version='0.88.0', author='OpenNode Team', author_email='info@opennodecloud.com', url='https://github.com/opennode/nodeconduct...
Preparing new release: <I>
py
diff --git a/charms/reactive/bus.py b/charms/reactive/bus.py index <HASH>..<HASH> 100644 --- a/charms/reactive/bus.py +++ b/charms/reactive/bus.py @@ -444,6 +444,13 @@ def _load_module(filepath): def _register_handlers_from_file(filepath): + no_exec_blacklist = ( + '.md', '.yaml', '.txt', '.ini', + ...
Blacklist common non-executable files Blacklist common non-executable files. I did a quick check on interfaces.juju.solutions to see what non-exec files are present in interface repos. I'm not sure if this is the best place for the no_exec_blacklist tuple since `charm build` is going to need the same list for its wa...
py
diff --git a/lib/svtplay_dl/utils/parser.py b/lib/svtplay_dl/utils/parser.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/parser.py +++ b/lib/svtplay_dl/utils/parser.py @@ -51,7 +51,7 @@ def parser(version): general = parser.add_argument_group() general.add_argument('--version', action='version', ...
parser: set output to None
py
diff --git a/asyncpg/cluster.py b/asyncpg/cluster.py index <HASH>..<HASH> 100644 --- a/asyncpg/cluster.py +++ b/asyncpg/cluster.py @@ -36,21 +36,6 @@ else: return name -if _system == 'Linux': - def ensure_dead_with_parent(): - import ctypes - import signal - - try: - PR_S...
Remove preexec_fn hack from test cluster management The hack is ugly, and the correct shutdown of the launched cluster is alreadye handled by the atexit hook installed by the test harness.
py
diff --git a/superset/views/sql_lab.py b/superset/views/sql_lab.py index <HASH>..<HASH> 100644 --- a/superset/views/sql_lab.py +++ b/superset/views/sql_lab.py @@ -60,6 +60,7 @@ class QueryView(SupersetModelView): edit_title = _('Edit Query') list_columns = ['username', 'database_name', 'status', 'start_time...
[query] Fix, remove not possible to order columns (#<I>)
py
diff --git a/aioinflux/serialization/datapoint.py b/aioinflux/serialization/datapoint.py index <HASH>..<HASH> 100644 --- a/aioinflux/serialization/datapoint.py +++ b/aioinflux/serialization/datapoint.py @@ -70,12 +70,12 @@ def _gen_parser(schema, meas, rm_none=False, extra_tags=None): ts = f"{{i['{k}']}}" ...
Transform NaT into 0 to avoid write error
py
diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py index <HASH>..<HASH> 100644 --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -1,4 +1,4 @@ -from bidict import bidict, orderedbidict, ValueDuplicationError, OVERWRITE +from bidict import bidict, orderedbidict, ValueDuplicationError import pyte...
test_overwriting_putall_withdup -> test_forceupdate_withdup
py
diff --git a/numina/core/pipeline.py b/numina/core/pipeline.py index <HASH>..<HASH> 100644 --- a/numina/core/pipeline.py +++ b/numina/core/pipeline.py @@ -126,11 +126,11 @@ class DrpSystem(object): if drpins.name == entryname: return True else: - msg = 'Entry na...
Improve the text format of the warnings
py
diff --git a/pmagpy/controlled_vocabularies3.py b/pmagpy/controlled_vocabularies3.py index <HASH>..<HASH> 100755 --- a/pmagpy/controlled_vocabularies3.py +++ b/pmagpy/controlled_vocabularies3.py @@ -40,13 +40,13 @@ class Vocabulary(object): ## Get method codes def get_meth_codes(self): - try: - ...
in controlled_vocabularies3 use cached method codes for now — something is weird with the earthref ones. addresses #<I> (but doesn’t actually fix it permanently)
py
diff --git a/python_jsonschema_objects/wrapper_types.py b/python_jsonschema_objects/wrapper_types.py index <HASH>..<HASH> 100644 --- a/python_jsonschema_objects/wrapper_types.py +++ b/python_jsonschema_objects/wrapper_types.py @@ -64,9 +64,7 @@ class ArrayWrapper(collections.MutableSequence): """ Holds a typed...
Fix <I> (after a fashion). Remove the extraneous check ArrayWrappers implement collections.Sequence. As such, they don't need special handling on initialization. In addition, they do lots of validation when handed a new object. Short-circuiting that is just a bad idea..
py
diff --git a/dipper/models/assoc/Association.py b/dipper/models/assoc/Association.py index <HASH>..<HASH> 100644 --- a/dipper/models/assoc/Association.py +++ b/dipper/models/assoc/Association.py @@ -43,7 +43,7 @@ class Assoc: 'has_subject': 'OBAN:association_has_subject', 'has_object': 'OBAN:associati...
delete surplus zeropadding from IAO:<I>
py
diff --git a/imutils/face_utils/__init__.py b/imutils/face_utils/__init__.py index <HASH>..<HASH> 100644 --- a/imutils/face_utils/__init__.py +++ b/imutils/face_utils/__init__.py @@ -1,6 +1,7 @@ # import the necessary packages -from .helpers import FACIAL_LANDMARKS_IDXS +from .helpers import FACIAL_LANDMARKS_68_IDXS +...
Added support for Dlib’s 5-point facial landmark detector
py
diff --git a/samp-server-cli.py b/samp-server-cli.py index <HASH>..<HASH> 100755 --- a/samp-server-cli.py +++ b/samp-server-cli.py @@ -137,6 +137,18 @@ def run(options): options.update(config_options) del options['config'] + plugins = options['plugins'] + print 'plugins:', plugins + if plugins is not None...
Add support for extension-less plugin names
py
diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py index <HASH>..<HASH> 100644 --- a/tsfresh/feature_extraction/feature_calculators.py +++ b/tsfresh/feature_extraction/feature_calculators.py @@ -584,7 +584,7 @@ def mean_abs_change(x): .. math:: - ...
Fix denominator in docstring for mean_abs_change (#<I>) Mean absolute change is over the differences of consecutive values, so the denominator should be `n-1`, not `n`. Numpy `diff` confirms this, e.g. ``` >>> x = np.array([1, 2, 4, 7, 0]) >>> np.diff(x) array([ 1, 2, 3, -7]) ```
py
diff --git a/bigchaindb/processes.py b/bigchaindb/processes.py index <HASH>..<HASH> 100644 --- a/bigchaindb/processes.py +++ b/bigchaindb/processes.py @@ -11,9 +11,10 @@ logger = logging.getLogger(__name__) BANNER = """ **************************************************************************** * ...
Changed BANNER message & link so it doesn't point to Apiary any more
py
diff --git a/hagelslag/processing/EnsembleProducts.py b/hagelslag/processing/EnsembleProducts.py index <HASH>..<HASH> 100644 --- a/hagelslag/processing/EnsembleProducts.py +++ b/hagelslag/processing/EnsembleProducts.py @@ -156,7 +156,7 @@ class MachineLearningEnsembleProducts(EnsembleProducts): del...
Edited MachineLearningEnsembleProducts to extract mean of sampled hail sizes for neighborhood probabilities.
py
diff --git a/tools/c7n_azure/tests/azure_common.py b/tools/c7n_azure/tests/azure_common.py index <HASH>..<HASH> 100644 --- a/tools/c7n_azure/tests/azure_common.py +++ b/tools/c7n_azure/tests/azure_common.py @@ -55,6 +55,11 @@ class AzureVCRBaseTest(VCRTestCase): myvcr = super(VCRTestCase, self)._get_vcr(**kwar...
azure - block cassette recording during testing (#<I>)
py
diff --git a/osbs/http.py b/osbs/http.py index <HASH>..<HASH> 100644 --- a/osbs/http.py +++ b/osbs/http.py @@ -307,7 +307,7 @@ class PycurlAdapter(object): sel = curl_multi.select(SELECT_TIMEOUT) # returns number if sel == -1: raise OsbsException("error during sel...
Really silence pylint's unused-variables message here. An alternative would be to create a .pylintrc file with this content: [VARIABLES] dummy-variables-rgx=_
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup(name='tftpy', 'Environment :: Console', 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: Developers', - 'License :: OSI-Approved Open Source :: MIT License...
Fixing the license in the setup.py
py
diff --git a/pliers/extractors/api/indico.py b/pliers/extractors/api/indico.py index <HASH>..<HASH> 100644 --- a/pliers/extractors/api/indico.py +++ b/pliers/extractors/api/indico.py @@ -11,6 +11,7 @@ from pliers.transformers import BatchTransformerMixin from pliers.transformers.api import APITransformer from pliers....
IndicoIO doesn't play well with imageio Images
py
diff --git a/geomdl/Abstract.py b/geomdl/Abstract.py index <HASH>..<HASH> 100644 --- a/geomdl/Abstract.py +++ b/geomdl/Abstract.py @@ -54,11 +54,10 @@ class Curve(object): Evaluators allow users to use different algorithms for B-Spline and NURBS evaluations. Please see the documentation on ``Evaluator...
Let the user know the Evaluator name
py
diff --git a/tests/test_units.py b/tests/test_units.py index <HASH>..<HASH> 100644 --- a/tests/test_units.py +++ b/tests/test_units.py @@ -137,6 +137,26 @@ class TestUnits(): with pytest.raises(HydraError): dimension = hb.get_unit_dimension('not-existing-unit') + def test_get_dimension_by_uni...
added the test for the new method hb.get_dimension_by_unit_id
py
diff --git a/mtspec/tests/test_multitaper.py b/mtspec/tests/test_multitaper.py index <HASH>..<HASH> 100644 --- a/mtspec/tests/test_multitaper.py +++ b/mtspec/tests/test_multitaper.py @@ -349,7 +349,7 @@ class MtSpecTestCase(unittest.TestCase): one_hz_sin = np.tile(one_hz_sin, npts//sampling_rate + 1)[:npts] ...
Fixing numpy warning related to integer division
py
diff --git a/salt/modules/sqlite3.py b/salt/modules/sqlite3.py index <HASH>..<HASH> 100644 --- a/salt/modules/sqlite3.py +++ b/salt/modules/sqlite3.py @@ -16,7 +16,7 @@ except ImportError: def __virtual__(): if not HAS_SQLITE3: return False - return 'sqlite3' + return True def _connect(db=None...
Not renaming, return a boolean in `__virtual__()`.
py
diff --git a/friction/library.py b/friction/library.py index <HASH>..<HASH> 100644 --- a/friction/library.py +++ b/friction/library.py @@ -118,7 +118,7 @@ class Library: class Doujin: def scan_dir(self, path, recursive): - for f in os.scandir(path): + for f in sorted(os.scandir(path), key=lambda d...
oh right linux doesn't sort directory listings
py
diff --git a/src/collectors/postfix/postfix.py b/src/collectors/postfix/postfix.py index <HASH>..<HASH> 100644 --- a/src/collectors/postfix/postfix.py +++ b/src/collectors/postfix/postfix.py @@ -25,11 +25,7 @@ import diamond.collector from diamond.collector import str_to_bool -if sys.version_info < (2, 6): - fr...
Remove unsupported Python < <I>
py
diff --git a/doctr/local.py b/doctr/local.py index <HASH>..<HASH> 100644 --- a/doctr/local.py +++ b/doctr/local.py @@ -404,9 +404,11 @@ def check_repo_exists(deploy_repo, service='github', *, auth=None, service = 'travis-ci.com' if not r_active: - raise RuntimeError('"{user}/{repo}" not f...
Add a note about private repos with --no-auth
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ This is a pure Python library. py_modules=['imagesize'], test_suite='test', python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", + install_requires=['requests',], classif...
Update to handle in-memory filelike objects
py
diff --git a/sos/report/plugins/sapnw.py b/sos/report/plugins/sapnw.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/sapnw.py +++ b/sos/report/plugins/sapnw.py @@ -129,6 +129,12 @@ class sapnw(Plugin, RedHatPlugin): self.collect_list_dbs() # run sapconf in check mode - self.add_cmd_out...
[sapnw] call sapconf only when a limits.d file exists sapconf command creates /etc/security/limits.d/<I>-sap-limits.conf on its own when missing, so calling the command must be gated by a predicate testing the file presence. Resolves: #<I>
py
diff --git a/WrightTools/artists/_base.py b/WrightTools/artists/_base.py index <HASH>..<HASH> 100644 --- a/WrightTools/artists/_base.py +++ b/WrightTools/artists/_base.py @@ -215,7 +215,7 @@ class Axes(matplotlib.axes.Axes): signed = False kwargs = self._parse_limits(zi=args[2], dynamic_range=...
axes methods return (#<I>)
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -153,6 +153,12 @@ class GrequestsCase(unittest.TestCase): list(grequests.imap(reqs, exception_handler=eh.callback)) self.assertEqual(eh.counter, 1) + def test_map_inputs_match_outputs_with_exception(self...
add test to illustrate @agsimeonov's digression from <I> in map response
py
diff --git a/isso/views/comments.py b/isso/views/comments.py index <HASH>..<HASH> 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -1074,7 +1074,8 @@ class API(object): def login(self, env, req): if not self.isso.conf.getboolean("admin", "enabled"): - return render_template...
Fix rendering of disabled.html for 'Sub URI' sites (#<I>) The disabled.html template uses the isso_host_script variable, but that variable was not being passed when rendering that template file.
py
diff --git a/djangochannelsrestframework/mixins.py b/djangochannelsrestframework/mixins.py index <HASH>..<HASH> 100644 --- a/djangochannelsrestframework/mixins.py +++ b/djangochannelsrestframework/mixins.py @@ -19,6 +19,15 @@ class ListModelMixin: @action() def list(self, **kwargs): queryset = self.f...
added pagination to `ListModelMixin`
py
diff --git a/pyrtl/compilesim.py b/pyrtl/compilesim.py index <HASH>..<HASH> 100644 --- a/pyrtl/compilesim.py +++ b/pyrtl/compilesim.py @@ -216,9 +216,13 @@ class CompiledSimulation(object): self._dir = tempfile.mkdtemp() with open(path.join(self._dir, 'pyrtlsim.c'), 'w') as f: self._creat...
macOS support for CompiledSim, hopefully
py
diff --git a/tests/scripts/examples/sql_coverage/regression-config.py b/tests/scripts/examples/sql_coverage/regression-config.py index <HASH>..<HASH> 100644 --- a/tests/scripts/examples/sql_coverage/regression-config.py +++ b/tests/scripts/examples/sql_coverage/regression-config.py @@ -185,7 +185,7 @@ "advanced-ma...
regression-config.py: updated one more test suite, advanced-matview-nonjoin, to use the new nulls-lowest-normalizer.py, to avoid mismatches caused by the new code that does not re-sort, e.g., ORDER BY 1 DESC.
py
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index <HASH>..<HASH> 100755 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -3401,7 +3401,7 @@ def main(args: Union[List[str]] = None, stdout: TextIO = sys.stdout) -> int: except Exception as err: # TODO: We can'...
Fix exception checking for exit_code (#<I>) Otherwise an AttributeError is raised instead of the correct exception
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,12 @@ setup_args = { "long_description": long_description, "long_description_content_type": "text/markdown", "url": "https://github.com/scoutapp/scout_apm_python", + "project_urls": { + "Docu...
Add project_urls links (#<I>) These links appear on the sidebar on PyPI and help surface relevant places to go to users.
py
diff --git a/openquake/hazardlib/gsim/somerville_2009.py b/openquake/hazardlib/gsim/somerville_2009.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/gsim/somerville_2009.py +++ b/openquake/hazardlib/gsim/somerville_2009.py @@ -56,7 +56,7 @@ class SomervilleEtAl2009NonCratonic(GMPE): ]) #: no site pa...
not really necessary, but that's it Former-commit-id: <I>c<I>a<I>b3d4a<I>df7aa<I>efd9ffd<I>f<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup( author_email="philip.graham.jones@googlemail.com", license="MIT", classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "Environment ...
Update development status classifier to Beta These don't mean much to me, but Alpha is misleading at this stage of development.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -125,8 +125,8 @@ def get_version_info(): vinfo = _version_helper.generate_git_version_info() except: vinfo = vdummy() - vinfo.version = '1.18.dev1' - vinfo.release = 'False' + vinfo....
Set for release <I> (#<I>)
py
diff --git a/tango/test_context.py b/tango/test_context.py index <HASH>..<HASH> 100644 --- a/tango/test_context.py +++ b/tango/test_context.py @@ -339,8 +339,9 @@ class MultiDeviceTestContext(object): # Open the file with open(self.db, "a") as f: f.write("/".join((server, instance, "DEVIC...
Fix case with multiple devices of the same class Multiple devices of the same class must be written in the database file in the same line, comma-separated. Fix it.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '2.0a4' +version = '2.0a5' LONG_DESCRIPTION = """ Using django-avatar
Bumped to <I>a5.
py
diff --git a/datascience/maps.py b/datascience/maps.py index <HASH>..<HASH> 100644 --- a/datascience/maps.py +++ b/datascience/maps.py @@ -56,7 +56,8 @@ class MapPoint: 'radius': radius, 'popup': popup, 'line_color': line_color, - 'fill_color': fill_color + '...
Forgot to include fill_opacity in attributes
py
diff --git a/tests/integration/modules/grains.py b/tests/integration/modules/grains.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/grains.py +++ b/tests/integration/modules/grains.py @@ -79,7 +79,7 @@ class TestModulesGrains(integration.ModuleCase): 'grains.setval', ...
put a sleep back on grains.setval test for new jenkins stuff
py
diff --git a/metal/utils.py b/metal/utils.py index <HASH>..<HASH> 100644 --- a/metal/utils.py +++ b/metal/utils.py @@ -1,4 +1,5 @@ from collections import defaultdict +import copy import random import numpy as np @@ -52,8 +53,8 @@ class Checkpointer(object): if is_best: if self.verbos...
Fix bug in Checkpointer where best_model was saved as shallow copy
py
diff --git a/kalibro_client/miscellaneous/native_metric.py b/kalibro_client/miscellaneous/native_metric.py index <HASH>..<HASH> 100644 --- a/kalibro_client/miscellaneous/native_metric.py +++ b/kalibro_client/miscellaneous/native_metric.py @@ -3,8 +3,8 @@ from kalibro_client.miscellaneous import Metric class NativeMe...
Changed NativeMetric type default to be clearer
py
diff --git a/napalm_base/test/base.py b/napalm_base/test/base.py index <HASH>..<HASH> 100644 --- a/napalm_base/test/base.py +++ b/napalm_base/test/base.py @@ -242,7 +242,7 @@ class TestGettersNetworkDriver: self.assertTrue(result) - def test_bgp_neighbors_detail(self): + def test_get_bgp_neighbors_de...
Renamed test_get_bgp_neighbors_detail for consistency
py
diff --git a/emma2/util/tests/pystallone_test.py b/emma2/util/tests/pystallone_test.py index <HASH>..<HASH> 100644 --- a/emma2/util/tests/pystallone_test.py +++ b/emma2/util/tests/pystallone_test.py @@ -96,6 +96,7 @@ class TestPyStallone(unittest.TestCase): b = st.stallone_array_to_ndarray(a) self.com...
[pystallone] mark direct buffer array test as expected failure
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setuptools.setup( "Operating System :: Microsoft :: Windows", "Development Status :: 5 - Production/Stable", ], - install_requires = ['cython> = 0.28', 'numpy> = 1.14', 'mud-py> = 1.2.6...
Fixed install_requires strings
py
diff --git a/canvasapi/login.py b/canvasapi/login.py index <HASH>..<HASH> 100644 --- a/canvasapi/login.py +++ b/canvasapi/login.py @@ -4,6 +4,9 @@ from canvasapi.util import combine_kwargs class Login(CanvasObject): + def __str__(self): + return "{} ({})".format(self.id, self.unique_id) + def delete...
move str method to the top of the class
py
diff --git a/fbchat/client.py b/fbchat/client.py index <HASH>..<HASH> 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -498,7 +498,7 @@ class Client(object): :param image: path to a local image to send """ mimetype = guess_type(image)[0] - image_id = self.uploadImage({'file': (i...
Added python3 support Without this, it crashes with a `UnicodeDecodeError`
py
diff --git a/bakery/models.py b/bakery/models.py index <HASH>..<HASH> 100644 --- a/bakery/models.py +++ b/bakery/models.py @@ -6,7 +6,6 @@ The magic relies on your view being class-based and having a build_object method, like the BuildableDetailView included in this app. """ from django.db import models -from django...
Let's not use atomic out of superstition for #<I>.
py