diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/rootpy/root2hdf5.py b/rootpy/root2hdf5.py index <HASH>..<HASH> 100644 --- a/rootpy/root2hdf5.py +++ b/rootpy/root2hdf5.py @@ -12,6 +12,7 @@ import tables import warnings from root_numpy import tree2rec, RootNumpyUnconvertibleWarning +from numpy.lib import recfunctions from .io import root_open, Temp...
fix new TypeError from NumPy <I> with __getitem__ using field lists on arrays with object columns
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -18,7 +18,6 @@ INSTALLED_APPS = [ ] MIDDLEWARE_CLASSES = ( - "django.middleware.common.BrokenLinkEmailsMiddleware", "django.middleware.common.CommonMiddleware", "django.cont...
Remove BrokenLinksMiddleware
py
diff --git a/testrail/api.py b/testrail/api.py index <HASH>..<HASH> 100644 --- a/testrail/api.py +++ b/testrail/api.py @@ -233,6 +233,13 @@ class API(object): except IndexError: raise TestRailError("Case ID '%s' was not found" % case_id) + def add_case(self, case): + fields = ['title',...
adding add_cases and (b/c add_cases call requires section_id instead of project_id) adding add_section to api.py
py
diff --git a/varlink/__init__.py b/varlink/__init__.py index <HASH>..<HASH> 100644 --- a/varlink/__init__.py +++ b/varlink/__init__.py @@ -828,10 +828,8 @@ class Interface: if varlink_struct: if isinstance(varlink_struct, dict): if name not in varlink_struct: - ...
don't error out on missing fields
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,8 @@ class PyTest(TestCommand): sys.exit(errno) setup( - name="halp", - packages=["halp", "tests", "examples"], + name="hypergraph", + packages=["hypergraph", "tests", "examples"], versio...
Temporary change, because Yaser is needy.
py
diff --git a/galpy/orbit/Orbits.py b/galpy/orbit/Orbits.py index <HASH>..<HASH> 100644 --- a/galpy/orbit/Orbits.py +++ b/galpy/orbit/Orbits.py @@ -450,6 +450,9 @@ class Orbit(object): equivalencies=units.dimensionless_angles()).value/self._vo vz= vxvvg.d_z.to(units.km/units.s).value/se...
Make sure radec=lb=False with SkyCoord initialization, fixes #<I>
py
diff --git a/molecule/driver/docker.py b/molecule/driver/docker.py index <HASH>..<HASH> 100644 --- a/molecule/driver/docker.py +++ b/molecule/driver/docker.py @@ -37,6 +37,7 @@ class Docker(base.Base): variables from ``molecule.yml`` into ``create.yml`` and ``destroy.yml``. .. _`docker_container`: http://do...
Explicitly call out commonly needed fields to run systemd in docker PR #<I>
py
diff --git a/retext.py b/retext.py index <HASH>..<HASH> 100755 --- a/retext.py +++ b/retext.py @@ -27,7 +27,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * app_name = "ReText" -app_version = "2.2.0" +app_version = "3.0.0" def readListFromSettings(settings, key): if not settings.contains(key): @@ -58,...
Automatically load CSS style for codehilite extension if it is enabled
py
diff --git a/pinboard/pinboard.py b/pinboard/pinboard.py index <HASH>..<HASH> 100644 --- a/pinboard/pinboard.py +++ b/pinboard/pinboard.py @@ -62,14 +62,14 @@ class Bookmark(object): def __repr__(self): parse_result = urllib.parse.urlparse(self.url) - return "<Bookmark description=\"{}\" url=\"{}...
fix additional string encoding issues in Bookmark
py
diff --git a/rhaptos/cnxmlutils/odt2cnxml.py b/rhaptos/cnxmlutils/odt2cnxml.py index <HASH>..<HASH> 100644 --- a/rhaptos/cnxmlutils/odt2cnxml.py +++ b/rhaptos/cnxmlutils/odt2cnxml.py @@ -46,6 +46,11 @@ def transform(odtfile, debug=False, outputdir=None): # Store mapping of images extracted from the ODT file (and t...
Documented how I would like XSLT error messages to generate and parse
py
diff --git a/ipyvolume/serialize.py b/ipyvolume/serialize.py index <HASH>..<HASH> 100644 --- a/ipyvolume/serialize.py +++ b/ipyvolume/serialize.py @@ -18,7 +18,8 @@ def cube_to_png(grid, vmin, vmax, file): grid_normalized = (grid*1.0 - vmin) / (vmax - vmin) grid_normalized[~np.isfinite(grid_normalized)] = 0 gradi...
fix: divide by zero is ignored in gradient
py
diff --git a/ftfy/badness.py b/ftfy/badness.py index <HASH>..<HASH> 100644 --- a/ftfy/badness.py +++ b/ftfy/badness.py @@ -60,7 +60,7 @@ def _make_weirdness_regex(): # Match C1 control characters, which are almost always the result of # decoding Latin-1 that was meant to be Windows-1252. - groups.append(...
fix unnecessarily marked Unicode literal
py
diff --git a/djstripe/event_handlers.py b/djstripe/event_handlers.py index <HASH>..<HASH> 100644 --- a/djstripe/event_handlers.py +++ b/djstripe/event_handlers.py @@ -260,7 +260,11 @@ def _handle_crud_like_event(target_cls, event, data=None, verb=None, return if crud_type.deleted: - obj = target_...
Explicitly call purge() on customer.deleted events Because of the previous commit, the Customer.delete() method is no longer called since it is not called on QuerySet.delete(). We now need to be more explicit about calling purge().
py
diff --git a/rest_flex_fields/filter_backends.py b/rest_flex_fields/filter_backends.py index <HASH>..<HASH> 100644 --- a/rest_flex_fields/filter_backends.py +++ b/rest_flex_fields/filter_backends.py @@ -37,18 +37,17 @@ class FlexFieldsFilterBackend(BaseFilterBackend): serializer.apply_flex_fields(serializer.fi...
Include m2m in prefetch_related clause even if they're not expanded
py
diff --git a/blockstack_resolver/resolver/server.py b/blockstack_resolver/resolver/server.py index <HASH>..<HASH> 100755 --- a/blockstack_resolver/resolver/server.py +++ b/blockstack_resolver/resolver/server.py @@ -140,7 +140,7 @@ def get_profile(username, refresh=False, namespace=DEFAULT_NAMESPACE): bs_re...
added blockstack-server timeout error (issue #<I>)
py
diff --git a/lurklib/squeries.py b/lurklib/squeries.py index <HASH>..<HASH> 100755 --- a/lurklib/squeries.py +++ b/lurklib/squeries.py @@ -262,14 +262,7 @@ class _ServerQueries(object): * msg - Message to send. """ with self.lock: - self.send('SQUERY %s :%s' % (sname, msg)) - ...
Updated squery() and kill() to use send()'s new error_check argument.
py
diff --git a/Facade.py b/Facade.py index <HASH>..<HASH> 100644 --- a/Facade.py +++ b/Facade.py @@ -426,6 +426,9 @@ class FacadeHardwareSource(object): def __init__(self, hardware_source): self.__hardware_source = hardware_source + def close(self): + pass + def create_monitor(self): ...
Add methods and tests for setting custom view and record parameters. svn r<I>
py
diff --git a/backdrop/collector/logging_setup.py b/backdrop/collector/logging_setup.py index <HASH>..<HASH> 100644 --- a/backdrop/collector/logging_setup.py +++ b/backdrop/collector/logging_setup.py @@ -24,5 +24,5 @@ def set_up_logging(app_name, log_level): get_log_file_handler("log/collector.log")) logge...
Don't cause <I> to fail if we don't have to
py
diff --git a/travis-ci/urls.py b/travis-ci/urls.py index <HASH>..<HASH> 100644 --- a/travis-ci/urls.py +++ b/travis-ci/urls.py @@ -1,19 +1,5 @@ -import os +from django.conf.urls import include, url -version = os.environ.get("DJANGO_VERSION", "1.6") - -values = version.split(".") -major = values[0] -minor = values[1] ...
Include the urls for travis-ci
py
diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py index <HASH>..<HASH> 100644 --- a/benchexec/tablegenerator/__init__.py +++ b/benchexec/tablegenerator/__init__.py @@ -1189,12 +1189,12 @@ def get_summary(runSetResults): available = True try: - ...
In output, missing values in statistics summary are displayed correctly. Only add a StatValue to statistics summary if a real value exists. Otherwise add None, as in the other statistics. None values will be interpreted by the formatter. Currently, '-' is displayed.
py
diff --git a/troposphere/constants.py b/troposphere/constants.py index <HASH>..<HASH> 100644 --- a/troposphere/constants.py +++ b/troposphere/constants.py @@ -65,6 +65,7 @@ QUAD_ZERO = '0.0.0.0/0' VPC_CIDR_16 = '10.0.0.0/16' SSH_PORT = 22 +MONGODB_PORT = 27017 NTP_PORT = 123 SMTP_PORT_25 = 25 SMTP_PORT_587 = 587
Added MongoDB default port to constants (#<I>)
py
diff --git a/chevron.py b/chevron.py index <HASH>..<HASH> 100755 --- a/chevron.py +++ b/chevron.py @@ -20,7 +20,6 @@ def tokenize(template): Where tag_type is one of: * literal - * comment * section * inverted section * end @@ -108,7 +107,8 @@ def tokenize(template): if t...
Stopped tokenize from yielding comment tags
py
diff --git a/oneandone/client.py b/oneandone/client.py index <HASH>..<HASH> 100644 --- a/oneandone/client.py +++ b/oneandone/client.py @@ -990,7 +990,7 @@ class OneAndOneService(object): # 'DELETE' methods - def delete_server(self, server_id=None, keep_ips=None, keep_hdds=None): + def delete_server(self,...
Changed the default value of keep_hdds (delete_server parameter) to true.
py
diff --git a/test_wptools.py b/test_wptools.py index <HASH>..<HASH> 100755 --- a/test_wptools.py +++ b/test_wptools.py @@ -26,6 +26,15 @@ class ExtractTestCase(unittest.TestCase): ans = html_lead(data) self.assertEqual(ans, "<p>lead</p>\n<div>lead</div>") + def test_html_lead_no_templates(self): ...
added test_html_lead_no_templates.
py
diff --git a/visidata/sheets.py b/visidata/sheets.py index <HASH>..<HASH> 100644 --- a/visidata/sheets.py +++ b/visidata/sheets.py @@ -234,11 +234,31 @@ class Sheet(BaseSheet): def reload(self): 'Loads rows and/or columns. Override in subclass.' self.rows = [] - for r in vd.Progress(self....
[iterload api] add header and skip universal handling - loaders need to implement setCols if they determine columns from header rows.
py
diff --git a/ELiDE/ELiDE/statlist.py b/ELiDE/ELiDE/statlist.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/statlist.py +++ b/ELiDE/ELiDE/statlist.py @@ -338,7 +338,7 @@ class BaseStatListView(RecycleView): def del_key(self, k): """Delete the key and any configuration for it""" - if k not in sel...
Fix AttributeError when deleting a stat
py
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py index <HASH>..<HASH> 100644 --- a/holoviews/core/spaces.py +++ b/holoviews/core/spaces.py @@ -390,14 +390,6 @@ class DynamicMap(HoloMap): self.call_mode = self._validate_mode() self.mode = 'closed' if self.call_mode == 'key' else 'open...
DynamicMap no longer invokes callback in constructor
py
diff --git a/src/python/pants/engine/internals/parametrize.py b/src/python/pants/engine/internals/parametrize.py index <HASH>..<HASH> 100644 --- a/src/python/pants/engine/internals/parametrize.py +++ b/src/python/pants/engine/internals/parametrize.py @@ -56,8 +56,8 @@ class Parametrize: raise Exception...
Fix error output of `parametrize()` (#<I>) In case of banned characters, the output contained the string {arg}, when it should have been evaluated as an f-string. Changed the string to an f-string to fix the bug.
py
diff --git a/treetime/treeanc.py b/treetime/treeanc.py index <HASH>..<HASH> 100644 --- a/treetime/treeanc.py +++ b/treetime/treeanc.py @@ -276,6 +276,7 @@ class TreeAnc(object): # remove all existing sequence attributes for node in self._tree.find_clades(): + node.branch_length = node.bra...
check for non-existing branch length on tree loading.
py
diff --git a/pybooru/pybooru.py b/pybooru/pybooru.py index <HASH>..<HASH> 100755 --- a/pybooru/pybooru.py +++ b/pybooru/pybooru.py @@ -40,7 +40,7 @@ class Pybooru(object): self.site_list = {'konachan': 'http://konachan.com', 'danbooru': 'http://danbooru.donmai.us', 'yandere': 'https://yande.re', - ...
fix typo of chan-sankaku site url
py
diff --git a/ecabc/abc.py b/ecabc/abc.py index <HASH>..<HASH> 100644 --- a/ecabc/abc.py +++ b/ecabc/abc.py @@ -144,9 +144,13 @@ class ABC: def infer_process_count(self): ''' Set the amount of processes that will be used to - the amount of cores that your cpu has + the amount of CPU'...
surround multiprocessing.cpu_count() with try/except
py
diff --git a/pyinfra/local.py b/pyinfra/local.py index <HASH>..<HASH> 100644 --- a/pyinfra/local.py +++ b/pyinfra/local.py @@ -22,8 +22,8 @@ def include(filename, hosts=None): if not pseudo_state.active: return - if isinstance(hosts, list): - pseudo_state.limit_hosts = hosts + if hosts is n...
Fix local.include to fail with wrong hosts type This fixes a bug in local.include where passing any data type other that an list resulted silently in no limit on the hosts. This change forces the `hosts` argument to be either None or an iterable (list/tuple/generator).
py
diff --git a/ariba/clusters.py b/ariba/clusters.py index <HASH>..<HASH> 100644 --- a/ariba/clusters.py +++ b/ariba/clusters.py @@ -246,7 +246,7 @@ class Clusters: for gene in sorted(self.cluster_to_dir): counter += 1 if self.verbose: - print('\nAssembling cluster', coun...
Do not output name of cluster (it is confusing)
py
diff --git a/astrocats/catalog/utils/__init__.py b/astrocats/catalog/utils/__init__.py index <HASH>..<HASH> 100644 --- a/astrocats/catalog/utils/__init__.py +++ b/astrocats/catalog/utils/__init__.py @@ -16,7 +16,6 @@ __all__ = [] __all__.extend(digits.__all__) __all__.extend(logger.__all__) __all__.extend(photometry...
BUG: remove lingering mention of 'repos.py'.
py
diff --git a/GPy/kern/src/static.py b/GPy/kern/src/static.py index <HASH>..<HASH> 100644 --- a/GPy/kern/src/static.py +++ b/GPy/kern/src/static.py @@ -104,7 +104,7 @@ class WhiteHeteroscedastic(Static): return 0. def K(self, X, X2=None): - if X2 is None: + if X2 is None and X.shape[0]==sel...
[white hetero] additional check for prediction
py
diff --git a/anyconfig/mergeabledict.py b/anyconfig/mergeabledict.py index <HASH>..<HASH> 100644 --- a/anyconfig/mergeabledict.py +++ b/anyconfig/mergeabledict.py @@ -15,13 +15,13 @@ JSON Pointer: http://tools.ietf.org/html/rfc6901 """ from __future__ import absolute_import -from .compat import iteritems, UserDic...
refactor: reorder imports in anyconfig.mergeabledict
py
diff --git a/pex/version.py b/pex/version.py index <HASH>..<HASH> 100644 --- a/pex/version.py +++ b/pex/version.py @@ -1 +1 @@ -__version__ = '0.8.0-rc1' +__version__ = '0.8.0.dev0'
Switch PEX to use PEP<I> devN notation. Increment to <I>.dev0.
py
diff --git a/pyorbital/tests/test_orbital.py b/pyorbital/tests/test_orbital.py index <HASH>..<HASH> 100644 --- a/pyorbital/tests/test_orbital.py +++ b/pyorbital/tests/test_orbital.py @@ -311,11 +311,10 @@ class TestGetObserverLookNadir(unittest.TestCase): 63 errors for xarray with dask 2 error for xar...
Attempt two to fix deepcode issue with random numbers
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -177,7 +177,7 @@ class build_ext(_build_ext): self.include_dirs.append( os.path.join(build_clib.build_clib, "include"), ) - self.library_dirs.append( + self.libr...
Reorder link-time library search path (#<I>) putting bundled libsodium lib directory first
py
diff --git a/postgres_kernel/kernel.py b/postgres_kernel/kernel.py index <HASH>..<HASH> 100644 --- a/postgres_kernel/kernel.py +++ b/postgres_kernel/kernel.py @@ -80,9 +80,11 @@ class PostgresKernel(Kernel): log('fetching all from: \n' + query) with self._conn.cursor() as c: c.execute(que...
Handle queries that don't produce output
py
diff --git a/gitenberg/push.py b/gitenberg/push.py index <HASH>..<HASH> 100644 --- a/gitenberg/push.py +++ b/gitenberg/push.py @@ -4,7 +4,9 @@ Syncs a local git book repo to a remote git repo (by default, github) """ +import logging from re import sub +import time import github3 import sh @@ -71,4 +73,9 @@ cla...
handles github not being ready for new repo pushes
py
diff --git a/lib/elements/bfe_imprint.py b/lib/elements/bfe_imprint.py index <HASH>..<HASH> 100644 --- a/lib/elements/bfe_imprint.py +++ b/lib/elements/bfe_imprint.py @@ -22,7 +22,8 @@ __revision__ = "$Id$" import time -def format(bfo, place_label, publisher_label, date_label, separator=', ', date_format=""): +def...
BibFormat: fixed date formatting in bfe_imprint
py
diff --git a/bigfloat_cython/setup.py b/bigfloat_cython/setup.py index <HASH>..<HASH> 100644 --- a/bigfloat_cython/setup.py +++ b/bigfloat_cython/setup.py @@ -17,8 +17,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with the bigfloat module. If not, see <http://www.gnu.org/lic...
Use a plain setup.py that doesn't require setuptools or Cython.
py
diff --git a/jsonschema.py b/jsonschema.py index <HASH>..<HASH> 100644 --- a/jsonschema.py +++ b/jsonschema.py @@ -249,6 +249,9 @@ class Draft3Validator(object): ) def validate_patternProperties(self, patternProperties, instance, schema): + if not self.is_type(instance, "object"): + ...
Ignore non-objects in patternProperties. Closes #<I>
py
diff --git a/panasonic_viera/__init__.py b/panasonic_viera/__init__.py index <HASH>..<HASH> 100644 --- a/panasonic_viera/__init__.py +++ b/panasonic_viera/__init__.py @@ -8,7 +8,6 @@ import base64 import binascii import struct import hmac, hashlib -import time from Crypto.Cipher import AES try: from urllib.re...
Added support for pin codes & encryption Added support for newer Panasonic TV models that use encryption for p<I>NetworkControl commands.
py
diff --git a/src/edeposit/amqp/aleph/aleph.py b/src/edeposit/amqp/aleph/aleph.py index <HASH>..<HASH> 100755 --- a/src/edeposit/amqp/aleph/aleph.py +++ b/src/edeposit/amqp/aleph/aleph.py @@ -380,7 +380,7 @@ def getDocumentIDs(aleph_search_result, number_of_docs=-1): documents = _alephResultToDict(library) ...
Bugfix (missing "").
py
diff --git a/openstates/jurisdiction.py b/openstates/jurisdiction.py index <HASH>..<HASH> 100644 --- a/openstates/jurisdiction.py +++ b/openstates/jurisdiction.py @@ -54,7 +54,6 @@ def make_jurisdiction(a_state): } leg_sessions.append(session) - # make scrapers class Pers...
Attach orgs to the Jurisdiction
py
diff --git a/admin_interface/models.py b/admin_interface/models.py index <HASH>..<HASH> 100644 --- a/admin_interface/models.py +++ b/admin_interface/models.py @@ -1,14 +1,17 @@ # -*- coding: utf-8 -*- +from __future__ import unicode_literals from django.core.files import File from django.db import models from dja...
Fix representation of Theme models on Python 3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -39,11 +39,11 @@ setup( version=find_version("fluent_contents", "__init__.py"), license="Apache 2.0", install_requires=[ - "django-fluent-utils>=2.0", # DRY utility code - "django-parler>=1.9.1", ...
Bump setup install_requires to ensure Django <I> compatibility
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ requires = [ setup( name='amaascore', - version='0.6.23', + version='0.6.24', description='Asset Management as a Service - Core SDK', license='Apache License 2.0', url='https://githu...
AMAAS-<I> Updating version
py
diff --git a/shell.py b/shell.py index <HASH>..<HASH> 100755 --- a/shell.py +++ b/shell.py @@ -22,7 +22,7 @@ elif __name__ == "builtins": from ls.joyous.utils.recurrence import * from ls.joyous.utils import manythings, telltime from ls.joyous.formats import ical - L=list + L = list sys.display...
Fixed PYTHON_E<I> issues in shell.py
py
diff --git a/src/armet/resources/base.py b/src/armet/resources/base.py index <HASH>..<HASH> 100644 --- a/src/armet/resources/base.py +++ b/src/armet/resources/base.py @@ -565,7 +565,7 @@ class BaseResource(object): # Utilize the attribute accessor to resolve the resource path. obj = pa...
Added IndexError check for out-of-range path navigation.
py
diff --git a/prosper/common/prosper_cli.py b/prosper/common/prosper_cli.py index <HASH>..<HASH> 100644 --- a/prosper/common/prosper_cli.py +++ b/prosper/common/prosper_cli.py @@ -166,19 +166,6 @@ class ProsperTESTApplication(ProsperApplication): # pragma: no cover """do stuff""" self.logger.info('HEL...
removing demo FlaskLauncher. TODO: add to docs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ from pip_utils import __description__, __program__, __version__ def long_description(): """Return the contents of README.rst (with badging removed).""" # use re.compile() for flags support in Python 2...
Strip extra newline off head and tail of README.rst badging
py
diff --git a/spyderlib/widgets/arraybuilder.py b/spyderlib/widgets/arraybuilder.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/arraybuilder.py +++ b/spyderlib/widgets/arraybuilder.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright © 2015 Gonzalo Peña-Castellanos (@goanpeca) +# Copyright © 2009- The ...
Testing: Little fix in arraybuilder test Also fix its copyright
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def main(): 'requests>=2.11', 'lxml', 'ipython', 'future', 'networkx>=2', 'pandas', 'ndex2==2.0.1', 'jinja2', 'protmapper>=0.0.16', 'obonet', 'sympy...
Make sure we use pybiopax <I>+
py
diff --git a/tests/test_generate_files.py b/tests/test_generate_files.py index <HASH>..<HASH> 100644 --- a/tests/test_generate_files.py +++ b/tests/test_generate_files.py @@ -150,6 +150,19 @@ def test_generate_files_output_dir(): @pytest.mark.usefixtures('clean_system', 'remove_additional_folders') +def test_retur...
Implement a test to make sure generate_files returns project_dir
py
diff --git a/pymagicc/io/scen.py b/pymagicc/io/scen.py index <HASH>..<HASH> 100644 --- a/pymagicc/io/scen.py +++ b/pymagicc/io/scen.py @@ -182,7 +182,7 @@ class _ScenReader(_NonStandardEmisInReader): region = convert_magicc_to_openscm_regions(self._stream.readline().strip()) try: - ...
Adds additional spelling options for YEARS header
py
diff --git a/estnltk/storage/postgres/collection.py b/estnltk/storage/postgres/collection.py index <HASH>..<HASH> 100755 --- a/estnltk/storage/postgres/collection.py +++ b/estnltk/storage/postgres/collection.py @@ -91,7 +91,7 @@ class PgCollection: def create(self, description=None, meta: dict = None, temporary=No...
include time of creation in postgres collection table comment
py
diff --git a/handler.py b/handler.py index <HASH>..<HASH> 100644 --- a/handler.py +++ b/handler.py @@ -103,6 +103,8 @@ class BotHandler(): #FIXME: screws w/ extended acls. #if os.access(f, os.X_OK): cmd = basename(f).split('.')[0] + if cmd == '__init__': + ...
__init__ isn't a module
py
diff --git a/cobe/model.py b/cobe/model.py index <HASH>..<HASH> 100644 --- a/cobe/model.py +++ b/cobe/model.py @@ -184,7 +184,7 @@ class Model(object): for token in tokens: if token not in self.tokens.token_ids: for prefix, norm in normalize(token): - ...
Store token ids rather than full tokens for normalized tokens
py
diff --git a/bxml/xml.py b/bxml/xml.py index <HASH>..<HASH> 100644 --- a/bxml/xml.py +++ b/bxml/xml.py @@ -232,6 +232,8 @@ class XML(File): @classmethod def tag_name(cls, tag): """return the name of the tag, with the namespace removed""" + if type(tag) == etree._Element: + tag =...
make XML.tag_name() able to take an element (etree._Element) as well as a tag (str)
py
diff --git a/tests/test_aspectlib.py b/tests/test_aspectlib.py index <HASH>..<HASH> 100644 --- a/tests/test_aspectlib.py +++ b/tests/test_aspectlib.py @@ -451,6 +451,38 @@ def test_weave_instance_meth(): assert inst.foo == 'stuff' +@pytest.mark.xfail +def test_weave_legacy_instance(): + @aspectlib.Aspect + ...
Add to test for weaving instances (not supported yet tho).
py
diff --git a/grimoire/ocean/elastic.py b/grimoire/ocean/elastic.py index <HASH>..<HASH> 100644 --- a/grimoire/ocean/elastic.py +++ b/grimoire/ocean/elastic.py @@ -152,6 +152,7 @@ class ElasticOcean(object): items_pack = [] # to feed item in packs drop = 0 + added = 0 if self.fetch_c...
[ocean] Add counter for added items to ocean and report it at the end
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. -__version__ =...
Update Pyrogram to <I>
py
diff --git a/pelix/shell/remote.py b/pelix/shell/remote.py index <HASH>..<HASH> 100644 --- a/pelix/shell/remote.py +++ b/pelix/shell/remote.py @@ -366,7 +366,6 @@ class IPopoRemoteShell(object): # Property update (if port was 0) self._port = self._server.socket.getsockname()[1] - _logger.in...
Avoid trying to stop a not-started remote shell server
py
diff --git a/future/standard_library/http/client.py b/future/standard_library/http/client.py index <HASH>..<HASH> 100644 --- a/future/standard_library/http/client.py +++ b/future/standard_library/http/client.py @@ -76,7 +76,7 @@ from future.utils import isbytes, istext with standard_library.hooks(): import email....
Fix typo in import in http/client.py
py
diff --git a/cassandra/__init__.py b/cassandra/__init__.py index <HASH>..<HASH> 100644 --- a/cassandra/__init__.py +++ b/cassandra/__init__.py @@ -23,7 +23,7 @@ class NullHandler(logging.Handler): logging.getLogger('cassandra').addHandler(NullHandler()) -__version_info__ = (2, 1, 0, 'b1') +__version_info__ = (2, 1...
Correct version for <I>b2
py
diff --git a/bcbio/variation/freebayes.py b/bcbio/variation/freebayes.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/freebayes.py +++ b/bcbio/variation/freebayes.py @@ -70,6 +70,8 @@ def _clean_freebayes_output(in_file): """Clean FreeBayes output to make post-processing with GATK happy. - Remove lines f...
Provide workaround for FreeBayes output containing multiple duplicate alleles
py
diff --git a/pymatgen/ext/cod.py b/pymatgen/ext/cod.py index <HASH>..<HASH> 100644 --- a/pymatgen/ext/cod.py +++ b/pymatgen/ext/cod.py @@ -132,7 +132,8 @@ class COD(object): structures.append({"structure": s, "cod_id": int(cod_id), "sg": sg}) ...
Warn and re-raise
py
diff --git a/airtest/core/settings.py b/airtest/core/settings.py index <HASH>..<HASH> 100644 --- a/airtest/core/settings.py +++ b/airtest/core/settings.py @@ -10,7 +10,7 @@ class Settings(object): LOG_FILE = "log.txt" RESIZE_METHOD = staticmethod(cocos_min_strategy) CVSTRATEGY = ["tpl", "sift"] - THRE...
mod: change image recognition threshold from <I> to <I>
py
diff --git a/anyconfig/tests/template.py b/anyconfig/tests/template.py index <HASH>..<HASH> 100644 --- a/anyconfig/tests/template.py +++ b/anyconfig/tests/template.py @@ -1,8 +1,9 @@ # -# Copyright (C) 2013 Satoru SATOH <ssato @ redhat.com> +# Copyright (C) 2015 Satoru SATOH <ssato @ redhat.com> # License: MIT # im...
add a test case if template was not found
py
diff --git a/tests/unit/modules/pip_test.py b/tests/unit/modules/pip_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/pip_test.py +++ b/tests/unit/modules/pip_test.py @@ -345,6 +345,16 @@ class PipTestCase(TestCase): cwd=None ) + def test_extra_index_url_argument_in_result...
Added a mocked test case for `--extra-index-url` passing to `pip install`.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -157,7 +157,14 @@ setup( 'messages = invenio_records', ], 'invenio_access.actions': [ - 'records_read_all = invenio_records.permissions:records_read_all', + 'records_read_al...
installation: missing actions entry points * Adds missing actions entry points. (closes #<I>)
py
diff --git a/util/text.py b/util/text.py index <HASH>..<HASH> 100644 --- a/util/text.py +++ b/util/text.py @@ -52,10 +52,10 @@ def text_to_char_array(original, alphabet): Given a Python string ``original``, remove unsupported characters, map characters to integers and return a numpy array representing the pro...
Update text.py "characters" was a bad variable name now that I think about it
py
diff --git a/tests/test_pgextras.py b/tests/test_pgextras.py index <HASH>..<HASH> 100755 --- a/tests/test_pgextras.py +++ b/tests/test_pgextras.py @@ -93,16 +93,17 @@ class TestPgextras(unittest.TestCase): self.assertTrue(len(results), 4) - def test_methods_have_ten_results(self): - self....
Bug fix for unit test when run against postgres version less than <I>
py
diff --git a/wafer/talks/urls.py b/wafer/talks/urls.py index <HASH>..<HASH> 100644 --- a/wafer/talks/urls.py +++ b/wafer/talks/urls.py @@ -1,12 +1,16 @@ from django.conf.urls import patterns, url, include -from rest_framework import routers +from rest_framework_extensions import routers from wafer.talks.views impor...
Hook up TalkUrlsViewSet as nested route below talks.
py
diff --git a/sos/plugins/ovirt.py b/sos/plugins/ovirt.py index <HASH>..<HASH> 100644 --- a/sos/plugins/ovirt.py +++ b/sos/plugins/ovirt.py @@ -28,7 +28,11 @@ from sos.plugins import Plugin, RedHatPlugin class Ovirt(Plugin, RedHatPlugin): """oVirt Engine related information""" - packages = ('ovirt-engine',) +...
[ovirt] Add dwh and reports packages to plugin package list Allows the plugin to collect data on standalone dwh and reports installations. Related: Issue #<I>, Issue #<I>
py
diff --git a/python/ray/tune/suggest/hyperopt.py b/python/ray/tune/suggest/hyperopt.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/suggest/hyperopt.py +++ b/python/ray/tune/suggest/hyperopt.py @@ -341,7 +341,18 @@ class HyperOptSearch(Searcher): self._hpopt_trials.refresh() def _to_hyperopt_result...
[tune] Improve HyperOpt KeyError message when metric was not found (#<I>)
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 @@ -1896,7 +1896,7 @@ def get_selinux_context(path): try: ret = re.search('\w+:\w+:\w+:\w+', out).group(0) except AttributeError: - ret = "No selinux conte...
Modified string to use single quotes - looks like this is the convention?
py
diff --git a/holoviews/plotting/bokeh/path.py b/holoviews/plotting/bokeh/path.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/path.py +++ b/holoviews/plotting/bokeh/path.py @@ -1,4 +1,7 @@ +import numpy as np + from .element import ElementPlot, line_properties, fill_properties +from .util import get_cmap...
Enabled colormapping Polygons in Bokeh
py
diff --git a/cmocean/tools.py b/cmocean/tools.py index <HASH>..<HASH> 100644 --- a/cmocean/tools.py +++ b/cmocean/tools.py @@ -2,10 +2,18 @@ Plot up stuff with colormaps. ''' +import sys + import numpy as np import matplotlib as mpl +if sys.version_info > (3,): + _string_types = (str, np.str_, np.unicode_)...
Remove usage of Matplotlib deprecated function. Matplotlib's `is_string_like` has been deprecated as of the <I> release (October <I>), and triggers deprecation warnings messages at import time. This replaces the use of this matplotlib function with a functional equivalent
py
diff --git a/intranet/apps/eighth/views/admin/groups.py b/intranet/apps/eighth/views/admin/groups.py index <HASH>..<HASH> 100644 --- a/intranet/apps/eighth/views/admin/groups.py +++ b/intranet/apps/eighth/views/admin/groups.py @@ -658,16 +658,7 @@ def add_member_to_group_view(request, group_id): errors, results ...
Confirm adding by search query. Fixes #<I>
py
diff --git a/jwcrypto/jwk.py b/jwcrypto/jwk.py index <HASH>..<HASH> 100644 --- a/jwcrypto/jwk.py +++ b/jwcrypto/jwk.py @@ -327,6 +327,15 @@ class JWK(object): d.update(self._unknown) return json_encode(d) + def export_public(self): + """Exports the public key in the standard JSON format"""...
Add method to export only the public part of a key
py
diff --git a/bcbio/structural/purecn.py b/bcbio/structural/purecn.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/purecn.py +++ b/bcbio/structural/purecn.py @@ -8,6 +8,7 @@ import shutil import toolz as tz from bcbio import utils +from bcbio.heterogeneity import chromhacks from bcbio.log import logger from ...
PureCN: restrict input coverage to standard chromosomes Avoid haplotype and other chromosomes as inputs by removing these additional chromosomes from the CNVkit input cnr files.
py
diff --git a/datacats/environment.py b/datacats/environment.py index <HASH>..<HASH> 100644 --- a/datacats/environment.py +++ b/datacats/environment.py @@ -840,6 +840,7 @@ class Environment(object): format_version = int(f.read().strip()) if format_version == 1: + print 'WARNING: De...
Add warning for defaulting to older purge.
py
diff --git a/pyphi/network.py b/pyphi/network.py index <HASH>..<HASH> 100644 --- a/pyphi/network.py +++ b/pyphi/network.py @@ -204,11 +204,10 @@ class Network: Two networks are equal if they have the same TPM, connectivity matrix, and perturbation vector. """ - return ((np.array_equal(...
Style tweaks in `Network`
py
diff --git a/Lib/ufo2ft/outlineOTF.py b/Lib/ufo2ft/outlineOTF.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/outlineOTF.py +++ b/Lib/ufo2ft/outlineOTF.py @@ -42,7 +42,10 @@ class OutlineCompiler(object): self.allGlyphs.update(missingRequiredGlyphs) # store the glyph order if glyphOrder is No...
Use UFO's glyphOrder attribute if present
py
diff --git a/backtrader/writer.py b/backtrader/writer.py index <HASH>..<HASH> 100644 --- a/backtrader/writer.py +++ b/backtrader/writer.py @@ -196,7 +196,7 @@ class WriterFile(WriterBase): self.writeline(kline) self.writedict(val, level=level + 1, recurse=True) elif isinst...
allow write to write sublists which are not made up of strings
py
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py index <HASH>..<HASH> 100644 --- a/visidata/cmdlog.py +++ b/visidata/cmdlog.py @@ -325,10 +325,11 @@ def replayOne(vd, r): vd.exceptionCaught(e) escaped = True else: + vs = vs or vd.activeSheet if vs: ...
[replay] push active sheet to reload if not yet loaded #<I>
py
diff --git a/dimod/binary_quadratic_model.py b/dimod/binary_quadratic_model.py index <HASH>..<HASH> 100644 --- a/dimod/binary_quadratic_model.py +++ b/dimod/binary_quadratic_model.py @@ -243,6 +243,12 @@ class BinaryQuadraticModel(AdjDictBQM, Sized, Iterable, Container): new.info.update(self.info) ret...
Temporarily override BinaryQuadraticModel.empty
py
diff --git a/visidata/vd.py b/visidata/vd.py index <HASH>..<HASH> 100755 --- a/visidata/vd.py +++ b/visidata/vd.py @@ -907,7 +907,7 @@ class Sheet: # in case that rightmost column is last column, try to squeeze maximum real estate from screen if self.rightVisibleColIndex == self.nVisibleCols-1: ...
fix pageLeft to stop trying to move further left when it is already furthest left
py
diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index <HASH>..<HASH> 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -340,8 +340,7 @@ def debug(address): required=False, type=int, default=10001, - help="the port number the ray client server ...
[doc] Update document on `ray start` command. (#<I>)
py
diff --git a/examples/seq2seq/utils.py b/examples/seq2seq/utils.py index <HASH>..<HASH> 100644 --- a/examples/seq2seq/utils.py +++ b/examples/seq2seq/utils.py @@ -457,14 +457,22 @@ def load_json(path): def get_git_info(): - repo = git.Repo(search_parent_directories=True) - repo_infos = { - "repo_id": ...
[seq2seq] get_git_info fails gracefully (#<I>)
py
diff --git a/zenpy/lib/generator.py b/zenpy/lib/generator.py index <HASH>..<HASH> 100644 --- a/zenpy/lib/generator.py +++ b/zenpy/lib/generator.py @@ -197,6 +197,9 @@ class ZendeskResultGenerator(BaseResultGenerator): if (datetime.fromtimestamp(int(end_time)) + timedelta(minutes=5)) > ...
Fix bug with infinite loop in incremental generator (#<I>) Looks like ZD uses "end_of_stream" not instead of null "next_page". Closes #<I>
py
diff --git a/tests/test_oauth.py b/tests/test_oauth.py index <HASH>..<HASH> 100644 --- a/tests/test_oauth.py +++ b/tests/test_oauth.py @@ -21,6 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE....
Make sure this is runnable directly using python from the CLI
py
diff --git a/billboard.py b/billboard.py index <HASH>..<HASH> 100755 --- a/billboard.py +++ b/billboard.py @@ -40,7 +40,7 @@ class ChartEntry: spotifyID. Will be an empty string if no such ID was provided. """ - def __init__(self, title, artist, peakPos, lastPos, weeks, rank, change, spotifyID, s...
added videoLink property to support vevo links Note from Allen: I cherry-picked this from James's branch (9a8e<I>). There was a conflict in tests/test_billboard.py; I discarded James's edits. See #<I>.
py
diff --git a/h2o-py/h2o/backend/server.py b/h2o-py/h2o/backend/server.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/backend/server.py +++ b/h2o-py/h2o/backend/server.py @@ -335,10 +335,12 @@ class H2OLocalServer(object): # check "/Program Files" and "/Program Files (x86)" on Windows if sys.platfor...
Fix wrong java path on windows. Fixes PUBDEV-<I> (#<I>)
py
diff --git a/condoor/version.py b/condoor/version.py index <HASH>..<HASH> 100644 --- a/condoor/version.py +++ b/condoor/version.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = '1.0.0' +__version__ = '1.0.1'
Bumbed version number to <I>
py
diff --git a/neo.py b/neo.py index <HASH>..<HASH> 100755 --- a/neo.py +++ b/neo.py @@ -177,11 +177,17 @@ class Hg(object): def add(file): action("Adding "+file) - popen([hg_cmd, 'add', file]) + try: + popen([hg_cmd, 'add', file]) + except ProcessException: + pa...
Gracefully handle git/hg add/rm commands
py