diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tower_cli/models/base.py b/tower_cli/models/base.py index <HASH>..<HASH> 100644 --- a/tower_cli/models/base.py +++ b/tower_cli/models/base.py @@ -856,7 +856,7 @@ class MonitorableResource(BaseResource): job_endpoint = '%s%s/' % (self.unified_job_type, pk) # Pause until job is in running...
Pass outfile to wait to ensure that all output from monitor is directed to outfile
py
diff --git a/colorful/widgets.py b/colorful/widgets.py index <HASH>..<HASH> 100644 --- a/colorful/widgets.py +++ b/colorful/widgets.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals + from django.conf import settings from django.forms.widgets import TextInput try: @@ -19,9 +20,9 @@...
Tweaks as per @charettes - added PEP8 spacing between imports, Tuple for Media substitution
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,8 @@ setup(name="pysnmp", 'pysnmp.v4.proto.secmod.rfc3414', 'pysnmp.v4.proto.secmod.rfc3414.auth', 'pysnmp.v4.proto.secmod.rfc3414.priv', + ...
missing rfc<I> sub-package listed
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name='plucky', - version='0.4.1', + version='0.4.2', description='Plucking (deep) keys/paths safely from python collections has never been easier.', long...
release <I> better iteration support, overall
py
diff --git a/idigbio/json_client.py b/idigbio/json_client.py index <HASH>..<HASH> 100644 --- a/idigbio/json_client.py +++ b/idigbio/json_client.py @@ -349,6 +349,23 @@ class iDbApiJson(object): min_date=min_date, max_date=max_date, date_interval=date_interva...
Sketch of upload and add_reference functions for #7
py
diff --git a/pymola/backends/casadi/api.py b/pymola/backends/casadi/api.py index <HASH>..<HASH> 100644 --- a/pymola/backends/casadi/api.py +++ b/pymola/backends/casadi/api.py @@ -132,8 +132,6 @@ def _save_model(model_folder: str, model_name: str, model: Model): cg.add(f.forward(1), True) # Jacobian-times-vecto...
It does not appear to be required to include the full Jacobian and full Hessian in codegen, for sparsity information to be communicated correctly.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def read(*names, **kwargs): ).read() -required_libs = ['seqrecord-expanded==0.2.4'] +required_libs = ['seqrecord-expanded==0.2.5'] if sys.version_info < (2, 7,): required_libs.append('ordereddict=...
updated setup with upgrade for seqrecord-expanded
py
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py index <HASH>..<HASH> 100644 --- a/jarn/mkrelease/mkrelease.py +++ b/jarn/mkrelease/mkrelease.py @@ -1,3 +1,9 @@ +import locale +locale.setlocale(locale.LC_ALL, '') + +import pkg_resources +__version__ = pkg_resources.get_distribution('jarn.mkrelease...
Get version from pkg_resources.
py
diff --git a/django_th/settings.py b/django_th/settings.py index <HASH>..<HASH> 100644 --- a/django_th/settings.py +++ b/django_th/settings.py @@ -233,7 +233,7 @@ TH_SERVICES = ( 'th_evernote.my_evernote.ServiceEvernote', 'th_pocket.my_pocket.ServicePocket', 'th_readability.my_readability.ServiceReadabil...
wait before it's fully ok
py
diff --git a/tests/unit/test_cluster.py b/tests/unit/test_cluster.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_cluster.py +++ b/tests/unit/test_cluster.py @@ -28,6 +28,15 @@ from cassandra.query import SimpleStatement, named_tuple_factory, tuple_factory from cassandra.pool import Host from tests.unit.utils im...
initialize libevreactor for cluster unit tests These tests weren't failing on CI, because CI runs all the unit tests together, and LibevConnection.initialize_reactor is called in the setup for other tests, in particular tests.unit.io.test_libev{reactor,timer}.
py
diff --git a/shinken/trigger_functions.py b/shinken/trigger_functions.py index <HASH>..<HASH> 100644 --- a/shinken/trigger_functions.py +++ b/shinken/trigger_functions.py @@ -48,7 +48,6 @@ class declared(object): logger.debug("Calling %s with arguments %s" % (self.f.func_name, args)) return self.f(*ar...
perf should return None as it can be mistaken later for metric value, which can be also 1. or is there another way to determine which 1 it'is False or just 1?
py
diff --git a/justext/__main__.py b/justext/__main__.py index <HASH>..<HASH> 100644 --- a/justext/__main__.py +++ b/justext/__main__.py @@ -2,6 +2,7 @@ from __future__ import absolute_import +import re import cgi import codecs
Added forgotten "import re"
py
diff --git a/cheroot/server.py b/cheroot/server.py index <HASH>..<HASH> 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -1729,7 +1729,7 @@ class Gateway(object): def respond(self): """Process the current request. Must be overridden in a subclass.""" - raise NotImplemented + raise...
Fix base server.Gateway.respond to raise exception Reported by lgtm.com
py
diff --git a/dipper/sources/ZFIN.py b/dipper/sources/ZFIN.py index <HASH>..<HASH> 100644 --- a/dipper/sources/ZFIN.py +++ b/dipper/sources/ZFIN.py @@ -796,7 +796,7 @@ class ZFIN(Source): #FIXME: Need to pass in labels for the intrinsic/extrinsic genotypes to make the effective labels. ...
ZFIN.py: Changed OR to AND for effective genotype conditional statement.
py
diff --git a/lib/imagepanel.py b/lib/imagepanel.py index <HASH>..<HASH> 100644 --- a/lib/imagepanel.py +++ b/lib/imagepanel.py @@ -159,8 +159,9 @@ class ImagePanel(BasePanel): col = '#%02x%02x%02x' % (rgb[0], rgb[1], rgb[2]) if label is not None: - fmt = {0.8: label, 0.9: label} - ...
fixes for labels of contours for new highlight areas
py
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py index <HASH>..<HASH> 100644 --- a/visidata/cmdlog.py +++ b/visidata/cmdlog.py @@ -127,7 +127,7 @@ class CommandLog(Sheet): def saveMacro(self, rows, ks): vs = copy(self) vs.rows = self.selectedRows - macropath = Path(options.visidata_dir...
[macros] bugfix: pass full path to fnSuffix
py
diff --git a/kitty/fuzzers/base.py b/kitty/fuzzers/base.py index <HASH>..<HASH> 100644 --- a/kitty/fuzzers/base.py +++ b/kitty/fuzzers/base.py @@ -432,6 +432,8 @@ class BaseFuzzer(KittyObject): self.config.session_file_name = ':memory:' self.dataman = DataManager(self.config.session_file_name) ...
bugfix: [BaseFuzzer] fixed issue with setting stages on initialization
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,12 @@ #!/usr/bin/env python -# from distutils.core import setup import re from setuptools import find_packages, setup VERSION_FILE = "tweepy/__init__.py" -VERSION_REGEX = r"^__version__ = ['\"]([^'\"]*)['\"]" ...
Simplify and improve clarity of setup.py
py
diff --git a/examples/qidle/qidle/main_window.py b/examples/qidle/qidle/main_window.py index <HASH>..<HASH> 100644 --- a/examples/qidle/qidle/main_window.py +++ b/examples/qidle/qidle/main_window.py @@ -150,7 +150,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): """ editor = PyCodeEdit(sel...
QIdle: Use "New document.py" (so that mimetype and tab icon are properly detected)
py
diff --git a/pycm/test.py b/pycm/test.py index <HASH>..<HASH> 100644 --- a/pycm/test.py +++ b/pycm/test.py @@ -1266,12 +1266,16 @@ sInd(Similarity index) 0.81144 >>> cm = ConfusionMatrix(matrix={1:{1:5,2:0,3:0},2:{1:0,2:10,3:0},3:{1:0,2:300,3:0}}) >>> cm.RCI 0.367570...
fix : Y verified testcases added #<I>
py
diff --git a/gui/is_map.py b/gui/is_map.py index <HASH>..<HASH> 100644 --- a/gui/is_map.py +++ b/gui/is_map.py @@ -72,7 +72,7 @@ class ISMap(): self.mapHeight = self.pageWidth - (self.pageMargin * 2) self.mapWidth = self.mapHeight self.disclaimer = self.tr('InaSAFE has been jointly developed ...
Fixed typo - BNPD to BNPB
py
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py index <HASH>..<HASH> 100644 --- a/backtrader/cerebro.py +++ b/backtrader/cerebro.py @@ -63,7 +63,6 @@ class Cerebro(six.with_metaclass(MetaParams, object)): data._name = name self.datas.append(data) feed = data.getfeed() - ...
cerebro relocation of creation of runstrats
py
diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/test_file.py +++ b/tests/unit/states/test_file.py @@ -1202,6 +1202,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin): {'file.directory_exists': mock_f, ...
Prepend test needs file.touch method
py
diff --git a/webfront.py b/webfront.py index <HASH>..<HASH> 100755 --- a/webfront.py +++ b/webfront.py @@ -182,14 +182,14 @@ class MainHandler(tornado.web.RequestHandler): __\\___________/__ / \\ ...
Properly escape backslashes on awesome robot ascii art.
py
diff --git a/tensor2tensor/data_generators/text_encoder.py b/tensor2tensor/data_generators/text_encoder.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/text_encoder.py +++ b/tensor2tensor/data_generators/text_encoder.py @@ -54,7 +54,7 @@ else: # '\\' is converted to '\' # '\213;' is converted to un...
Prevent extremely unlikely bug around escaping characters. PiperOrigin-RevId: <I>
py
diff --git a/hermes/models.py b/hermes/models.py index <HASH>..<HASH> 100644 --- a/hermes/models.py +++ b/hermes/models.py @@ -20,12 +20,53 @@ class Category(models.Model): verbose_name = u'category' verbose_name_plural = u'categories' + @property + def full_title(self): + """ + ...
Creates root_parent, parents and full_title methods on hermes.models.Category. root_parent -- Gets the topmost parent of the current category. parents -- Returns a list of all the current category's parnets. full_title -- Returns a '>' separated list of the category's parents title + current category title, ie: 'Pytho...
py
diff --git a/quilt/cli/applied.py b/quilt/cli/applied.py index <HASH>..<HASH> 100644 --- a/quilt/cli/applied.py +++ b/quilt/cli/applied.py @@ -20,6 +20,7 @@ # 02110-1301 USA from quilt.cli.meta import Command +from quilt.error import NoAppliedPatch class AppliedCommand(Command): @@ -28,5 +29,9 @@ class Applied...
Check if a patch is applied Raise an error if no patch is applied.
py
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/core.py +++ b/gwpy/timeseries/core.py @@ -1034,6 +1034,8 @@ class TimeSeries(Series): new.append(padding, inplace=True) elif gap == 'ignore': pass + ...
TimeSeries.append: minor edits to error handling
py
diff --git a/workbench/server/data_store.py b/workbench/server/data_store.py index <HASH>..<HASH> 100644 --- a/workbench/server/data_store.py +++ b/workbench/server/data_store.py @@ -351,6 +351,7 @@ class DataStore(object): all_c.remove('system.indexes') all_c.remove('fs.chunks') ...
adding info to the collections not to be capped
py
diff --git a/openpnm/network/GenericNetwork.py b/openpnm/network/GenericNetwork.py index <HASH>..<HASH> 100644 --- a/openpnm/network/GenericNetwork.py +++ b/openpnm/network/GenericNetwork.py @@ -808,14 +808,18 @@ class GenericNetwork(Base, ModelsMixin): The maximum radius within which the search should be ...
Updated docstring for find_nearby_pores
py
diff --git a/hwt/synthesizer/interfaceLevel/interfaceUtils/utils.py b/hwt/synthesizer/interfaceLevel/interfaceUtils/utils.py index <HASH>..<HASH> 100644 --- a/hwt/synthesizer/interfaceLevel/interfaceUtils/utils.py +++ b/hwt/synthesizer/interfaceLevel/interfaceUtils/utils.py @@ -43,11 +43,14 @@ def connectPacked(srcPack...
connectPacked: avoid indexing on single bit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -67,20 +67,10 @@ class TestCommand(Command): AWS_SECRET_ACCESS_KEY = 'MOCK_SECRET_ACCESS_KEY', AWS_BUCKET_NAME = 'mock_bucket' ) - from django.core.management import call_command ...
Slim test call and added more verbosity
py
diff --git a/satpy/tests/reader_tests/__init__.py b/satpy/tests/reader_tests/__init__.py index <HASH>..<HASH> 100644 --- a/satpy/tests/reader_tests/__init__.py +++ b/satpy/tests/reader_tests/__init__.py @@ -42,7 +42,8 @@ from satpy.tests.reader_tests import (test_abi_l1b, test_agri_l1, test_hrit_base ...
Resolve merge conflict in reader tests.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,11 @@ # -*- coding: utf-8 -*- from setuptools import setup -from crosspm.config import __version__ +from crosspm import config setup( name='crosspm', - version=__version__, + version=config.__version...
crosspm as module + path processing bugfixes
py
diff --git a/buildbot/buildslave.py b/buildbot/buildslave.py index <HASH>..<HASH> 100644 --- a/buildbot/buildslave.py +++ b/buildbot/buildslave.py @@ -66,9 +66,12 @@ class BuildSlave(NewCredPerspective, service.MultiService): self.max_builds = new.max_builds def __repr__(self): - builders = self....
buildslave-repr-bulletproof.patch Make BuildSlave's __repr__ a bit more bulletproof; this allows, for example, pretty-printing of configuration files before the twisted reactor starts.
py
diff --git a/eng/pipelines/scripts/generate_overview_from_readme.py b/eng/pipelines/scripts/generate_overview_from_readme.py index <HASH>..<HASH> 100644 --- a/eng/pipelines/scripts/generate_overview_from_readme.py +++ b/eng/pipelines/scripts/generate_overview_from_readme.py @@ -66,6 +66,19 @@ def generate_overview(read...
Update Overview Generation to Handle Updates in HTML Generation (#<I>)
py
diff --git a/pyinfra/api/host.py b/pyinfra/api/host.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/host.py +++ b/pyinfra/api/host.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals import click -from .attrs import wrap_attr_data +from .attrs import AttrDataStr, wrap_attr_data from .connectors import EXE...
Wrap `host.name` as `AttrDataStr`.
py
diff --git a/holoviews/plotting/mpl/plot.py b/holoviews/plotting/mpl/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/plot.py +++ b/holoviews/plotting/mpl/plot.py @@ -178,8 +178,8 @@ class MPLPlot(DimensionedPlot): return self.handles['axis'] else: fig = self.handles['...
Fixed closing of matplotlib figures
py
diff --git a/keyring/backends/Gnome.py b/keyring/backends/Gnome.py index <HASH>..<HASH> 100644 --- a/keyring/backends/Gnome.py +++ b/keyring/backends/Gnome.py @@ -26,8 +26,8 @@ class Keyring(KeyringBackend): @properties.ClassProperty @classmethod def priority(cls): - if 'gnomekeyring' not in globa...
GnomeKeyring: fix the globals check to make it actually working
py
diff --git a/cytomine/models/software.py b/cytomine/models/software.py index <HASH>..<HASH> 100755 --- a/cytomine/models/software.py +++ b/cytomine/models/software.py @@ -105,6 +105,10 @@ class SoftwareParameter(Model): self.commandLineFlag = command_line_flag self.populate(attributes) + @propert...
adaptation for software_parameter normalized url
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -39,7 +39,7 @@ A more involved example involves pulling from a custom repository. - keyserver: keyserver.ubuntu.com logstash: - pkg.installed + pkg.installed: ...
Fixed typo in pkg state documentation A `:` is missing for the yaml to be valid. This was introduced by f4abf7f<I>a<I>c<I>fc<I>f<I>d<I>d1b<I>dda, which added sub items but missed changing this line too.
py
diff --git a/dpark/rdd.py b/dpark/rdd.py index <HASH>..<HASH> 100644 --- a/dpark/rdd.py +++ b/dpark/rdd.py @@ -1510,6 +1510,10 @@ class MultiOutputTextFileRDD(OutputTextFileRDD): def flush_file(self, key, f): f.flush() + if self.compress: + f.compress = zlib.compressobj(9, zlib.DEFLATE...
fix MultiOutputTextFile is not independent for compress
py
diff --git a/tests/console/commands/test_lock.py b/tests/console/commands/test_lock.py index <HASH>..<HASH> 100644 --- a/tests/console/commands/test_lock.py +++ b/tests/console/commands/test_lock.py @@ -1,5 +1,4 @@ import shutil -import sys import pytest @@ -26,9 +25,6 @@ def poetry_with_old_lockfile(fixture_dir,...
tests: re-enable lock --no-update cases on windows
py
diff --git a/salt/cloud/clouds/proxmox.py b/salt/cloud/clouds/proxmox.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/proxmox.py +++ b/salt/cloud/clouds/proxmox.py @@ -516,6 +516,17 @@ def create(vm_): log.info('Creating Cloud VM {0}'.format(vm_['name'])) + if 'use_dns' in vm_ and not 'ip_address' in...
adding vm_name to ip resolving and using ip for vm creation It is now possible to precreate a lot of pairs fqdn<->ip_address in dns and then use these ip addresses for vms. This allows us to use one cloud profile to many vms relation instead of using one profile to one vm if ip address is set explicitly
py
diff --git a/plans/contrib.py b/plans/contrib.py index <HASH>..<HASH> 100644 --- a/plans/contrib.py +++ b/plans/contrib.py @@ -38,7 +38,7 @@ def send_template_email(recipients, title_template, body_template, context, lang mail_title_template = loader.get_template(title_template) mail_body_template = loader....
be less restrictive on mail title templates newlines
py
diff --git a/twemproxy/datadog_checks/twemproxy/twemproxy.py b/twemproxy/datadog_checks/twemproxy/twemproxy.py index <HASH>..<HASH> 100644 --- a/twemproxy/datadog_checks/twemproxy/twemproxy.py +++ b/twemproxy/datadog_checks/twemproxy/twemproxy.py @@ -101,10 +101,11 @@ class Twemproxy(AgentCheck): except Ex...
Don't collect version if metadata is not enabled (#<I>) * Collect metadata behind a flag * Don't log if metadata isn't enabled
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,15 @@ #!/usr/bin/env python - from distutils.core import setup -setup(name='Pyoko', - version='0.1', - description='Pyoko is a Django-esque lightweight ORM for Riak/Solr (aka Yokozuna)', - author='Z...
setup.py find packages and requires
py
diff --git a/beets/mediafile.py b/beets/mediafile.py index <HASH>..<HASH> 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -1265,6 +1265,25 @@ class MediaFile(object): if isinstance(descriptor, MediaField): yield property + @classmethod + def add_field(cls, name, descrip...
MediaFile can be extended with custom fields Original: beetbox/beets@<I>b9fb
py
diff --git a/{{cookiecutter.project_slug}}/config/settings/production.py b/{{cookiecutter.project_slug}}/config/settings/production.py index <HASH>..<HASH> 100644 --- a/{{cookiecutter.project_slug}}/config/settings/production.py +++ b/{{cookiecutter.project_slug}}/config/settings/production.py @@ -154,7 +154,7 @@ MEDIA...
Assuming DTL to be the last instead of first template engine
py
diff --git a/tests/unit/modules/mac_user_test.py b/tests/unit/modules/mac_user_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/mac_user_test.py +++ b/tests/unit/modules/mac_user_test.py @@ -6,7 +6,7 @@ # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.helpers import en...
Skip tests if real mock library is not available
py
diff --git a/tests/test_tables.py b/tests/test_tables.py index <HASH>..<HASH> 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -338,5 +338,33 @@ class PisaTagTableTestCase(unittest.TestCase): self.assertEqual(context.frag.borderBottomStyle, "solid") +class PisaTagTDTestCase(unittest.TestCase...
Add test for checking that empty column cell will not collapse.
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100644 --- a/jira/client.py +++ b/jira/client.py @@ -1728,6 +1728,7 @@ class GreenHopper(JIRA): Example: rest/greenhopper/1.0/sprintquery/2 ''' # this fix is to handle the new API + r_json = {} try: ...
minor patch in order to make sure that r_json is defined
py
diff --git a/sos/report/plugins/networkmanager.py b/sos/report/plugins/networkmanager.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/networkmanager.py +++ b/sos/report/plugins/networkmanager.py @@ -94,16 +94,10 @@ class NetworkManager(Plugin, RedHatPlugin, UbuntuPlugin): self.add_cmd_outpu...
[NetworkManager] Update plugin to use add_device_cmd() Updates the plugin to use `add_device_cmd()` for the iteration of `nmcli dev` commands, rather than enumerating them directly within the plugin.
py
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py index <HASH>..<HASH> 100755 --- a/MAVProxy/tools/mavflightview.py +++ b/MAVProxy/tools/mavflightview.py @@ -655,6 +655,12 @@ if __name__ == "__main__": (opts, args) = parser.parse_args() + try: + import faulthandler, signa...
mavflightview: added fault handler
py
diff --git a/src/experi/run.py b/src/experi/run.py index <HASH>..<HASH> 100644 --- a/src/experi/run.py +++ b/src/experi/run.py @@ -315,7 +315,7 @@ def run_pbs_jobs( if prev_jobids: # Continue to append all previous jobs to submit_cmd so subsequent jobs die along # with the...
BUG Dependent jobs are separated by colon
py
diff --git a/spikewidgets/widgets/multicompgraphwidget/multicompgraphwidget.py b/spikewidgets/widgets/multicompgraphwidget/multicompgraphwidget.py index <HASH>..<HASH> 100644 --- a/spikewidgets/widgets/multicompgraphwidget/multicompgraphwidget.py +++ b/spikewidgets/widgets/multicompgraphwidget/multicompgraphwidget.py @...
A bug that block the spikeinterface doc build.
py
diff --git a/versionner/vcs.py b/versionner/vcs.py index <HASH>..<HASH> 100644 --- a/versionner/vcs.py +++ b/versionner/vcs.py @@ -62,7 +62,7 @@ class VCS(object): if process.returncode: raise RuntimeError('Can\'t create VCS tag %s. Process exited with code %d and message: %s' % ( - ...
decode stderr to utf-8
py
diff --git a/pyemma/coordinates/io/reader.py b/pyemma/coordinates/io/reader.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/io/reader.py +++ b/pyemma/coordinates/io/reader.py @@ -14,12 +14,6 @@ class ChunkedReader(object): next_chunk(lag=0) """ - def __init__(self, chunksize=0): - ''' - ...
[reader] added lag attribute
py
diff --git a/rest_auth/utils.py b/rest_auth/utils.py index <HASH>..<HASH> 100644 --- a/rest_auth/utils.py +++ b/rest_auth/utils.py @@ -1,3 +1,4 @@ +from six import string_types from django.utils.importlib import import_module @@ -5,7 +6,7 @@ def import_callable(path_or_callable): if hasattr(path_or_callable, ...
modified utils.py in order to work properly with python2 and python3
py
diff --git a/src/astral/__init__.py b/src/astral/__init__.py index <HASH>..<HASH> 100644 --- a/src/astral/__init__.py +++ b/src/astral/__init__.py @@ -199,9 +199,7 @@ class LocationInfo: value = dms_to_float(value, 90.0) elif name == "longitude": value = dms_to_float(value, 180.0) - ...
No args required for super now we are Python3 only
py
diff --git a/analysis/dense/pcca.py b/analysis/dense/pcca.py index <HASH>..<HASH> 100644 --- a/analysis/dense/pcca.py +++ b/analysis/dense/pcca.py @@ -448,4 +448,7 @@ def coarsegrain(P, n): M = pcca(P,n) A = np.dot(np.dot(M.T, P), M) B = np.linalg.inv(np.dot(M.T,M)) - return np.dot(A,B) + P = np.do...
transition matrix renormalization in PCCA coarse-graining
py
diff --git a/tests/test_modeling_detr.py b/tests/test_modeling_detr.py index <HASH>..<HASH> 100644 --- a/tests/test_modeling_detr.py +++ b/tests/test_modeling_detr.py @@ -524,4 +524,4 @@ class DetrModelIntegrationTests(unittest.TestCase): expected_slice_masks = torch.tensor( [[-7.7558, -10.8788, -...
Fix DETR integration test (#<I>)
py
diff --git a/abilian/web/forms/widgets.py b/abilian/web/forms/widgets.py index <HASH>..<HASH> 100644 --- a/abilian/web/forms/widgets.py +++ b/abilian/web/forms/widgets.py @@ -389,7 +389,7 @@ class SingleView(object): return Markup(render_template(template, view=self, ...
Pass form in case it's used by the rendering template.
py
diff --git a/nodeconductor/monitoring/tasks.py b/nodeconductor/monitoring/tasks.py index <HASH>..<HASH> 100644 --- a/nodeconductor/monitoring/tasks.py +++ b/nodeconductor/monitoring/tasks.py @@ -37,7 +37,7 @@ def update_instance_sla(sla_type): month_start = datetime.datetime.strptime('01/%s/%s' % (dt.month, dt...
Change end date calculation for SLA update - ITACLOUD-<I> - End of month period results in unrealistic output from Zabbix
py
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/parallel.py +++ b/openquake/baselib/parallel.py @@ -564,8 +564,8 @@ class Starmap(object): self.argnames = inspect.getargspec(task_func.__init__).args[1:] else: # instanc...
Fixed receiver host [skip CI] Former-commit-id: <I>daf9d8d<I>c3add5a<I>daea<I>ef<I>d0cb<I>
py
diff --git a/pywb/rewrite/rewriterules.py b/pywb/rewrite/rewriterules.py index <HASH>..<HASH> 100644 --- a/pywb/rewrite/rewriterules.py +++ b/pywb/rewrite/rewriterules.py @@ -36,8 +36,10 @@ class RewriteRules(BaseRule): js_default_class = JSLinkAndLocationRewriter elif self.js_rewrite_location == ...
rewrite rules: none or location-only rule should apply to json as well
py
diff --git a/greenwich/raster.py b/greenwich/raster.py index <HASH>..<HASH> 100644 --- a/greenwich/raster.py +++ b/greenwich/raster.py @@ -528,12 +528,9 @@ class Raster(Comparable): # Without a simple envelope, this becomes a masking operation rather # than a crop. if not geom.Equals(env.poly...
Use masked_array() to read by envelope
py
diff --git a/proso/release.py b/proso/release.py index <HASH>..<HASH> 100644 --- a/proso/release.py +++ b/proso/release.py @@ -1 +1 @@ -VERSION = '3.18.0' +VERSION = '3.19.0.dev'
start working on <I>.dev
py
diff --git a/style50/__main__.py b/style50/__main__.py index <HASH>..<HASH> 100644 --- a/style50/__main__.py +++ b/style50/__main__.py @@ -5,7 +5,7 @@ import argparse import signal import sys -from .core import StyleChecker +from . import StyleChecker # require python 2.7+ if sys.version_info < (2, 7):
__main__ can import from .
py
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index <HASH>..<HASH> 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -59,6 +59,9 @@ def cat_core(list_of_columns: List, sep: str): nd.array The concatenation of list_of_columns with sep """ + if sep == "": + # ...
PERF: Add if branch for empty sep in str.cat (#<I>)
py
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index <HASH>..<HASH> 100755 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -10256,6 +10256,11 @@ class BaseCase(unittest.TestCase): settings_parser.set_settings(self.settings_file) ...
Set variables that may be helpful for developers to use
py
diff --git a/juju/unit.py b/juju/unit.py index <HASH>..<HASH> 100644 --- a/juju/unit.py +++ b/juju/unit.py @@ -227,18 +227,24 @@ class Unit(model.ModelEntity): status = await c.FullStatus(None) - try: - return status.applications[app]['units'][self.name].get( - 'leader', Fa...
Fixed two "null case" bugs: add_unit no longer fails when we pass "None" for our placement directive. checking leadership on a subordinate no longer fails, as we are more careful about pull stuff out of the full status map.
py
diff --git a/datafs/managers/manager_mongo.py b/datafs/managers/manager_mongo.py index <HASH>..<HASH> 100644 --- a/datafs/managers/manager_mongo.py +++ b/datafs/managers/manager_mongo.py @@ -161,13 +161,36 @@ class MongoDBManager(BaseDataManager): def _batch_get_archive_listing(self, archive_names): '''...
fix mongo batch_get_archive
py
diff --git a/pluginsmanager/model/effect.py b/pluginsmanager/model/effect.py index <HASH>..<HASH> 100644 --- a/pluginsmanager/model/effect.py +++ b/pluginsmanager/model/effect.py @@ -196,9 +196,10 @@ class Effect(metaclass=ABCMeta): return False def __repr__(self): - return "<{} object as '{}' at...
Issue #<I> - Improve effect description
py
diff --git a/OpenPNM/Network/__init__.py b/OpenPNM/Network/__init__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Network/__init__.py +++ b/OpenPNM/Network/__init__.py @@ -43,7 +43,7 @@ Classes # else: # exec('from . import ' + format(item.split('.')[0])) from . import models -from .__GenericNetwork...
bah, forgot trailing __
py
diff --git a/chess/__init__.py b/chess/__init__.py index <HASH>..<HASH> 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -1155,6 +1155,10 @@ class Board(BaseBoard): by a king move to the corresponding rook square. Use :func:`chess.Board.from_chess960_pos()` to create a board with one of the Ches...
Document it is safe to set Board properties
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ AUTHOR = 'Josh Montague' REQUIRED = [ 'pandas', 'numpy', + 'scipy', 'statsmodels', 'matplotlib', ]
Include scipy in setup dependency list
py
diff --git a/govuk_bank_holidays/bank_holidays.py b/govuk_bank_holidays/bank_holidays.py index <HASH>..<HASH> 100644 --- a/govuk_bank_holidays/bank_holidays.py +++ b/govuk_bank_holidays/bank_holidays.py @@ -13,8 +13,11 @@ logger = logging.getLogger(__name__) class BankHolidays(object): """ - Tool to load UK ...
Document divisions at class level so it's easier to spot how different parts of the UK are handled
py
diff --git a/flask_appbuilder/security/api.py b/flask_appbuilder/security/api.py index <HASH>..<HASH> 100644 --- a/flask_appbuilder/security/api.py +++ b/flask_appbuilder/security/api.py @@ -30,6 +30,7 @@ class SecurityApi(BaseApi): super(SecurityApi, self).add_apispec_components(api_spec) jwt_scheme ...
Add a security scheme for refresh tokens sent in refresh requests (#<I>)
py
diff --git a/blinkpy/blinkpy.py b/blinkpy/blinkpy.py index <HASH>..<HASH> 100644 --- a/blinkpy/blinkpy.py +++ b/blinkpy/blinkpy.py @@ -294,7 +294,7 @@ class Blink(): self._video_count = 0 self._all_videos = {} self._summary = None - self.record_dates = list() + self.record_dates...
record_dates needs to default to dict, not list
py
diff --git a/jacquard/expand2.py b/jacquard/expand2.py index <HASH>..<HASH> 100644 --- a/jacquard/expand2.py +++ b/jacquard/expand2.py @@ -7,6 +7,11 @@ import utils as utils import vcf as vcf def _read_col_spec(col_spec): + if not os.path.isfile(col_spec): + raise utils.JQException("The column specificati...
ex-<I> (jebene) check to see if col spec file exists is moved inside method
py
diff --git a/allennlp/modules/conditional_random_field.py b/allennlp/modules/conditional_random_field.py index <HASH>..<HASH> 100644 --- a/allennlp/modules/conditional_random_field.py +++ b/allennlp/modules/conditional_random_field.py @@ -324,6 +324,9 @@ class ConditionalRandomField(torch.nn.Module): if mask...
Make sure we have a bool tensor where we expect one (#<I>)
py
diff --git a/tests/unit/test_costs.py b/tests/unit/test_costs.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_costs.py +++ b/tests/unit/test_costs.py @@ -61,8 +61,16 @@ class TestCosts(unittest.TestCase): def test_costs(self): csv_file = path('detailed_with_tags.csv') total = killbill.load(c...
Trying to find a way to test list equality across all Python versions.
py
diff --git a/neuropythy/freesurfer/core.py b/neuropythy/freesurfer/core.py index <HASH>..<HASH> 100644 --- a/neuropythy/freesurfer/core.py +++ b/neuropythy/freesurfer/core.py @@ -648,6 +648,12 @@ def load_freesurfer_label(filename, read_scalars=False): load_freesurfer_label(filename) is equivalent to nibabel.frees...
added a very simple annot reader
py
diff --git a/pywb/webapp/views.py b/pywb/webapp/views.py index <HASH>..<HASH> 100644 --- a/pywb/webapp/views.py +++ b/pywb/webapp/views.py @@ -150,6 +150,9 @@ class HeadInsertView(J2TemplateView): def create_insert_func(self, wbrequest, include_ts=True): + if wbrequest.options[...
views: don't add head_insert for ajax requests!
py
diff --git a/wikitextparser/_spans.py b/wikitextparser/_spans.py index <HASH>..<HASH> 100644 --- a/wikitextparser/_spans.py +++ b/wikitextparser/_spans.py @@ -233,8 +233,8 @@ def parse_to_spans(byte_array: bytearray) -> Dict[str, List[List[int]]]: pms_append, pfs_append, tls_append, wls_append) r...
perf(spans.py): do not sort comment_spans and extension_tag_spans they are sorted already because they are never nested.
py
diff --git a/semantic_release/cli.py b/semantic_release/cli.py index <HASH>..<HASH> 100644 --- a/semantic_release/cli.py +++ b/semantic_release/cli.py @@ -36,7 +36,7 @@ def common_options(func): def version(**kwargs): """ Detects the new version according to git log and semver. Writes the new version - nu...
docs: Fix typo in cli.py docstring (#<I>)
py
diff --git a/src/cr/cube/crunch_cube.py b/src/cr/cube/crunch_cube.py index <HASH>..<HASH> 100644 --- a/src/cr/cube/crunch_cube.py +++ b/src/cr/cube/crunch_cube.py @@ -356,6 +356,11 @@ class CrunchCube(object): return np.sum(margin, 0) if axis == 1: + if len(array.shape) == 1: + ...
Restore flattened dim in case of MR margin
py
diff --git a/gcloud/bigquery/table.py b/gcloud/bigquery/table.py index <HASH>..<HASH> 100644 --- a/gcloud/bigquery/table.py +++ b/gcloud/bigquery/table.py @@ -18,7 +18,6 @@ import datetime import six -from gcloud._helpers import UTC from gcloud._helpers import _datetime_from_microseconds from gcloud._helpers imp...
Don't replace timestamp w/ UTC. '_datetime_from_microseconds' already does that. Addresses: <URL>
py
diff --git a/examples/parallel_parse.py b/examples/parallel_parse.py index <HASH>..<HASH> 100644 --- a/examples/parallel_parse.py +++ b/examples/parallel_parse.py @@ -58,7 +58,7 @@ def save_parses(batch_id, input_, out_dir, n_threads, batch_size): n_thread=("Number of threads per process", "option", "t", int), ...
added batch_size as keyword argument There's probably a better default value....
py
diff --git a/papyrus/geo_interface.py b/papyrus/geo_interface.py index <HASH>..<HASH> 100644 --- a/papyrus/geo_interface.py +++ b/papyrus/geo_interface.py @@ -64,12 +64,7 @@ class GeoInterface(object): elif not col.primary_key: setattr(self, p.key, feature.properties.get(p.key, None)) - ...
make it easier to overload the behavior of GeoInterface
py
diff --git a/smmap/mman.py b/smmap/mman.py index <HASH>..<HASH> 100644 --- a/smmap/mman.py +++ b/smmap/mman.py @@ -426,3 +426,32 @@ class MappedMemoryManager(object): return PAGESIZE #} END interface + + #{ Special Purpose Interface + + def force_map_handle_removal_win(self, base_path): + """ONLY AVAILABLE ...
Added very special purpose method to free memory maps. The whole reason for this is to make the windows test work after all \!
py
diff --git a/tests/test_tools_mid3v2.py b/tests/test_tools_mid3v2.py index <HASH>..<HASH> 100644 --- a/tests/test_tools_mid3v2.py +++ b/tests/test_tools_mid3v2.py @@ -174,8 +174,17 @@ class TMid3v2(_TTools): value = b"\xff\xff\x81" self.assertRaises(ValueError, value.decode, "utf-8") self.ass...
tests: just skip this test if we get a weird encoding
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ setup( # metadata author = "Andreas Linz", author_email = "klingt.net@gmail.com", - description = "This packages provides a parser and tools for the SBL Greek New Testament format.", + descr...
added version information to setup.py
py
diff --git a/doc/examples/hist_scipy.py b/doc/examples/hist_scipy.py index <HASH>..<HASH> 100644 --- a/doc/examples/hist_scipy.py +++ b/doc/examples/hist_scipy.py @@ -13,8 +13,8 @@ def display_histogram_scipy(bench, mean, bins): fit = stats.norm.pdf(values, bench.mean(), bench.stdev()) pylab.plot(valu...
Update hist_scipy script: use mean instead of mean median-MAD => mean-stdev
py
diff --git a/cleverhans/attacks_tf.py b/cleverhans/attacks_tf.py index <HASH>..<HASH> 100644 --- a/cleverhans/attacks_tf.py +++ b/cleverhans/attacks_tf.py @@ -284,4 +284,4 @@ def jsma_tf(sess, x, predictions, grads, sample, target, theta, gamma, return np.reshape(adv_x, original_shape), 1, percent_perturbed ...
Fixed the calculation for the success rate of JSMA.
py
diff --git a/peng/pkgdata.py b/peng/pkgdata.py index <HASH>..<HASH> 100644 --- a/peng/pkgdata.py +++ b/peng/pkgdata.py @@ -10,7 +10,7 @@ import os ### # Global variables ### -VERSION_INFO = (1, 0, 9, "final", 0) +VERSION_INFO = (1, 0, 10, "final", 0) SUPPORTED_INTERPS = ["2.7", "3.5", "3.6", "3.7"] COPYRIGHT_START...
Re-specified documentation sub-packages to comply with latest expectation of package management framework
py
diff --git a/wandb/magic_impl.py b/wandb/magic_impl.py index <HASH>..<HASH> 100644 --- a/wandb/magic_impl.py +++ b/wandb/magic_impl.py @@ -7,6 +7,7 @@ import copy import json import os import yaml +import importlib import wandb from wandb import trigger @@ -42,7 +43,7 @@ class ImportMetaHook(): def load_m...
Feature/import magic (#<I>) Fix import issue with py<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ if sys.version_info < (2, 7) or ( setup_params = dict( name = 'keyring', - version = "1.3", + version = "1.2.1", description = "Store and access your passwords safely.", url = "http://bit...
Update version for <I> release
py
diff --git a/tests/test_with_hadoop.py b/tests/test_with_hadoop.py index <HASH>..<HASH> 100644 --- a/tests/test_with_hadoop.py +++ b/tests/test_with_hadoop.py @@ -46,7 +46,7 @@ def hadoop_installed(): def pil_and_cv_installed(): try: import Image - import cv + import cv2 except ImportE...
Added cv2 as a requirement for test
py