diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_chunked.py b/tests/test_chunked.py index <HASH>..<HASH> 100644 --- a/tests/test_chunked.py +++ b/tests/test_chunked.py @@ -136,6 +136,11 @@ class Test(unittest.TestCase): assert a[[True, False, True, False, True, False, True, False, True, False], 0].tolist() == [0.0, 2.0, 4.0, 6.0, 8.0]...
add test of len of ChunkedArray after .flatten()
py
diff --git a/test/test_map.py b/test/test_map.py index <HASH>..<HASH> 100644 --- a/test/test_map.py +++ b/test/test_map.py @@ -61,8 +61,7 @@ def test_world_map(): with codecs.open('render.html', 'r', 'utf-8') as f: actual_content = f.read() # test register map - assert "registerMap('world'...
:ambulance: fix broken unit tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,26 +11,29 @@ setup( open("README.md").read(), open(os.path.join("docs", "HISTORY.txt")).read() ), + # Get more strings from # http://pypi.python.org/pypi?:action=list_classifiers class...
Split setup.py into blocks; sort install_requires
py
diff --git a/treeherder/log_parser/parsers.py b/treeherder/log_parser/parsers.py index <HASH>..<HASH> 100644 --- a/treeherder/log_parser/parsers.py +++ b/treeherder/log_parser/parsers.py @@ -377,6 +377,7 @@ class ErrorParser(ParserBase): "Automation Error:", "command timed out:", "wget: unabl...
Bug <I> - Accept lines containing TEST-VALGRIND-ERROR as an error line
py
diff --git a/examples/streaming.py b/examples/streaming.py index <HASH>..<HASH> 100644 --- a/examples/streaming.py +++ b/examples/streaming.py @@ -1,11 +1,22 @@ from tweepy.streaming import StreamListener -from tweepy.auth import BasicAuthHandler +from tweepy import OAuthHandler from tweepy import Stream -TWITTER_U...
changed streaming.py to oauth from basic auth
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -3,13 +3,13 @@ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __title__ = 'spacy' -__version__ = '2.0.18' +__version__ = '2.0.18.dev1' __summary__ = 'Industrial-strength Nat...
Set version to <I>.dev1
py
diff --git a/falafel/config/specs.py b/falafel/config/specs.py index <HASH>..<HASH> 100644 --- a/falafel/config/specs.py +++ b/falafel/config/specs.py @@ -246,6 +246,10 @@ static_specs = { "cinder_volume.log" : SimpleFileSpec("var/log/cinder/volume.log", large_content=True), "vsftpd.conf" ...
Added xfs_info spec
py
diff --git a/algoliasearch_django/models.py b/algoliasearch_django/models.py index <HASH>..<HASH> 100644 --- a/algoliasearch_django/models.py +++ b/algoliasearch_django/models.py @@ -11,7 +11,10 @@ from django.db.models.query_utils import DeferredAttribute from .settings import DEBUG logger = logging.getLogger(__na...
correctness: Don't assign anonymous functions
py
diff --git a/tests/test_web_protocol.py b/tests/test_web_protocol.py index <HASH>..<HASH> 100644 --- a/tests/test_web_protocol.py +++ b/tests/test_web_protocol.py @@ -1,6 +1,7 @@ """Tests for aiohttp/server.py""" import asyncio +import platform import socket from functools import partial from unittest import moc...
Mark test_handle_uncompleted_pipe as xfail
py
diff --git a/master/contrib/github_buildbot.py b/master/contrib/github_buildbot.py index <HASH>..<HASH> 100755 --- a/master/contrib/github_buildbot.py +++ b/master/contrib/github_buildbot.py @@ -175,8 +175,10 @@ class GitHubBuildBot(resource.Resource): logging.info("Branch %r deleted, ignoring", branch) ...
Add head-commit flag to only take head of push This approximates the behavior of --first-parent for most github users.
py
diff --git a/aiogram/types/message.py b/aiogram/types/message.py index <HASH>..<HASH> 100644 --- a/aiogram/types/message.py +++ b/aiogram/types/message.py @@ -95,10 +95,10 @@ class Message(base.TelegramObject): return ContentType.VOICE[0] if self.contact: return ContentType.CONTACT[0]...
Swap around checking of VENUE and LOCATION content
py
diff --git a/baseapp_for_restapi_backend_with_swagger/AppObj.py b/baseapp_for_restapi_backend_with_swagger/AppObj.py index <HASH>..<HASH> 100644 --- a/baseapp_for_restapi_backend_with_swagger/AppObj.py +++ b/baseapp_for_restapi_backend_with_swagger/AppObj.py @@ -150,8 +150,12 @@ class AppObjBaseClass(): origi...
Adding allow origin headers in dev mode
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ setup(name='cwltool', 'schemas/v1.0/salad/schema_salad/metaschema/*.md']}, install_requires=[ 'requests', - 'ruamel.yaml', + 'ruamel.yaml == 0...
pin ruamel.yaml to working version
py
diff --git a/rejected.py b/rejected.py index <HASH>..<HASH> 100755 --- a/rejected.py +++ b/rejected.py @@ -311,6 +311,13 @@ class ConsumerThread( threading.Thread ): exchange = self.exchange, routing_key = self.binding_name ) + # Allow the pro...
Allow configuration of additional binding keys per consumer
py
diff --git a/scs_osio/client_auth.py b/scs_osio/client_auth.py index <HASH>..<HASH> 100755 --- a/scs_osio/client_auth.py +++ b/scs_osio/client_auth.py @@ -22,8 +22,6 @@ from scs_host.sys.host import Host from scs_osio.cmd.cmd_client_auth import CmdClientAuth -# TODO: check whether the USER_ID exists on OSIO? - # ...
Added user check to host_device.
py
diff --git a/intervaltree/node.py b/intervaltree/node.py index <HASH>..<HASH> 100644 --- a/intervaltree/node.py +++ b/intervaltree/node.py @@ -63,8 +63,17 @@ class Node(object): """ if not intervals: return None + return Node.from_sorted_intervals(sorted(intervals)) + + @classme...
Sort only once intervals during initialization
py
diff --git a/release/.buildkite/build_pipeline.py b/release/.buildkite/build_pipeline.py index <HASH>..<HASH> 100644 --- a/release/.buildkite/build_pipeline.py +++ b/release/.buildkite/build_pipeline.py @@ -133,6 +133,7 @@ NIGHTLY_TESTS = { ], "~/ray/release/serve_tests/serve_tests.yaml": [ "single_d...
[serve] Add multi deployment to serve nightly tests (#<I>)
py
diff --git a/kolekto/config.py b/kolekto/config.py index <HASH>..<HASH> 100644 --- a/kolekto/config.py +++ b/kolekto/config.py @@ -1,10 +1,34 @@ """ Kolekto configuration parsers. """ +import pkg_resources + from dotconf import Dotconf +from dotconf.schema import ValidationError from dotconf.schema.containers imp...
Added profile key in configuration Also implemented a "Profile" Dotconf type which is able to load profiles.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ version = imp.load_source('satpy.version', 'satpy/version.py') BASE_PATH = os.path.sep.join(os.path.dirname(os.path.realpath(__file__)).split( os.path.sep)) -requires = ['numpy >=1.4.1', 'pillow', 'pyres...
Update required pyresample version
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -81,13 +81,6 @@ print('\nGetting details for %s\n' % testApps[0]) details = server.details(testApps[0]) print(details) -# USER PROFILE -print('\nGettung user profile information\n') -user = server.userProfile() -if 'Noto Sans'...
Removed unstable userProfile from test
py
diff --git a/trie/branches.py b/trie/branches.py index <HASH>..<HASH> 100644 --- a/trie/branches.py +++ b/trie/branches.py @@ -79,7 +79,7 @@ def get_branch(db, root_hash, key): def _get_branch(db, node_hash, keypath): if node_hash == BLANK_HASH: - raise StopIteration + return node = db[node_h...
Replaced StopIteration according to PEP <I>
py
diff --git a/example/example/urls.py b/example/example/urls.py index <HASH>..<HASH> 100644 --- a/example/example/urls.py +++ b/example/example/urls.py @@ -7,5 +7,5 @@ urlpatterns = [ url(r'^accounts/', include('allauth.urls')), url(r'^$', TemplateView.as_view(template_name='index.html')), url(r'^accounts...
fix(example): Fix example urlconf to be compatible with Django <I>
py
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py index <HASH>..<HASH> 100755 --- a/coursera/coursera_dl.py +++ b/coursera/coursera_dl.py @@ -858,8 +858,8 @@ def download_on_demand_class(args, class_name): # obtain the resources completed = True - for module in modules: - module_name ...
Add Order Number to Downloaded Modules Folder Name
py
diff --git a/ella/photos/models.py b/ella/photos/models.py index <HASH>..<HASH> 100644 --- a/ella/photos/models.py +++ b/ella/photos/models.py @@ -304,7 +304,7 @@ class FormatedPhoto(models.Model): self.width, self.height = stretched_photo.size stretched_photo.save(self.file(), quality=self.format.res...
fixed incompatibility with wn<I> (binary files should be opened in binary mode)
py
diff --git a/pythonzombie/browser.py b/pythonzombie/browser.py index <HASH>..<HASH> 100644 --- a/pythonzombie/browser.py +++ b/pythonzombie/browser.py @@ -3,6 +3,10 @@ from pythonzombie.proxy.client import ZombieProxyClient import abc def verb(f): + """ + Methods that are decorated as `@verb` should always re...
Fixing a bug and adding some inline docs.
py
diff --git a/linkedin/linkedin.py b/linkedin/linkedin.py index <HASH>..<HASH> 100644 --- a/linkedin/linkedin.py +++ b/linkedin/linkedin.py @@ -25,10 +25,18 @@ allowed. I will put the ones here in the comments that I have removed: """ PERMISSIONS = enum('Permission', - COMPANY_ADMIN='rw_company_ad...
Updated permissions to comply with Developer Program Transition Guide <URL>
py
diff --git a/airflow/utils/db.py b/airflow/utils/db.py index <HASH>..<HASH> 100644 --- a/airflow/utils/db.py +++ b/airflow/utils/db.py @@ -1159,7 +1159,7 @@ def _check_migration_errors(session: Session = NEW_SESSION) -> Iterable[str]: :rtype: list[str] """ check_functions: Tuple[Callable[..., Iterable[st...
Temporarily disable task_fail pre-upgrade duplicates check (#<I>) I am reworking it to actually move the rows but for now we can disable it.
py
diff --git a/trezorlib/client.py b/trezorlib/client.py index <HASH>..<HASH> 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -470,6 +470,7 @@ class ProtocolMixin(object): "Ether": 60, "EtherClassic": 61, "Zcash": 133, + "Decred": 42 } if n...
Added Decred to coin list (#<I>)
py
diff --git a/salt/modules/cp.py b/salt/modules/cp.py index <HASH>..<HASH> 100644 --- a/salt/modules/cp.py +++ b/salt/modules/cp.py @@ -7,8 +7,6 @@ def recv(files, dest): ''' Used with salt-cp, pass the files dict, and the destination ''' - if not os.path.isdir(dest) or not os.path.isdir(os.path.dirnam...
Remove broken check from salt-cp
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ class PyTest(TestCommand): if sys.version_info < (2, 7): # pip will detect latest compatible version tests_require = ['pytest', 'virtualenv'] -elif (3,) < sys.version_info < (3, 7): +elif sys.version_...
ci: better defaults for preserve compatibility (pytest version)
py
diff --git a/cfgrib/dataset.py b/cfgrib/dataset.py index <HASH>..<HASH> 100644 --- a/cfgrib/dataset.py +++ b/cfgrib/dataset.py @@ -105,7 +105,7 @@ REF_TIME_KEYS = ['time', 'step'] ALL_HEADER_DIMS = ENSEMBLE_KEYS + VERTICAL_KEYS + DATA_TIME_KEYS + REF_TIME_KEYS -ALL_KEYS = GLOBAL_ATTRIBUTES_KEYS + DATA_ATTRIBUTES_K...
Keep on-disk index more stable.
py
diff --git a/test/test_autopep8.py b/test/test_autopep8.py index <HASH>..<HASH> 100755 --- a/test/test_autopep8.py +++ b/test/test_autopep8.py @@ -4074,6 +4074,12 @@ else: with autopep8_context(line, options=['-aaa']) as result: self.assertEqual(fixed, result) + def test_w503_with_comment(sel...
add test that w<I> with comment
py
diff --git a/future/tests/test_str.py b/future/tests/test_str.py index <HASH>..<HASH> 100644 --- a/future/tests/test_str.py +++ b/future/tests/test_str.py @@ -256,6 +256,21 @@ class TestStr(unittest.TestCase): self.assertTrue(b'ABCD' != s) self.assertTrue(bytes(b'ABCD') != s) + def test_cmp(self)...
Add tests for comparing (unicode) strings to incompatible types - Py3 is stricter about this than Py2.
py
diff --git a/third_party/tvcm/tvcm/module.py b/third_party/tvcm/tvcm/module.py index <HASH>..<HASH> 100644 --- a/third_party/tvcm/tvcm/module.py +++ b/third_party/tvcm/tvcm/module.py @@ -127,7 +127,8 @@ class Module(object): return self.resource.absolute_path def isComponent(self): - return "/third_party/c...
Another windows fix: component detection needs to not hard-code backslashes
py
diff --git a/tests/integration/netapi/test_client.py b/tests/integration/netapi/test_client.py index <HASH>..<HASH> 100644 --- a/tests/integration/netapi/test_client.py +++ b/tests/integration/netapi/test_client.py @@ -73,10 +73,7 @@ class NetapiClientTest(TestCase): 'minions_pre': [], ...
Fix wheel test This aligns with the new test layout
py
diff --git a/pybar/scans/calibrate_hit_or.py b/pybar/scans/calibrate_hit_or.py index <HASH>..<HASH> 100644 --- a/pybar/scans/calibrate_hit_or.py +++ b/pybar/scans/calibrate_hit_or.py @@ -129,7 +129,7 @@ class HitOrCalibration(Fei4RunBase): ''' Hit Or calibration scan ''' _default_run_conf = { - ...
MAINT: reduce injections, <I> is sufficient
py
diff --git a/mysql/toolkit/components/database.py b/mysql/toolkit/components/database.py index <HASH>..<HASH> 100644 --- a/mysql/toolkit/components/database.py +++ b/mysql/toolkit/components/database.py @@ -45,6 +45,10 @@ class Database: for t in tqdm(tables, total=len(tables), desc='Copying {0} table structur...
Moved declaration of copy_table_structure method
py
diff --git a/src/backends/make.py b/src/backends/make.py index <HASH>..<HASH> 100644 --- a/src/backends/make.py +++ b/src/backends/make.py @@ -310,7 +310,8 @@ def flags_vars(name, value, writer): def all_rule(default_targets, writer): writer.rule( target=phony_path('all'), - deps=(i.path for i in ...
Make's "all" rule should be phony
py
diff --git a/indra/ontology/bio/ontology.py b/indra/ontology/bio/ontology.py index <HASH>..<HASH> 100644 --- a/indra/ontology/bio/ontology.py +++ b/indra/ontology/bio/ontology.py @@ -64,7 +64,7 @@ class BioOntology(IndraOntology): self.add_drugbank_nodes() # Add xrefs logger.info('Adding xref...
Fixes in ontology building
py
diff --git a/lhc/binf/genomic_coordinate/genomic_interval.py b/lhc/binf/genomic_coordinate/genomic_interval.py index <HASH>..<HASH> 100644 --- a/lhc/binf/genomic_coordinate/genomic_interval.py +++ b/lhc/binf/genomic_coordinate/genomic_interval.py @@ -32,6 +32,11 @@ class GenomicInterval(Interval): def chromosome(s...
added setter for genomic interval chromosome
py
diff --git a/asv_bench/benchmarks/reindex.py b/asv_bench/benchmarks/reindex.py index <HASH>..<HASH> 100644 --- a/asv_bench/benchmarks/reindex.py +++ b/asv_bench/benchmarks/reindex.py @@ -30,6 +30,10 @@ class Reindex: self.s_subset = self.s[::2] self.s_subset_no_cache = self.s[::2].copy() + mi...
ASV: add benchmark for reindex with MultiIndex containing dates (#<I>)
py
diff --git a/libargos/application.py b/libargos/application.py index <HASH>..<HASH> 100644 --- a/libargos/application.py +++ b/libargos/application.py @@ -240,7 +240,7 @@ class ArgosApplication(object): if len(self.mainWindows) == 0: logger.warn("No open windows in profile (creating ...
Opens a Qt/Table inspector by default.
py
diff --git a/test/unittest_checker_python3.py b/test/unittest_checker_python3.py index <HASH>..<HASH> 100644 --- a/test/unittest_checker_python3.py +++ b/test/unittest_checker_python3.py @@ -28,6 +28,8 @@ def python2_only(test): return unittest.skipIf(sys.version_info[0] > 2, 'Python 2 only')(test) +# TODO(cpo...
Add a new TODO entry.
py
diff --git a/test/stdlib/compile-file.py b/test/stdlib/compile-file.py index <HASH>..<HASH> 100755 --- a/test/stdlib/compile-file.py +++ b/test/stdlib/compile-file.py @@ -19,6 +19,6 @@ bytecode = "%s-%s.pyc" % (basename, PY_VERSION) import py_compile print("compiling %s to %s" % (source, bytecode)) -py_compile.comp...
compile-file.py: preserve source file location
py
diff --git a/src/binwalk/core/settings.py b/src/binwalk/core/settings.py index <HASH>..<HASH> 100644 --- a/src/binwalk/core/settings.py +++ b/src/binwalk/core/settings.py @@ -132,6 +132,8 @@ class Settings(object): user_dir = os.getenv(envname) if user_dir is not None: ...
fix getting user's home dir When running binwalk in non-interactive session some env variables may not be set. This causes binwalk to fail to correctly determine user's home directory. This commit fixes that (at least for linux systems).
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ setup(name = "BarkTracker", author = "Lindsey Ellis and Joseph Prezioso", author_email = "lle6138@gmail.com and joeprezioso@comcast.net", url = "https://github.com/lle6138/BarkTracker", - licen...
Updated because we're using Affero GPL
py
diff --git a/test/unit/test_examples.py b/test/unit/test_examples.py index <HASH>..<HASH> 100644 --- a/test/unit/test_examples.py +++ b/test/unit/test_examples.py @@ -83,6 +83,6 @@ if __name__ == '__main__': self = t t.setup_class() for item in t.__dir__(): - if item.startswith('test_network_extra...
Undo testing one specific test (committed by mistake after debug)
py
diff --git a/graphos/renderers/base.py b/graphos/renderers/base.py index <HASH>..<HASH> 100644 --- a/graphos/renderers/base.py +++ b/graphos/renderers/base.py @@ -16,6 +16,7 @@ class BaseChart(object): self.width = width or DEFAULT_WIDTH self.options = options or {} self.header = data_source....
use kwargs to get context data for the rendered graph
py
diff --git a/pylightcurve/oec.py b/pylightcurve/oec.py index <HASH>..<HASH> 100755 --- a/pylightcurve/oec.py +++ b/pylightcurve/oec.py @@ -20,6 +20,9 @@ sns.reset_orig() def oec_catalogue(): data_base_location = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'oec_data_base') + + if not os.p...
create oec database at first run
py
diff --git a/markov/graph.py b/markov/graph.py index <HASH>..<HASH> 100644 --- a/markov/graph.py +++ b/markov/graph.py @@ -327,7 +327,11 @@ class Graph: 6: 40, 7: 30, 8: 17, 9: 14, 10: 10, 11: 10, 12: 10, 13: 5, 14: 5, 15: 75} graph = cls() -...
Update Graph.from_string() regex to include more punctuation marks
py
diff --git a/tests/integration/modules/pkg.py b/tests/integration/modules/pkg.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/pkg.py +++ b/tests/integration/modules/pkg.py @@ -268,6 +268,11 @@ class PkgModuleTest(integration.ModuleCase, # Install a version of vim that should need upgrading...
Skip test if we can't get an earlier package.
py
diff --git a/pygccxml/parser/source_reader.py b/pygccxml/parser/source_reader.py index <HASH>..<HASH> 100644 --- a/pygccxml/parser/source_reader.py +++ b/pygccxml/parser/source_reader.py @@ -181,7 +181,7 @@ class source_reader_t(object): cmd.append('--castxml-cc-gnu ' + self.__config.compiler_path) ...
Add missing space (#<I>)
py
diff --git a/invenio_records/manage.py b/invenio_records/manage.py index <HASH>..<HASH> 100644 --- a/invenio_records/manage.py +++ b/invenio_records/manage.py @@ -26,6 +26,7 @@ import sys import six from flask import current_app +from sqlalchemy import exc from werkzeug.utils import import_string from invenio_e...
cli: new flags for records create * NEW Adds new flag to `inveniomanage record create`, `--force` to force saving the record to the database even if the recid is already there.
py
diff --git a/src/urh/ui/views/ZoomableGraphicView.py b/src/urh/ui/views/ZoomableGraphicView.py index <HASH>..<HASH> 100644 --- a/src/urh/ui/views/ZoomableGraphicView.py +++ b/src/urh/ui/views/ZoomableGraphicView.py @@ -4,6 +4,7 @@ from PyQt5.QtWidgets import QAction, QGraphicsScene from urh.SceneManager import Scene...
fix crash on exit modulator dialog described in #<I>
py
diff --git a/kxg/world.py b/kxg/world.py index <HASH>..<HASH> 100644 --- a/kxg/world.py +++ b/kxg/world.py @@ -160,6 +160,7 @@ class World(Token): token.on_add_to_world(self) + info('Added {token} to the world.') return token def _remove_token(self, token):
Log when a token is created.
py
diff --git a/logbrowse/models.py b/logbrowse/models.py index <HASH>..<HASH> 100644 --- a/logbrowse/models.py +++ b/logbrowse/models.py @@ -12,7 +12,7 @@ #See the License for the specific language governing permissions and #limitations under the License. -import datetime, calendar, scipy, flyingrhino, pdb, pan...
Detect and store takeoffs and landings on log import. Probably only works for dflogs.
py
diff --git a/tests/kafka_rolling_restart/test_main.py b/tests/kafka_rolling_restart/test_main.py index <HASH>..<HASH> 100644 --- a/tests/kafka_rolling_restart/test_main.py +++ b/tests/kafka_rolling_restart/test_main.py @@ -6,8 +6,6 @@ from requests.exceptions import RequestException from yelp_kafka_tool.kafka_rolling_...
Remove comments, add script to itests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -49,14 +49,17 @@ class ReleaseCheck(Command): pass def run(self): - from subprocess import check_output - tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip() + ...
Fix release check for multiple versions of git
py
diff --git a/exchangelib/folders.py b/exchangelib/folders.py index <HASH>..<HASH> 100644 --- a/exchangelib/folders.py +++ b/exchangelib/folders.py @@ -994,12 +994,14 @@ class Root(Folder): # folder was found, try as best we can to return the default folder of type 'folder_cls' if not folder_cls.DISTIN...
Don't require filling the folders map just for e.g. account.contacts
py
diff --git a/zipview/views.py b/zipview/views.py index <HASH>..<HASH> 100644 --- a/zipview/views.py +++ b/zipview/views.py @@ -21,7 +21,6 @@ class BaseZipView(View): raise NotImplementedError() def get_archive_name(self, request): - import pdb; pdb.set_trace() return self.zipfile_name ...
Remove debug code commited by mistake
py
diff --git a/tmuxp/server.py b/tmuxp/server.py index <HASH>..<HASH> 100644 --- a/tmuxp/server.py +++ b/tmuxp/server.py @@ -318,6 +318,8 @@ class Server(TmuxRelationalObject): if 'failed to connect to server' in proc.stdout: return False + elif 'no server running' in proc.stdout: # tmux 2...
#<I>: handle tmux <I> socket connection failure (when session doesn't exist)
py
diff --git a/contrib/importjson/json2es.py b/contrib/importjson/json2es.py index <HASH>..<HASH> 100644 --- a/contrib/importjson/json2es.py +++ b/contrib/importjson/json2es.py @@ -20,7 +20,7 @@ if __name__ == '__main__': buf = sys.stdin for line in buf: i += 1 - book = {'language': 'it'} + ...
[ contrib ] update language to _language
py
diff --git a/redis_collections/__init__.py b/redis_collections/__init__.py index <HASH>..<HASH> 100644 --- a/redis_collections/__init__.py +++ b/redis_collections/__init__.py @@ -2,7 +2,7 @@ from __future__ import division, print_function, unicode_literals __title__ = 'redis-collections' -__version__ = '0.5.0' +__v...
Bump to version <I>
py
diff --git a/test/container_test.py b/test/container_test.py index <HASH>..<HASH> 100644 --- a/test/container_test.py +++ b/test/container_test.py @@ -97,7 +97,8 @@ class TestAzurermPy(unittest.TestCase): self.rgname, self.container_group_name, ...
Update container unittest to allow for 2 log msgs
py
diff --git a/pmagpy/pmagplotlib.py b/pmagpy/pmagplotlib.py index <HASH>..<HASH> 100644 --- a/pmagpy/pmagplotlib.py +++ b/pmagpy/pmagplotlib.py @@ -3340,9 +3340,9 @@ def plot_map(fignum, lats, lons, Opts): if 'symsize' in list(Opts.keys()): symsize = Opts['symsize'] if Opts['sym'][-1] != '-': # just ...
replace ax.plot with ax.scatter for plotting points in plot_map, #<I>
py
diff --git a/post_office/models.py b/post_office/models.py index <HASH>..<HASH> 100644 --- a/post_office/models.py +++ b/post_office/models.py @@ -17,7 +17,7 @@ from django.template import Context, Template from jsonfield import JSONField from post_office import cache from .compat import text_type -from .settings im...
log_level in email.dispatch() should default to None.
py
diff --git a/ykman/driver_otp.py b/ykman/driver_otp.py index <HASH>..<HASH> 100644 --- a/ykman/driver_otp.py +++ b/ykman/driver_otp.py @@ -28,7 +28,6 @@ from __future__ import absolute_import import six -import sys import time from .native.ykpers import Ykpers from ctypes import sizeof, byref, c_int, c_uint, c_s...
Don't use errno to check if OTP device was opened.
py
diff --git a/gutenberg/_domain_model/text.py b/gutenberg/_domain_model/text.py index <HASH>..<HASH> 100644 --- a/gutenberg/_domain_model/text.py +++ b/gutenberg/_domain_model/text.py @@ -38,10 +38,10 @@ TEXT_START_MARKERS = frozenset((u(_) for _ in ( "l'authorization à les utilizer pour preparer ce texte.", "...
Avoid over-clearing due to interspersed legalese The implementation of `strip_headers` clears the output text whenever it encounters a line indicating the end of the licence header. However, some texts (e.g. Shakespeare's complete works) have interspersed licences leading to strip_headers over-clearing text.
py
diff --git a/estnltk_core/estnltk_core/layer_operations/rebase.py b/estnltk_core/estnltk_core/layer_operations/rebase.py index <HASH>..<HASH> 100644 --- a/estnltk_core/estnltk_core/layer_operations/rebase.py +++ b/estnltk_core/estnltk_core/layer_operations/rebase.py @@ -3,6 +3,20 @@ import networkx as nx from .layer_d...
Added rebase docstring
py
diff --git a/power/__init__.py b/power/__init__.py index <HASH>..<HASH> 100644 --- a/power/__init__.py +++ b/power/__init__.py @@ -18,8 +18,7 @@ Usage: # PowerManagementObserver.register(Observer) """ __author__ = 'kulakov.ilya@gmail.com' -import pkg_resources -__version__ = pkg_resources.get_distribution('power...
Just set __version__ as string.
py
diff --git a/pip_accel.py b/pip_accel.py index <HASH>..<HASH> 100755 --- a/pip_accel.py +++ b/pip_accel.py @@ -268,6 +268,10 @@ def install_binary_dist(filename, install_prefix=sys.prefix): Expects two arguments: The pathname of the tar archive and the pathname of the installation prefix. """ + # TODO...
Interesting new to-do that can further speed up pip-accel :-)
py
diff --git a/hitcount/urls.py b/hitcount/urls.py index <HASH>..<HASH> 100644 --- a/hitcount/urls.py +++ b/hitcount/urls.py @@ -3,8 +3,8 @@ from __future__ import unicode_literals from django.conf.urls import url -from hitcount.views import update_hit_count_ajax +from hitcount.views import HitCountJSONView urlpa...
use class-based JSON view in urls
py
diff --git a/salt/daemons/flo/core.py b/salt/daemons/flo/core.py index <HASH>..<HASH> 100644 --- a/salt/daemons/flo/core.py +++ b/salt/daemons/flo/core.py @@ -755,7 +755,7 @@ class Router(ioflo.base.deeding.Deed): elif d_share == 'remote_cmd': # Send it to a remote worker if 'load' in...
Change rnmid to sender little more descriptive made consistent with other changes
py
diff --git a/fabric/group.py b/fabric/group.py index <HASH>..<HASH> 100644 --- a/fabric/group.py +++ b/fabric/group.py @@ -146,7 +146,8 @@ class Group(list): """ Executes `.Connection.close` on all member `Connections <.Connection>`. """ - raise NotImplementedError + for cxn in ...
Don't actually think we need to make close() an abstract method yet. Very remote chance we might want to later but I think even with more 'exotic' implementations, the core 'treat it as an iterable' aspect will remain intact, so we can rely on that. Re #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,15 +3,17 @@ from distutils.core import setup import os import codecs +import pandoc from matplotlib2tikz import __version__ -def read(fname): - return codecs.open( - os.path.join(os.path.dirname(__file__...
get longdescription ready for pypi consumption
py
diff --git a/stanza/models/common/vocab.py b/stanza/models/common/vocab.py index <HASH>..<HASH> 100644 --- a/stanza/models/common/vocab.py +++ b/stanza/models/common/vocab.py @@ -47,6 +47,7 @@ class BaseVocab: return new def normalize_unit(self, unit): + unit = unit.replace(" ","\xa0") i...
Vythai (#<I>) Fixed Vietnamese nonbreaking space
py
diff --git a/script/lib/git.py b/script/lib/git.py index <HASH>..<HASH> 100644 --- a/script/lib/git.py +++ b/script/lib/git.py @@ -40,11 +40,13 @@ def get_repo_root(path): return get_repo_root(parent_path) -def am(repo, patch_data, threeway=False, +def am(repo, patch_data, threeway=False, directory=None, co...
build: make it possible to pass a "--directory" arg to "git am" (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,9 @@ #!/usr/bin/env python import os.path +import re import sys -import gspread - try: from setuptools import setup except ImportError: @@ -32,12 +31,15 @@ Download long_description = long_description...
Fix setup import error `import gspread` statement caused requests packaged to be imported before dependency could be installed. Sole purpose of import was to extract the __version__ string field on the module. Solution is to use a regex to read the version string from __init__.py Fixes #<I>
py
diff --git a/pbclient/__init__.py b/pbclient/__init__.py index <HASH>..<HASH> 100644 --- a/pbclient/__init__.py +++ b/pbclient/__init__.py @@ -271,4 +271,4 @@ def find_taskruns(app_id, **kwargs): """ kwargs['app_id'] = app_id - return [TaskRun(task_data) for task_data in _pybossa_req('get', 'task', param...
Fix a typo in find_taskruns This commit fixes the get action for the taskruns.
py
diff --git a/pymc/theanof.py b/pymc/theanof.py index <HASH>..<HASH> 100644 --- a/pymc/theanof.py +++ b/pymc/theanof.py @@ -45,7 +45,7 @@ def gradient1(f, v): @memoize def gradient(f, vars=None): - if not vars: + if vars is None: vars = cont_inputs(f) return t.concatenate([gradient1(f, v) for v...
Fixed check whether vars was passed.
py
diff --git a/ella/polls/models.py b/ella/polls/models.py index <HASH>..<HASH> 100644 --- a/ella/polls/models.py +++ b/ella/polls/models.py @@ -135,15 +135,11 @@ class Poll(BasePoll): return self.title def vote(self, choice, user=None, ip_address=None): + # create Vote object vote = Vote(...
Polls - poll - only one choice can be selected for a vote
py
diff --git a/nudibranch/tests.py b/nudibranch/tests.py index <HASH>..<HASH> 100644 --- a/nudibranch/tests.py +++ b/nudibranch/tests.py @@ -108,9 +108,13 @@ class BaseAPITest(unittest.TestCase): def setUp(self): """Initialize the database and add routes.""" - self.config = testing.setUp(settings={...
Add settings for sending mail to test environment.
py
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py index <HASH>..<HASH> 100644 --- a/astrobase/lcproc.py +++ b/astrobase/lcproc.py @@ -599,6 +599,18 @@ def stetson_threshold(featuresdir, (magcol, medstet, stdstet, minstetstdev, allobjects[magcol]['thresholdobjects'].size)) + # ge...
lcproc: also get objects above stetson threshold across all magcols
py
diff --git a/nolds/test_measures.py b/nolds/test_measures.py index <HASH>..<HASH> 100644 --- a/nolds/test_measures.py +++ b/nolds/test_measures.py @@ -139,8 +139,7 @@ class TestNoldsHurst(unittest.TestCase): x = np.random.randn(10000) h_rand = nolds.hurst_rs(x) # expected h is around 0.5 - self.assert...
uses assertAlmostEqual and tightens bounds for random hurst
py
diff --git a/py/apigen/apigen.py b/py/apigen/apigen.py index <HASH>..<HASH> 100644 --- a/py/apigen/apigen.py +++ b/py/apigen/apigen.py @@ -6,19 +6,15 @@ import os import py +import sys from py.__.apigen import htmlgen from py.__.apigen import linker from py.__.apigen import project -def import_pkgdir(pkgdir): ...
[svn r<I>] Hours later and tons of debug print changes.... I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS, I HATE PYTHON IMPORTS --HG-- branch : trunk
py
diff --git a/grimoire/arthur.py b/grimoire/arthur.py index <HASH>..<HASH> 100755 --- a/grimoire/arthur.py +++ b/grimoire/arthur.py @@ -64,7 +64,7 @@ def feed_backend(url, params, clean): except Exception as ex: if backend: logging.error("Error feeding ocean from %s (%s): %s" % - ...
[arthur] Fixed exception reporting.
py
diff --git a/tests/config_test.py b/tests/config_test.py index <HASH>..<HASH> 100644 --- a/tests/config_test.py +++ b/tests/config_test.py @@ -1,11 +1,8 @@ # coding=utf-8 from ladybug.config import folders -import pytest - def test_config_init(): """Test the initialization of the config module and basic pro...
style(config_test): remove unused import This PR is mainly for testing the CLA set-up. Let's see if it works as expected.
py
diff --git a/pycm/functions.py b/pycm/functions.py index <HASH>..<HASH> 100644 --- a/pycm/functions.py +++ b/pycm/functions.py @@ -76,22 +76,22 @@ def LR_Calc(Item1,Item2): def ClassStatistic(TP,TN,FP,FN): - TPR=TP.copy() - TNR = TP.copy() - PPV = TP.copy() - NPV = TP.copy() - FNR = TP.copy() - F...
fix : minor edit in dicts
py
diff --git a/mopidy_youtube/apis/youtube_bs4api.py b/mopidy_youtube/apis/youtube_bs4api.py index <HASH>..<HASH> 100644 --- a/mopidy_youtube/apis/youtube_bs4api.py +++ b/mopidy_youtube/apis/youtube_bs4api.py @@ -211,6 +211,7 @@ class bs4API(scrAPI): "search_query": '"' + id + '"', "sp":...
add a couple more "persist_app": 1, I'm going to pay for doing this using the GitHub web interface, I'm sure...
py
diff --git a/source/rafcon/gui/helpers/installation.py b/source/rafcon/gui/helpers/installation.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/helpers/installation.py +++ b/source/rafcon/gui/helpers/installation.py @@ -158,7 +158,7 @@ def create_mo_files(): po_files = [po_file for po_file ...
fix(installation): remove typo from last commit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( version = '0.1.0pre', url = 'https://github.com/gregmuellegger/django-pandora', license = 'BSD', - description = '', + description = "Opening Pandora's box by making django's request ...
Adding package description to setup.py file.
py
diff --git a/LiSE/LiSE/util.py b/LiSE/LiSE/util.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/util.py +++ b/LiSE/LiSE/util.py @@ -157,7 +157,11 @@ class EntityStatAccessor(object): stat = self.stat for turn in range(beginning, end+1): engine.turn = turn - y = entity[stat] + ...
Make schedules work for turns lacking values for a stat
py
diff --git a/validator/__init__.py b/validator/__init__.py index <HASH>..<HASH> 100644 --- a/validator/__init__.py +++ b/validator/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.10.60' +__version__ = '1.10.62' class ValidationTimeout(Exception):
Prepare <I> Skipping <I> because I released that tag too early.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( author="Fusor", author_email="ansible-service-broker@redhat.com", url = 'https://github.com/fusor/ansible-playbook-bundle', - download_url = 'https://github.com/fusor/ansible-playbook-bu...
Change download_url for setup.py (#<I>)
py
diff --git a/synapse/cores/common.py b/synapse/cores/common.py index <HASH>..<HASH> 100644 --- a/synapse/cores/common.py +++ b/synapse/cores/common.py @@ -273,7 +273,7 @@ class Cortex(EventBus, DataModel, Runtime, s_ingest.IngestApi): node[1][form] = norm node[1]['tufo:form'] = form node[1]['...
Fix node:ndef setting during node node creation.
py
diff --git a/spinoff/component/component.py b/spinoff/component/component.py index <HASH>..<HASH> 100644 --- a/spinoff/component/component.py +++ b/spinoff/component/component.py @@ -86,7 +86,7 @@ class Component(object, Service): `a.connect('default', ('default', b))` """ - if isinstance...
Allow any '__iter__'able object to be passed in as the target of Component.connect
py
diff --git a/src/bcrypt/__init__.py b/src/bcrypt/__init__.py index <HASH>..<HASH> 100644 --- a/src/bcrypt/__init__.py +++ b/src/bcrypt/__init__.py @@ -36,7 +36,7 @@ __all__ = [ ] -_normalize_re = re.compile(b"^\$2y\$") +_normalize_re = re.compile(br"^\$2y\$") def gensalt(rounds=12, prefix=b"2b"):
Fix "invalid escape sequence" warnings on Python <I> (#<I>)
py
diff --git a/src/harvesters/core.py b/src/harvesters/core.py index <HASH>..<HASH> 100644 --- a/src/harvesters/core.py +++ b/src/harvesters/core.py @@ -2112,21 +2112,28 @@ class ImageAcquirer: except TimeoutException: continue else: - if manager.buffer.is_complet...
Resolve issue #<I>
py
diff --git a/afkak/brokerclient.py b/afkak/brokerclient.py index <HASH>..<HASH> 100644 --- a/afkak/brokerclient.py +++ b/afkak/brokerclient.py @@ -194,8 +194,8 @@ class KafkaBrokerClient(ReconnectingClientFactory): def disconnect(self): """Disconnect from the Kafka broker by closing the socket. D...
BPPF-<I>: when using `disconnect_on_timeout`, each disconnect leaks a connection that continues retrying forever.
py
diff --git a/tests/test_upload.py b/tests/test_upload.py index <HASH>..<HASH> 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -394,6 +394,7 @@ def choose_reply(key, replies, statuses=None): raise NotImplementedError(key) +@mock.patch('time.sleep', lambda *args: None) class TestMockedMultip...
Mock sleep in mocked upload tests
py