diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/shopify/base.py b/shopify/base.py
index <HASH>..<HASH> 100644
--- a/shopify/base.py
+++ b/shopify/base.py
@@ -93,7 +93,7 @@ class ShopifyResourceMeta(ResourceMeta):
def get_headers(cls):
if not hasattr(cls._threadlocal, 'headers'):
- cls._threadlocal.headers = ShopifyResource._he... | Fix thread local headers to store a copy of the default hash. This was resulting in active_session in one thread causing the access token to be modified in all thread, since the same headers hash was used despite being assigned to a thread-local variable. | py |
diff --git a/Lib/mutatorMath/objects/location.py b/Lib/mutatorMath/objects/location.py
index <HASH>..<HASH> 100644
--- a/Lib/mutatorMath/objects/location.py
+++ b/Lib/mutatorMath/objects/location.py
@@ -293,13 +293,6 @@ class Location(dict):
newOther = self.__class__()
newSelf[dim] = self[... | Remove unused code Something was calculated but not used. Removed. | py |
diff --git a/command/bdist_wininst.py b/command/bdist_wininst.py
index <HASH>..<HASH> 100644
--- a/command/bdist_wininst.py
+++ b/command/bdist_wininst.py
@@ -260,13 +260,18 @@ class bdist_wininst(Command):
cfgdata = cfgdata.encode("mbcs")
# Append the pre-install script
- cfgdata = cfgda... | Issue #<I>: the "bdist_wininst" distutils command didn't work. Reviewed by Trent Nelson. | py |
diff --git a/slackbot/dispatcher.py b/slackbot/dispatcher.py
index <HASH>..<HASH> 100644
--- a/slackbot/dispatcher.py
+++ b/slackbot/dispatcher.py
@@ -134,14 +134,6 @@ class Message(object):
self.send(text)
def send(self, text):
- self._client.send_message(
- self._body['channel'], to_... | Removed web API send method because rtm API supports formatting now | py |
diff --git a/atws/picklist.py b/atws/picklist.py
index <HASH>..<HASH> 100644
--- a/atws/picklist.py
+++ b/atws/picklist.py
@@ -67,7 +67,8 @@ def child_picklist_as_dict(child_picklist):
child_field_dict = {}
parent = child_picklist.parent
for item in child_picklist._picklist:
- parent_item_label = ... | a child needs to be able to resolve parent picklist items that are inactive | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
setup(
name='django-zappa',
- version='0.10.3',
+ version='0.11.0',
packages=['django_zappa'],
install_require... | <I> - version bump for log tailing | py |
diff --git a/ara/ui/management/commands/generate.py b/ara/ui/management/commands/generate.py
index <HASH>..<HASH> 100644
--- a/ara/ui/management/commands/generate.py
+++ b/ara/ui/management/commands/generate.py
@@ -2,15 +2,19 @@ import codecs
import os
import shutil
+import pbr.version
from django.core.management.... | ui: Include ARA_VERSION when generating static reports Otherwise the about modal doesn't include the version of ara. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,12 @@
import sys
import os
+import mock
+
+MOCK_MODULES = ['numpy', 'scipy', 'scipy.stats', 'scipy.stats.mstats', 'pandas']
+
+for mod in MOCK_MODULES:
+ sys.modules[mod] = mock.Mock()
# If ... | Fix RTFD build with scipy. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,7 @@ setup(
author="Nick Douma",
author_email="n.douma@nekoconeko.nl",
url="https://github.com/LordGaav/python-chaos",
+ download_url="https://github.com/LordGaav/python-chaos/tarball/" + str(VERSION),
platfo... | Add download_url to setup.py | 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
@@ -1575,7 +1575,7 @@ def makedirs(path, user=None, group=None, mode=None):
# turn on the executable bits for user, group and others.
# Note: the special bits are ... | Ensure that the mode is a string before index checks | py |
diff --git a/examples/plotting/file/slider_callback_policy.py b/examples/plotting/file/slider_callback_policy.py
index <HASH>..<HASH> 100644
--- a/examples/plotting/file/slider_callback_policy.py
+++ b/examples/plotting/file/slider_callback_policy.py
@@ -1,5 +1,5 @@
from bokeh.io import vform, output_file, show
-from ... | Removed the PreText class to the example as it was not needed. | py |
diff --git a/filer/__init__.py b/filer/__init__.py
index <HASH>..<HASH> 100644
--- a/filer/__init__.py
+++ b/filer/__init__.py
@@ -1,19 +1,3 @@
#-*- coding: utf-8 -*-
-__version_info__ = { # pragma: nocover
- 'major': 0,
- 'minor': 9,
- 'micro': 0,
- 'releaselevel': 'alpha',
- 'serial': 1
-}
-
-def get... | simplefied version declaration (pep-<I>, pep-<I>) | py |
diff --git a/quotequail/_internal.py b/quotequail/_internal.py
index <HASH>..<HASH> 100644
--- a/quotequail/_internal.py
+++ b/quotequail/_internal.py
@@ -211,7 +211,7 @@ def find_unwrap_start(lines, max_wrap_lines, min_header_lines, min_quoted_lines)
def unindent_lines(lines):
unquoted = []
- for n, line in... | remove enumerate where the index is never used | py |
diff --git a/versionner/version.py b/versionner/version.py
index <HASH>..<HASH> 100644
--- a/versionner/version.py
+++ b/versionner/version.py
@@ -63,7 +63,7 @@ class Version:
"""
if field not in self.VALID_UP_FIELDS:
- raise ValueError("Incorrect value of \"type\"")
+ raise Va... | changed (unified) error mesage on incorrect field | py |
diff --git a/papermill/execute.py b/papermill/execute.py
index <HASH>..<HASH> 100644
--- a/papermill/execute.py
+++ b/papermill/execute.py
@@ -177,6 +177,7 @@ def execute_notebook(notebook,
t0 = datetime.datetime.utcnow()
processor = ExecutePreprocessor(
timeout=None,
+ startup_timeout=300, # ... | Increase startup_timeout for execute preprocessor This could / should be a configurable -- I mostly need this for slow to start Spark backed kernels. | py |
diff --git a/commands.py b/commands.py
index <HASH>..<HASH> 100644
--- a/commands.py
+++ b/commands.py
@@ -153,7 +153,7 @@ class create_bucket_types(Command):
return cmd
-class security_commands:
+class security_commands(object):
def check_security_command(self, *args):
cmd = self._security_c... | Derive `security_commands` from `object` base class | py |
diff --git a/tests/test_util.py b/tests/test_util.py
index <HASH>..<HASH> 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -476,19 +476,17 @@ def test_files():
limit=limit,
offset=offset)
- if limit is not None:
- ... | added negative slicing to find_files test | py |
diff --git a/test/test_cli.py b/test/test_cli.py
index <HASH>..<HASH> 100644
--- a/test/test_cli.py
+++ b/test/test_cli.py
@@ -79,7 +79,7 @@ def test_config(mocker):
profiler, kwargs = f([], standalone_mode=False)
assert isinstance(profiler, TracingProfiler)
# config to use SamplingProfiler.
- mocker.... | Use b'' literal for mock file | py |
diff --git a/oauthlib/common.py b/oauthlib/common.py
index <HASH>..<HASH> 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -109,7 +109,7 @@ def decode_params_utf8(params):
return decoded
-urlencoded = set(always_safe) | set('=&;%+~,*@!()')
+urlencoded = set(always_safe) | set('=&;%+~,*@!()/?')
... | Allow `/` and `?` characters per RFC <I> section <I> specification. Fixes #<I> | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -23,5 +23,5 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
-__version__ = "1.2.dev3"
-__version_info__ = (1, 2, 0... | Bump to version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,8 @@ def load_version(filename='./virtualbox/version.py'):
setup(
name="pyvbox",
version=load_version(),
- packages=["virtualbox"],
+ packages=["virtualbox",
+ "virtualbox._library_ext"]... | moved extension code under _library_ext package | py |
diff --git a/ariba/tests/samtools_variants_test.py b/ariba/tests/samtools_variants_test.py
index <HASH>..<HASH> 100644
--- a/ariba/tests/samtools_variants_test.py
+++ b/ariba/tests/samtools_variants_test.py
@@ -50,7 +50,7 @@ class TestSamtoolsVariants(unittest.TestCase):
got = got_lines[i].split('\t')
... | Bug fix: should check last two columns | py |
diff --git a/pydeconz/group.py b/pydeconz/group.py
index <HASH>..<HASH> 100644
--- a/pydeconz/group.py
+++ b/pydeconz/group.py
@@ -20,7 +20,6 @@ class DeconzGroup(DeconzLight):
Set callback to set state of device.
"""
- super().__init__(device_id, device, set_state_callback)
self._an... | Init class last in group init to get proper debug message for device creation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ def get_description():
setup(
name="docx2html",
- version="0.1.2",
+ version="0.1.3",
description="docx (OOXML) to html converter",
author="Jason Ward",
author_email="jason.louard.wa... | bumped to version <I> | py |
diff --git a/dock/util.py b/dock/util.py
index <HASH>..<HASH> 100644
--- a/dock/util.py
+++ b/dock/util.py
@@ -405,7 +405,7 @@ def clone_git_repo(git_url, target_dir, commit=None):
cmd = ["git", "clone", git_url, quote(target_dir)]
logger.debug("Cloning: %s", cmd)
subprocess.check_call(cmd)
-... | clone: reset instead of checkout Because rhpkg cannot work with dist-git repos when they are in detached state. | py |
diff --git a/ftfy/test_unicode.py b/ftfy/test_unicode.py
index <HASH>..<HASH> 100644
--- a/ftfy/test_unicode.py
+++ b/ftfy/test_unicode.py
@@ -22,7 +22,6 @@ phrases = [
# These phrases should not be erroneously "fixed"
def test_valid_phrases():
for phrase in phrases:
- print phrase
yield check_ph... | remove extraneous print statement from tests | py |
diff --git a/src/ibmiotf/__init__.py b/src/ibmiotf/__init__.py
index <HASH>..<HASH> 100644
--- a/src/ibmiotf/__init__.py
+++ b/src/ibmiotf/__init__.py
@@ -140,7 +140,7 @@ class AbstractClient(object):
self.client.username_pw_set(self.username, self.password)
# Attach MQTT callbacks
- self... | Mark on_log() as private method -> _onLog() | py |
diff --git a/phono3py/api_phono3py.py b/phono3py/api_phono3py.py
index <HASH>..<HASH> 100644
--- a/phono3py/api_phono3py.py
+++ b/phono3py/api_phono3py.py
@@ -268,7 +268,12 @@ class Phono3py(object):
elif isinstance(sigmas, float) or isinstance(sigmas, int):
self._sigmas = [float(sigmas), ]
... | Fix initialization of sigmas | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -4,7 +4,7 @@ import datetime, decimal, re
class TomlTz(datetime.tzinfo):
- def __new__(self, toml_offset):
+ def __init__(self, toml_offset):
self._raw_offset = toml_offset
self._hours = int(toml_offse... | Fix UTC offsets specified as hours and minutes Does no one else read my code? I used __new__ instead of __init__ *facepalm* | py |
diff --git a/bot/logger/logger.py b/bot/logger/logger.py
index <HASH>..<HASH> 100644
--- a/bot/logger/logger.py
+++ b/bot/logger/logger.py
@@ -5,7 +5,7 @@ from bot.logger.message_sender import MessageSender
LOG_ENTRY_FORMAT = "{time} [{tag}] {text}"
-TEXT_SEPARATOR = " | "
+TEXT_SEPARATOR = "\n"
class Logger: | Change logger text separator to a newline, as it produces more clean and legible output | py |
diff --git a/lib/python/dxpy/__init__.py b/lib/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/__init__.py
+++ b/lib/python/dxpy/__init__.py
@@ -97,7 +97,7 @@ def DXHTTPRequest(resource, data, method='POST', headers={}, auth=None, config=N
return response.content
exce... | actually retry on server_error | py |
diff --git a/nodeconductor/cost_tracking/tasks.py b/nodeconductor/cost_tracking/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cost_tracking/tasks.py
+++ b/nodeconductor/cost_tracking/tasks.py
@@ -105,7 +105,7 @@ def update_today_usage_of_resource(resource_str):
for item in DefaultPriceListItem.o... | Make variable name more meaningful - nc-<I> | py |
diff --git a/nsq/Reader.py b/nsq/Reader.py
index <HASH>..<HASH> 100644
--- a/nsq/Reader.py
+++ b/nsq/Reader.py
@@ -45,11 +45,13 @@ class Reader(object):
:class:`nsq.Message` object that has instance methods :meth:`nsq.Message.finish`,
:meth:`nsq.Message.requeue`, and :meth:`nsq.Message.touch` to respond to `... | update docstrings relating to backoff / defer delay | py |
diff --git a/chess.py b/chess.py
index <HASH>..<HASH> 100755
--- a/chess.py
+++ b/chess.py
@@ -1203,6 +1203,13 @@ class Bitboard:
# TODO: Validate move
+ def __repr__(self):
+ return "Bitboard.from_fen('{0}')".format(self.fen())
+
+ # TODO: Equality
+
+ # TODO: Zobrist hashing
+
def print_bi... | Use FEN as string representation for bitboards | py |
diff --git a/saltcloud/clouds/hpcs.py b/saltcloud/clouds/hpcs.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/hpcs.py
+++ b/saltcloud/clouds/hpcs.py
@@ -131,9 +131,15 @@ def create(vm_):
host_addr = data.public_ips[0]
else:
host_addr = None
+
+ if 'ssh_username' in vm_:
+ ssh_user = vm_[... | Use ssh_username if it is set | py |
diff --git a/ajax/server.py b/ajax/server.py
index <HASH>..<HASH> 100644
--- a/ajax/server.py
+++ b/ajax/server.py
@@ -143,6 +143,7 @@ class AjaxServer(Module):
'htdocs')
if not os.path.exists(self.htdocs_path):
self.l.error("%s doens't exist!" % self.htdocs_path)
+ self.on_media_changed()
def on_media_c... | ajax/server: fix assumption about initialization order | py |
diff --git a/acceptancetests/assess_primary_sub_relations.py b/acceptancetests/assess_primary_sub_relations.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_primary_sub_relations.py
+++ b/acceptancetests/assess_primary_sub_relations.py
@@ -180,8 +180,10 @@ def assert_subordinate_unit_operational(client, prim... | Change use of SSH to run as jenkins had issues with it. | py |
diff --git a/examples/mqtt_publish.py b/examples/mqtt_publish.py
index <HASH>..<HASH> 100755
--- a/examples/mqtt_publish.py
+++ b/examples/mqtt_publish.py
@@ -1,12 +1,6 @@
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
-# =============================================================================
-# To run this... | Clean up the mqtt_publish example | py |
diff --git a/sos/report/plugins/powerpc.py b/sos/report/plugins/powerpc.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/powerpc.py
+++ b/sos/report/plugins/powerpc.py
@@ -50,7 +50,10 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
"ppc64_cpu --run-mode",
"pp... | [powerpc]Add support to collect hardware component logs This patch updates powerpc plugin to collect Hardware and firmware information. In this patch we are reading Hardware and firmware version details through lsvpd, lscfg and lsmcode commands Related: #<I> | py |
diff --git a/pysat/instruments/nasa_cdaweb_methods.py b/pysat/instruments/nasa_cdaweb_methods.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/nasa_cdaweb_methods.py
+++ b/pysat/instruments/nasa_cdaweb_methods.py
@@ -34,8 +34,8 @@ def list_files(tag=None, sat_id=None, data_path=None, format_str=None,
Use... | Updated docstring information on supported_tags | py |
diff --git a/nsq/Writer.py b/nsq/Writer.py
index <HASH>..<HASH> 100644
--- a/nsq/Writer.py
+++ b/nsq/Writer.py
@@ -22,6 +22,22 @@ class Writer(object):
Writer publishes messages to the specified ``nsqd_tcp_addresses`` asynchronously.
+ ``PUB`` message sent repeatedly using a Tornado IOLoop periodic... | Added simpler example to Writer docs Getting a basic publisher up and running can be confusing - this is a more canonically simple way to show how it's done. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ setup(
include_package_data=True,
install_requires=[
"Django==2.1.4",
- "djangorestframework==3.9.0",
+ "djangorestframework==3.9.1",
"coreapi==2.3.3",
"dj-data... | Upgrade djangorestframework to <I> | py |
diff --git a/sos/sosreport.py b/sos/sosreport.py
index <HASH>..<HASH> 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -827,6 +827,7 @@ class SoSReport(object):
plugins = helper.get_modules()
self.plugin_names = deque()
self.profiles = set()
+ using_profiles = len(self.opts.prof... | [sosreport] fix use of -o and -n without --profile Break the logic of the combined 'onlyplugins' and profile check out to make it more readable and fix a bug that caused all default plugins to be enabled when running '-o someplug'. | py |
diff --git a/numina/tests/test_combine.py b/numina/tests/test_combine.py
index <HASH>..<HASH> 100644
--- a/numina/tests/test_combine.py
+++ b/numina/tests/test_combine.py
@@ -239,7 +239,8 @@ class MinMaxTestCase(unittest.TestCase):
self.assertEqual(v, 0)
for v in self.out[2].flat:
... | Skipping test that fails for the moment | py |
diff --git a/homie/device.py b/homie/device.py
index <HASH>..<HASH> 100644
--- a/homie/device.py
+++ b/homie/device.py
@@ -69,7 +69,7 @@ class HomieDevice:
self.nodes = []
self.callback_topics = {}
- self.device_name = getattr(settings, "DEVICE_NAME", b"mydevice")
+ self.device_name = ... | Send empty string if device name is not set | py |
diff --git a/vc_zoom/indico_vc_zoom/plugin.py b/vc_zoom/indico_vc_zoom/plugin.py
index <HASH>..<HASH> 100644
--- a/vc_zoom/indico_vc_zoom/plugin.py
+++ b/vc_zoom/indico_vc_zoom/plugin.py
@@ -40,6 +40,14 @@ from indico_vc_zoom.util import (fetch_zoom_meeting, find_enterprise_email, gen_
class PluginSettingsForm(VCP... | VC/Zoom: split config in sections | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
'rororo',
],
install_requires=list(filter(None, [
- 'Jinja2==2.6',
+ 'Jinja2>=2.7',
'WebOb>=1.2.3',
'argparse==1.2.1' if sys.version_info[:2] < (2, 7) el... | Drop Python <I> support by switching to Jinja <I>+. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,8 @@ setup(
package_data = { '': ['*.md', '*.g'] },
+ test_suite = 'tests.__main__',
+
# metadata for upload to PyPI
author = "Erez Shinan",
author_email = "erezshin@gmail.com", | BUGFIX: 'python setup.py test' now works. | py |
diff --git a/pupa/importers/base.py b/pupa/importers/base.py
index <HASH>..<HASH> 100644
--- a/pupa/importers/base.py
+++ b/pupa/importers/base.py
@@ -212,10 +212,7 @@ class BaseImporter(object):
# need to create the data
else:
what = 'insert'
- if 'id' not in data:
- ... | let opencivicdata generate the uuids | py |
diff --git a/aws_lambda/aws_lambda.py b/aws_lambda/aws_lambda.py
index <HASH>..<HASH> 100755
--- a/aws_lambda/aws_lambda.py
+++ b/aws_lambda/aws_lambda.py
@@ -142,8 +142,10 @@ def init(src, minimal=False):
for filename in os.listdir(templates_path):
if (minimal and filename == 'event.json') or filename.en... | Fix init trying to copy a __pycache__ directory | py |
diff --git a/prob2020/console/probabilistic2020.py b/prob2020/console/probabilistic2020.py
index <HASH>..<HASH> 100755
--- a/prob2020/console/probabilistic2020.py
+++ b/prob2020/console/probabilistic2020.py
@@ -43,10 +43,16 @@ def parse_arguments():
# add subparsers
subparsers = parent_parser.add_subparsers... | Added more description for sub-commands in CLI help | py |
diff --git a/rllib/agents/ppo/ddppo.py b/rllib/agents/ppo/ddppo.py
index <HASH>..<HASH> 100644
--- a/rllib/agents/ppo/ddppo.py
+++ b/rllib/agents/ppo/ddppo.py
@@ -17,6 +17,7 @@ Note that unlike the paper, we currently do not implement straggler mitigation.
"""
import logging
+import sys
import time
import ray
@... | [RLlib] DD-PPO not supported on Win (add meaningful error message). (#<I>) | py |
diff --git a/dataviews/plotting/pandas.py b/dataviews/plotting/pandas.py
index <HASH>..<HASH> 100644
--- a/dataviews/plotting/pandas.py
+++ b/dataviews/plotting/pandas.py
@@ -96,9 +96,7 @@ class DFrameViewPlot(Plot):
def _validate(self, dfview, axis):
composed = axis is not None
- if composed and... | Lifted restriction on DFramePlot | py |
diff --git a/meshio/flac3d/_flac3d.py b/meshio/flac3d/_flac3d.py
index <HASH>..<HASH> 100644
--- a/meshio/flac3d/_flac3d.py
+++ b/meshio/flac3d/_flac3d.py
@@ -118,7 +118,7 @@ def read_buffer(f):
return Mesh(
points=numpy.array(points),
- cells={k: numpy.array(v) for k, v in cells.items()},
+ ... | fix missing cells reordering in reader | py |
diff --git a/spacy/cli/package.py b/spacy/cli/package.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/package.py
+++ b/spacy/cli/package.py
@@ -150,6 +150,8 @@ def list_requirements(meta):
requirements = [parent_package + meta['spacy_version']]
if 'setup_requires' in meta:
requirements += meta['setup_... | Also support "requirements" in model.json | py |
diff --git a/twstock/__init__.py b/twstock/__init__.py
index <HASH>..<HASH> 100644
--- a/twstock/__init__.py
+++ b/twstock/__init__.py
@@ -11,4 +11,4 @@ from twstock.codes import twse, tpex, codes
from twstock.stock import Stock
-__version__ = '0.1.3-dev'
+__version__ = '0.1.5-dev' | Bump up version to <I>-dev | py |
diff --git a/deploy-cluster-aws/fabfile.py b/deploy-cluster-aws/fabfile.py
index <HASH>..<HASH> 100644
--- a/deploy-cluster-aws/fabfile.py
+++ b/deploy-cluster-aws/fabfile.py
@@ -143,10 +143,8 @@ def configure_bigchaindb():
def send_confile(confile):
put('confiles/' + confile, 'tempfile')
sudo('mv tempfile ~... | Small changes to output of send_confile in fabfile.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ VERSION = '0.1'
import sys
import os
import shutil
+import subprocess
from distutils.command.clean import clean as Clean
#######################################################################... | BUG: fix sphinx build command | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,4 +16,19 @@ setup(
url='https://github.com/mwilliamson/zuice',
packages=['zuice'],
keywords="dependency injection di",
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Intended Audienc... | Add classifiers to setup.py | py |
diff --git a/apollo/decorators.py b/apollo/decorators.py
index <HASH>..<HASH> 100644
--- a/apollo/decorators.py
+++ b/apollo/decorators.py
@@ -1,7 +1,10 @@
+from functools import wraps
+
from apollo.exceptions import APIErrorResponseException
def raise_error_decorator(fn):
+ @wraps(fn)
def wrapper(*args, ... | fix missing docstring for wrapped functions | py |
diff --git a/helpers/api.py b/helpers/api.py
index <HASH>..<HASH> 100644
--- a/helpers/api.py
+++ b/helpers/api.py
@@ -65,6 +65,6 @@ class RestApiServer(HTTPServer, Thread):
self.daemon = True
def cursor(self):
- if not self._cursor_holder or self._cursor_holder.closed != 0:
+ if not self.... | Bigfix, cursor.closed contains boolean value | py |
diff --git a/numina/array/peaks/peakdetection.py b/numina/array/peaks/peakdetection.py
index <HASH>..<HASH> 100644
--- a/numina/array/peaks/peakdetection.py
+++ b/numina/array/peaks/peakdetection.py
@@ -43,7 +43,8 @@ def _vecS2(k, data):
return ap
-# http://tcs-trddc.com/trddc_website/pdf/srl/palshikar_sapdts_... | Update the reference of algorithms [ci skip] | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -2193,7 +2193,7 @@ def editText(scr, y, x, w, attr=curses.A_NORMAL, value='', fillchar=' ', truncch
elif ch == '^T': v = delchar(splice(v, i-2, v[i-1]), i)... | [line-editor] bugfix for ^Z | py |
diff --git a/spyder/config/base.py b/spyder/config/base.py
index <HASH>..<HASH> 100644
--- a/spyder/config/base.py
+++ b/spyder/config/base.py
@@ -42,6 +42,9 @@ DEV = os.environ.get('SPYDER_DEV')
# Manually override whether the dev configuration directory is used.
USE_DEV_CONFIG_DIR = os.environ.get('SPYDER_USE_DEV_... | Make hash id a constant | py |
diff --git a/pycbc/types/timeseries.py b/pycbc/types/timeseries.py
index <HASH>..<HASH> 100644
--- a/pycbc/types/timeseries.py
+++ b/pycbc/types/timeseries.py
@@ -147,6 +147,21 @@ class TimeSeries(Array):
return int(1.0/self.delta_t)
sample_rate = property(get_sample_rate,
doc=... | add helper to get a slice of a time series using actual times (#<I>) * add helper to get a slice of a time series using actual times * change name to time slice | py |
diff --git a/clients/python/girder_client/cli.py b/clients/python/girder_client/cli.py
index <HASH>..<HASH> 100755
--- a/clients/python/girder_client/cli.py
+++ b/clients/python/girder_client/cli.py
@@ -108,7 +108,9 @@ def _common_parameters(func):
help='type of Girder parent target',
... | girder_client: Display informative error message if "local_folder" is invalid This commit changes the type from "str" to "click.Path" indicating that the folder is not expected to exist, but if it does it should be readable and writable. | py |
diff --git a/posttroll/logger.py b/posttroll/logger.py
index <HASH>..<HASH> 100644
--- a/posttroll/logger.py
+++ b/posttroll/logger.py
@@ -198,13 +198,13 @@ def run():
import time
try:
- logger = Logger((opts.server, opts.port))
+ tlogger = Logger((opts.server, opts.port))
#logger = L... | Bug fix mixed up Logger and logging.Logger. | py |
diff --git a/thefuck/main.py b/thefuck/main.py
index <HASH>..<HASH> 100644
--- a/thefuck/main.py
+++ b/thefuck/main.py
@@ -139,7 +139,7 @@ def main():
command = get_command(settings, sys.argv)
if command:
if is_second_run(command):
- print("echo Can't fuck twice")
+ sys.stderr.w... | Put errors in stderr instead of "echo ..." in stdout | py |
diff --git a/test/test_overflow.py b/test/test_overflow.py
index <HASH>..<HASH> 100644
--- a/test/test_overflow.py
+++ b/test/test_overflow.py
@@ -40,6 +40,8 @@ def deep_profiler_session():
def test_console(deep_profiler_session):
ConsoleRenderer().render(deep_profiler_session)
+# html now uses the json rendere... | HTML fails the overflow test too, due to use of JSONRenderer internally | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
keywords="functional scala",
packages=find_packages(exclude=['contrib', 'docs', 'tests*', 'test']),
version="0.2.0",
- install_requirements=['enum34', 'future'],
+ install_requires=['... | corrected mispelling that was messing up installation of dependencies | py |
diff --git a/cookies.py b/cookies.py
index <HASH>..<HASH> 100644
--- a/cookies.py
+++ b/cookies.py
@@ -48,7 +48,7 @@ class cookie( dict ):
def readFromSetHeader( self, header ):
'Read a cookie from a header as received in an HTTP Response'
fields = re.split( ';\s*', header )
- splitEquals = lambda x: x.spli... | Fixed a bug where splitting on all equal signs was the wrong thing to do. Also, removed the urllib.quote portion, because that's not always the right thing to do. I need to investigate further why I put this in in the first place and try to understand when things should be quoted and what. When pnl sends us a uuenco... | py |
diff --git a/tests/test_finders.py b/tests/test_finders.py
index <HASH>..<HASH> 100644
--- a/tests/test_finders.py
+++ b/tests/test_finders.py
@@ -68,6 +68,16 @@ class TestLocalFinder(AbstractTestFinder):
class TestPathFinder(AbstractTestFinder):
kind = finders.PathFinder
+ def test_conda_and_virtual_env(sel... | Add initial tests for virtual env loading | py |
diff --git a/import_export/admin.py b/import_export/admin.py
index <HASH>..<HASH> 100644
--- a/import_export/admin.py
+++ b/import_export/admin.py
@@ -287,10 +287,7 @@ class ImportMixin(ImportExportMixinBase):
'input_format': form.cleaned_data['input_format'],
})
- if djan... | Remove Django version conditionals around admin_site.each_context | py |
diff --git a/quantecon/tests/test_ivp.py b/quantecon/tests/test_ivp.py
index <HASH>..<HASH> 100644
--- a/quantecon/tests/test_ivp.py
+++ b/quantecon/tests/test_ivp.py
@@ -19,7 +19,7 @@ class IVPTestSuite(unittest.TestCase):
raise NotImplementedError
def test_interpolate(self):
- """Test B_splien ... | Fixed a small typo in docstrings. | py |
diff --git a/izen/crawler.py b/izen/crawler.py
index <HASH>..<HASH> 100644
--- a/izen/crawler.py
+++ b/izen/crawler.py
@@ -261,6 +261,11 @@ class Crawler(object):
cookies = requests.utils.cookiejar_from_dict(_cookies)
return cookies
+ def refresh_cookies(self):
+ ck_pth = os.path.join(self... | fix: raw maybe None; add refresh_cookies | py |
diff --git a/pyhomematic/devicetypes/sensors.py b/pyhomematic/devicetypes/sensors.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/sensors.py
+++ b/pyhomematic/devicetypes/sensors.py
@@ -16,11 +16,10 @@ class HMSensor(HMDevice):
pass
-class SensorHm(HMSensor, HelperRssiDevice, HelperLowBat):
+class... | Added Attribute RSSI_PEER to HM sensors + removed empty lines | py |
diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py
index <HASH>..<HASH> 100644
--- a/xarray/tests/test_backends.py
+++ b/xarray/tests/test_backends.py
@@ -953,6 +953,7 @@ class NetCDF4ViaDaskDataTestAutocloseTrue(NetCDF4ViaDaskDataTest):
autoclose = True
+@requires_scipy
class ScipyInM... | add back in dropped @required_scipy decorator | py |
diff --git a/vincent/axes.py b/vincent/axes.py
index <HASH>..<HASH> 100644
--- a/vincent/axes.py
+++ b/vincent/axes.py
@@ -24,7 +24,7 @@ class AxisProperties(GrammarClass):
"""PropertySet : Definition of minor tick marks"""
@grammar(PropertySet)
- def label(value):
+ def labels(value):
""... | AxisProperties label -> lables It looks like the axes properties key for customizing labels in Vega is "labels" and note "label". At least according to the latest commit (+docs <URL>). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "network_pipeline"))
setup(
name="network-pipeline",
cmdclass={"build_py": build_py},
- version="1.0.31",
+ version="1.0.32",
desc... | new container for updated python 2 logger support | py |
diff --git a/submit/templatetags/projecttags.py b/submit/templatetags/projecttags.py
index <HASH>..<HASH> 100644
--- a/submit/templatetags/projecttags.py
+++ b/submit/templatetags/projecttags.py
@@ -2,10 +2,11 @@ from django import template
from django.template.defaultfilters import stringfilter
import os
+
regist... | refactoring: PEP8 compliance for 'submit/templatetags/projecttags.py' | py |
diff --git a/animanager/anidb.py b/animanager/anidb.py
index <HASH>..<HASH> 100644
--- a/animanager/anidb.py
+++ b/animanager/anidb.py
@@ -32,18 +32,18 @@ class AniDB:
def __init__(self, cachedir):
self.cache = AnimeCache(cachedir)
- def lookup(self, aid):
+ def lookup(self, aid, force=False):
... | Allow forcing AniDB.lookup | py |
diff --git a/paramiko/win_pageant.py b/paramiko/win_pageant.py
index <HASH>..<HASH> 100644
--- a/paramiko/win_pageant.py
+++ b/paramiko/win_pageant.py
@@ -26,6 +26,7 @@ import ctypes.wintypes
import platform
import struct
from paramiko.util import *
+from paramiko.py3compat import b
try:
import _thread as th... | Make sure we pass parameters as binary on windows. This fixes #<I> (thanks @adamkerz). | py |
diff --git a/core/eolearn/core/eodata.py b/core/eolearn/core/eodata.py
index <HASH>..<HASH> 100644
--- a/core/eolearn/core/eodata.py
+++ b/core/eolearn/core/eodata.py
@@ -307,7 +307,7 @@ class EOPatch:
self[feature_type][new_feature_name] = self[feature_type][feature_name]
del self[fea... | changes BaseException to ValueError in EOPatch.rename_feature | py |
diff --git a/data.py b/data.py
index <HASH>..<HASH> 100755
--- a/data.py
+++ b/data.py
@@ -5,9 +5,10 @@ import sqlite3
import time
import urllib
from urllib import error, request
+import zipfile
-def download_gtfs_zip():
+def download_gtfs_data():
try:
output_dir = os.path.dirname(os.path.realpath(... | zip file is now extracted to stm/ and deleted | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ try:
long_description = ''
for line in readme_text:
if line[0]!='<' and line[0]!='[': # drop lines that are html/markdown
- longdescription += line
+ lo... | minor typo in previous commit <I>a2da<I>b<I>b6b<I>b<I>cfde<I> | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -122,6 +122,12 @@ class OpenIDServer(object):
pass
def checkid_shared(self, args):
+ """This function does the logic for the checkid functions.
+ Since the only difference in behavior between ... | [project @ Added documentation for checkid_shared] | py |
diff --git a/tools/get_system_info.py b/tools/get_system_info.py
index <HASH>..<HASH> 100644
--- a/tools/get_system_info.py
+++ b/tools/get_system_info.py
@@ -99,6 +99,10 @@ if program_paths('kstat'):
returncode, output = run_and_get_stdout(['kstat', '-m', 'cpu_info'])
print_output('kstat -m cpu_info', output)
+i... | Added lscpu output to system info script. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -9,8 +9,8 @@ extensions = [
]
# General information about the project.
-project = 'skeleton'
-copyright = '2016 Jason R. Coombs'
+project = 'portend'
+copyright = '2014-2016 Jason R. Coombs'
# The short ... | Update project name and copyright in docs | py |
diff --git a/mmcv/cnn/utils/weight_init.py b/mmcv/cnn/utils/weight_init.py
index <HASH>..<HASH> 100644
--- a/mmcv/cnn/utils/weight_init.py
+++ b/mmcv/cnn/utils/weight_init.py
@@ -1,4 +1,5 @@
# Copyright (c) Open-MMLab. All rights reserved.
+import copy
import warnings
import numpy as np
@@ -445,12 +446,17 @@ def i... | fix initialization bug of override cfg (#<I>) | py |
diff --git a/httpbin/helpers.py b/httpbin/helpers.py
index <HASH>..<HASH> 100644
--- a/httpbin/helpers.py
+++ b/httpbin/helpers.py
@@ -55,7 +55,7 @@ def get_dict(*keys, **extras):
data = request.data
form = request.form
- if len(form) == 1 and not len(data):
+ if len(form) == 1 and not data:
... | None should really have __len__ | py |
diff --git a/pycm/__main__.py b/pycm/__main__.py
index <HASH>..<HASH> 100644
--- a/pycm/__main__.py
+++ b/pycm/__main__.py
@@ -13,7 +13,8 @@ if __name__ == "__main__":
if args[1].upper() == "TEST":
doctest.testfile(
"test.py",
- optionflags=doctest.NORMALIZE_WHITESP... | fix : doctest.IGNORE_EXCEPTION_DETAIL flag added | py |
diff --git a/loady/code.py b/loady/code.py
index <HASH>..<HASH> 100644
--- a/loady/code.py
+++ b/loady/code.py
@@ -61,12 +61,12 @@ def load_location(url, base_path=None, module=False):
@functools.lru_cache()
-def load_code(name, base_path=None):
+def load_code(name, base_path=None, recurse=False):
"""Load exe... | Expand recurse to import_code | py |
diff --git a/rookout/conf.py b/rookout/conf.py
index <HASH>..<HASH> 100644
--- a/rookout/conf.py
+++ b/rookout/conf.py
@@ -153,7 +153,7 @@ def merge_INIConf(a, b):
for sname in b.sections():
if a.has_section(sname):
for oname in b.options(sname):
- a[key][oname] = b[sname][onam... | fix a bug in mergeINI | py |
diff --git a/insights/client/config.py b/insights/client/config.py
index <HASH>..<HASH> 100644
--- a/insights/client/config.py
+++ b/insights/client/config.py
@@ -614,7 +614,7 @@ class InsightsConfig(object):
self.keep_archive = self.keep_archive or self.no_upload
if self.to_json and self.quiet:
... | compliance switch should imply legacy=false (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -102,7 +102,7 @@ setup(
'logstats==0.2.1',
'base58==0.2.2',
'flask==0.10.1',
- 'requests==2.9',
+ 'requests~=2.9',
'gunicorn~=19.0',
'multipipes~=0.1.0',
], | Do not pin version of requests in setup.py | py |
diff --git a/cumulusci/tasks/bulkdata/load.py b/cumulusci/tasks/bulkdata/load.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/bulkdata/load.py
+++ b/cumulusci/tasks/bulkdata/load.py
@@ -124,11 +124,10 @@ class LoadData(BaseSalesforceApiTask, SqlAlchemyMixin):
total_rows = 0
self.local_ids = []
... | Use yield_per to clamp memory usage | py |
diff --git a/pupa/scrape/event.py b/pupa/scrape/event.py
index <HASH>..<HASH> 100644
--- a/pupa/scrape/event.py
+++ b/pupa/scrape/event.py
@@ -86,6 +86,8 @@ class Event(BaseModel, SourceMixin, AssociatedLinkMixin, LinkMixin):
self.classification = classification
if location_name:
self.loc... | set location to None if no location_name in args | py |
diff --git a/esipy/client.py b/esipy/client.py
index <HASH>..<HASH> 100644
--- a/esipy/client.py
+++ b/esipy/client.py
@@ -128,6 +128,7 @@ class EsiClient(BaseClient):
return self._retry_request(
req_and_resp,
_retry=_retry,
+ raise_on_err... | Forgot to pass raise_on_error to retries also fix response header in apiexception so they have always the same source | py |
diff --git a/remodel/utils.py b/remodel/utils.py
index <HASH>..<HASH> 100644
--- a/remodel/utils.py
+++ b/remodel/utils.py
@@ -16,7 +16,7 @@ def create_tables():
for model_cls in model_registry.all().values():
result = r.table_create(model_cls._table).run()
- if result['created'] != 1:
+ i... | Fix for api breaking changes as return values from create table changed from created to tables_created | py |
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_server.py
+++ b/cheroot/test/test_server.py
@@ -3,6 +3,7 @@
# vim: set fileencoding=utf-8 :
import os
+import socket
import tempfile
import threading
import time
@@ -80,6 +81,10 @@ def test_... | Don't run unix socket test under Windows | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.